mdControl
Performs remote operations (RUN/STOP/PAUSE) for a programmable controller CPU.
Format
short mdControl(long lPath, short sStNo, short sCode)
Argument
Argument
lPath
sStNo
sCode
• The following remote operations can be specified by instruction code (sCode).
sCode
0
1
2
Description
Changes the status of a CPU module specified to the network number and station number (sStNo) to the status specified to
the instruction code (sCode).
This function cannot be executed for the MELIPC, C Controller module, PC CPU module, or WinCPU module.
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
Page 103 mdOpen
3 DETAILS OF FUNCTIONS
100
3.3 MELSEC Data Link Functions
Name
Path of channel
Network number and station
number
Instruction code
Description
Normal
Error
Description
Specify the path of the opened channel.
Specify the network number and station number of the target module.
Page 16 Network number and station number
Specify the contents of the remote operation in numerical value.
Description
Remote RUN
Remote STOP
Remote PAUSE
IN/OUT
IN
IN
IN