3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
149
3
mdDevSetEx
This function sets bit devices.
■
Format
long mdDevSetEx (long lPath, long lNetNo, long lStNo, long lDevType, long lDevNo)
■
Argument
■
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
■
Relevant functions
• Page 154 mdOpen
• Page 146 mdClose
• Page 148 mdDevRstEx
Argument
Name
Description
IN/OUT
lPath
Path of channel
Specify the path of the opened channel.
IN
lNetNo
Network number
Specify the network number of target module.
IN
lStNo
Station number
Specify the station number of target module.
IN
lDevType
Device type
Specify the device type of bit device.
IN
lDevNo
Device number
Specify the device number of bit device.
IN
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......