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

Controller module
Table of Contents

Advertisement

mdOpen
This function opens a communication line (channel).
Format
short mdOpen(short sChan, short sMode, long* plPath)
Argument
Argument
Name
sChan
Channel
sMode
Mode
plPath
Path of channel
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
Return value
0 (0000H)
Other than 0
Relevant function
• Page 190 mdClose
3 DETAILS OF FUNCTION
198
3.3 MELSEC Data Link Functions
Description
Specify a communication line (channel).
Page 44 Argument specification
Specify '-1'.
Specify the storage destination (address) of the path of the channel.
(The path of the opened channel is stored.)
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN
OUT

Advertisement

Table of Contents
loading

Table of Contents