3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
51
3
CCPU_Control
This function performs remote operations (remote RUN/STOP/PAUSE) for a CPU module.
■
Format
short CCPU_Control (short sCpuNo, short sCode)
■
Argument
■
Description
• This function performs remote operations (remote RUN/STOP/PAUSE) for a CPU module or a C Controller module
specified to the CPU number (sCpuNo).
• The RUN/STOP/RESET switch has a higher priority to change the operating status of a C Controller module. Therefore, if
the RUN/STOP/RESET switch is put in the STOP state, the operating status will remain STOP irrespective of the specified
remote operation.
However, since the remote operation by this function is effective even when the RUN/STOP/RESET switch is put in the
STOP state, a C Controller module operates according to the last specified remote operation once the RUN/STOP/RESET
switch is switched from STOP to RUN.
■
Return value
Argument
Name
Description
IN/OUT
sCpuNo
CPU number
Specify the target CPU module number.
Specify '0' to perform the remote operation for the host CPU.
(When the CPU module specified with 1 to 4 is the host CPU, an error is returned.)
• 0: Host CPU
• 1 to 4: Other CPUs
IN
sCode
Remote operation specification
code
Specify the remote operation to be performed.
• 0: Remote RUN
• 1: Remote STOP
• 2: Remote PAUSE
IN
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: ......