Mitsubishi Electric MELSEC iQ-R Series Manual page 92

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

mdrOpen
This function opens a communication line (channel).
■ Format
short mdrOpen (short sChan, short sMode, long* plPath, long lTimeOut)
■ Argument
Argument
sChan
sMode
plPath
lTimeOut
■ Description
• The path of the channel opened by the mdrOpen function is used when MELSEC iQ-R series data link functions are
executed.
• To end the program, close the path of the opened channel using the mdrClose function.
■ Return value
Return value
0 (0000H)
Other than 0 (0000H)
■ Relevant function
Page 82 mdrClose
3 DETAILS OF FUNCTION
90
3.2 MELSEC iQ-R Series Data Link Functions
Name
Channel
Mode
Path of channel
Timeout value
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify a communication line (channel).
Page 14 Argument specification
Specify '-1'.
Specify the storage destination (address) of the path of the channel.
(The path of the opened channel is stored.)
Specify the timeout value of MELSEC iQ-R series data link function for
MELSEC iQ-R series bus interface (Channel No.12)
• Setting range: 1 to 360 sec (1 sec unit)
IN/OUT
IN
IN
OUT
IN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents