Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 105

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

mdOpen
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 another MELSEC data link function, use the path of a channel opened by 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
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 99 mdClose
Description
Specify a communication line (channel).
Page 16 Channel
Specify '-1'.
Specify the storage destination (address) of the path of the channel.
(The path of the opened channel is stored.)
Description
Normal
Error
IN/OUT
IN
IN
OUT
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
103

Advertisement

Table of Contents
loading

Table of Contents