Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 195

Controller module
Table of Contents

Advertisement

mdDevSetEx
This function sets bit devices.
Format
long mdDevSetEx (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 sets (turns ON) 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 dedicated for bit devices such as link relay (B), internal relay (M).
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant functions
• Page 198 mdOpen
• Page 190 mdClose
• Page 192 mdDevRstEx
Description
Specify the path of the opened channel.
Specify the network number of target module.
Specify the station number of target module.
Page 44 Argument specification
Specify the device type of bit device.
Page 44 Argument specification
Specify the device number of bit device.
IN/OUT
IN
IN
IN
IN
IN
3 DETAILS OF FUNCTION
3.3 MELSEC Data Link Functions
3
193

Advertisement

Table of Contents
loading

Table of Contents