mdrControl
This function performs remote operations (RUN/STOP/PAUSE) for a CPU module.
■ Format
short mdrControl(long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, short sCode)
■ Argument
Argument
Name
lPath
Path of channel
sRoute
Access route
lNetNo
Network number
lIoNo
Start I/O number
lStNo
Station number
sCPU
CPU number
sCode
Instruction code
The specification method of the instruction code (sCode) is as follows:
Instruction code
Remote operation
(decimal)
0
Remote RUN
1
Remote STOP
2
Remote PAUSE
■ Description
This function changes the status of a CPU module specified to the station number (lStNo) 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 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 82 mdrClose
Page 90 mdrOpen
Description
Specify the path of the opened channel.
Specify the access route to target module.
• 0: CC-Link IE Controller Network
• 1: CC-Link IE Field Network
• 2: MELSECNET/H
• 3: CC-Link
• 4: Bus interface
Specify the network number of target module.
Page 14 Argument specification
Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
Specify the station number of target module.
Page 14 Argument specification
Specify the CPU number of the target CPU module.
• 0: Control CPU specification
• 1 to 4: Multiple CPU specification
Specify the contents of the remote operation in numerical value.
3.2 MELSEC iQ-R Series Data Link Functions
IN/OUT
IN
IN
IN
IN
IN
IN
IN
3 DETAILS OF FUNCTION
3
83