Mitsubishi Electric MELSEC iQ-R C Programming Manual page 149

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

mdControl
This function performs remote operations (remote RUN/STOP/PAUSE) for a CPU module.
■Format
short mdControl(long lPath, short sStNo, short sCode)
■Argument
Argument
Name
lPath
Path of channel
sStNo
Station number
sCode
Instruction code
The specification method of the instruction code (sCode) is as follows:
sCode (decimal)
Description
0
Remote RUN
1
Remote STOP
2
Remote PAUSE
■Description
This function changes the status of a CPU module specified to the station number (sStNo) to the one specified to the
instruction code (sCode).
This function cannot be executed for C Controller module, PC CPU module, and WinCPU module.
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant functions
• Page 154 mdOpen
• Page 146 mdClose
Description
Specify the path of the opened channel.
Specify the network number and station number of the target module.
Page 9 Argument specification
Specify the contents of the remote operation in numerical value.
IN/OUT
IN
IN
IN
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
3
147

Advertisement

Table of Contents
loading

Table of Contents