154
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
mdOpen
This function opens a communication line (channel).
■
Format
short mdOpen(short sChan, short sMode, long* plPath)
■
Argument
■
Description
• When executing a MELSEC data link function, use the path of a channel opened with this function.
• To end a user program, close the opened path of a channel with the mdClose function.
• When using multiple channels, open the channel one by one.
■
Return value
■
Relevant function
Argument
Name
Description
IN/OUT
sChan
Channel
Specify a communication line (channel).
IN
sMode
Mode
Specify '-1'.
IN
plPath
Path of channel
Specify the storage destination (address) of the path of the channel.
(The path of the opened channel is stored.)
OUT
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: ......