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.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......