Mitsubishi Electric MELSEC iQ-R C Programming Manual page 151

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
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 chapter.
Page 174 ERROR CODE LIST
■Relevant functions
• Page 154 mdOpen
• Page 146 mdClose
• Page 148 mdDevRstEx
Description
Specify the path of the opened channel.
Specify the network number of target module.
Specify the station number of target module.
Page 9 Argument specification
Specify the device type of bit device.
Page 9 Argument specification
Specify the device number of bit device.
IN/OUT
IN
IN
IN
IN
IN
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
3
149

Advertisement

Table of Contents
loading

Table of Contents