3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
147
3
mdControl
This function performs remote operations (remote RUN/STOP/PAUSE) for a CPU module.
■
Format
short mdControl(long lPath, short sStNo, 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 (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
■
Relevant functions
• Page 154 mdOpen
• Page 146 mdClose
Argument
Name
Description
IN/OUT
lPath
Path of channel
Specify the path of the opened channel.
IN
sStNo
Station number
Specify the network number and station number of the target module.
IN
sCode
Instruction code
Specify the contents of the remote operation in numerical value.
IN
sCode (decimal)
Description
0
Remote RUN
1
Remote STOP
2
Remote PAUSE
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......