mdDevRstEx
Resets bit devices.
Format
long mdDevRstEx(long lPath, long lNetNo, long lStNo, long lDevType, long lDevNo)
Argument
Argument
Name
lPath
Path of channel
lNetNo
Network number
lStNo
Station number
lDevType
Device type
lDevNo
Device number
Description
• This function resets (turns OFF) the bit device of the module specified to the network number (lNetNo), the station number
(lStNo), the device type (lDevType), and the device number (lDevNo).
• This function is exclusively for bit devices such as a link relay (B) or internal relay (M).
Return value
Return value
0(0000H)
Other than 0
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 99 mdClose
Page 102 mdDevSetEx
Page 103 mdOpen
Description
Specify the path of the opened channel.
Specify the network number of target module.
Specify the station number of target module.
Page 16 Network number and station number
Specify the device type of bit device.
Page 17 Device type
Specify the device number of bit device.
Description
Normal
Error
IN/OUT
IN
IN
IN
IN
IN
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
101