mdrDevSet
This function sets bit devices.
■ Format
short mdrDevSet (long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long lDevType, long lDevNo)
■ Argument
Argument
Name
lPath
Path of channel
sRoute
Access route
lNetNo
Network number
lIoNo
Start I/O number
lStNo
Station number
sCPU
CPU number
lDevType
Device type
lDevNo
Device number
■ Description
• This function sets (turns ON) the bit device of the module specified to the network number (lNetNo),the start I/O number
(lIoNo),the station number (lStNo), the CPU number (sCPU),the device type (lDevType),and the device number (lDevNo).
• The mdrDevSet function is dedicated function for bit devices such as link relay (B) and internal relay (M).
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 82 mdrClose
Page 84 mdrDevRst
Page 90 mdrOpen
Description
Specify the path of the opened channel.
Specify the access route to target module.
• 0: CC-Link IE Controller Network
• 1: CC-Link IE Field Network
• 2: MELSECNET/H
• 3: CC-Link
• 4: Bus interface
Specify the network number of target module.
Page 14 Argument specification
Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
Specify the station number of target module.
Page 14 Argument specification
Specify the CPU number of the target CPU module.
• 0: Control CPU specification
• 1 to 4: Multiple CPU specification
Specify the device type of bit device.
Page 14 Argument specification
Specify the device number of bit device.
3.2 MELSEC iQ-R Series Data Link Functions
IN/OUT
IN
IN
IN
IN
IN
IN
IN
IN
3 DETAILS OF FUNCTION
3
85