EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 85

Mitsubishi Electric MELSEC iQ-R Series
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3 DETAILS OF FUNCTION
3.2 MELSEC iQ-R Series Data Link Functions
83
3
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
The specification method of the instruction code (sCode) is as follows:
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
Relevant function
Page 82 mdrClose
Page 90 mdrOpen
Argument Name Description IN/OUT
lPath Path of channel Specify the path of the opened channel. IN
sRoute Access route 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
IN
lNetNo Network number Specify the network number of target module.
Page 14 Argument specification
IN
lIoNo Start I/O number Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
IN
lStNo Station number Specify the station number of target module.
Page 14 Argument specification
IN
sCPU CPU number Specify the CPU number of the target CPU module.
0: Control CPU specification
1 to 4: Multiple CPU specification
IN
sCode Instruction code Specify the contents of the remote operation in numerical value. IN
Instruction code
(decimal)
Remote operation
0 Remote RUN
1 Remote STOP
2 Remote PAUSE
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

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals