3.3
MELSEC Data Link Functions
This section shows the details of MELSEC data link functions.
mdClose
Closes a communication line (channel).
Format
short mdClose(long lPath)
Argument
Argument
Name
lPath
Path of channel
Description
• This function closes the channel opened by the mdOpen function.
• When using multiple channels, close the channel one by one.
Return value
Return value
0(0000H)
Other than 0
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 103 mdOpen
Description
Specify the path of the opened channel.
Description
Normal
Error
IN/OUT
IN
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
99