84
3 DETAILS OF FUNCTION
3.2 MELSEC iQ-R Series Data Link Functions
mdrDevRst
This function resets bit devices.
■ Format
short mdrDevRst(long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long lDevType, long lDevNo)
■ Argument
■ Description
• This function resets (turns OFF) 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 mdrDevRst function is dedicated function for bit devices such as link relay (B) and internal relay (M).
■ Return value
■ Relevant function
Page 82 mdrClose
Page 85 mdrDevSet
Page 90 mdrOpen
Argument Name Description IN/OUT
lPath Path of channel Specify the path of the opened channel. IN
sRoute Access route 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
IN
lNetNo Network number Specify the network number of target module.
Page 14 Argument specification
IN
lIoNo Start I/O number Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
IN
lStNo Station number Specify the station number of target module.
Page 14 Argument specification
IN
sCPU CPU number Specify the CPU number of the target CPU module.
• 0: Control CPU specification
• 1 to 4: Multiple CPU specification
IN
lDevType Device type Specify the device type of bit device.
Page 14 Argument specification
IN
lDevNo Device number Specify the device number of bit device. IN
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