Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 193

Controller module
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 for 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 a C Controller module, PC CPU module, MELSECWinCPU module, or
interface board for a personal computer.
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant functions
• Page 198 mdOpen
• Page 190 mdClose
Description
Specify the path of the opened channel.
Specify the network number and station number of the target module.
Page 44 Argument specification
Specify the contents of the remote operation in numerical value.
IN/OUT
IN
IN
IN
3 DETAILS OF FUNCTION
3.3 MELSEC Data Link Functions
3
191

Advertisement

Table of Contents
loading

Table of Contents