Ccpu_Control - Mitsubishi Electric MELSEC iQ-R C Series Programming Manual

Controller module
Table of Contents

Advertisement

CCPU_Control

This function performs remote operations (remote RUN/STOP/PAUSE) for a CPU module.
Format
short CCPU_Control (short sCpuNo, short sCode)
Argument
Argument
Name
sCpuNo
CPU number
sCode
Remote operation specification
code
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 the CCPU_Control 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
Return value
0 (0000H)
Other than 0
3 DETAILS OF FUNCTION
72
3.1 C Controller Module Dedicated Functions
Description
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
Specify the remote operation to be performed.
• 0: Remote RUN
• 1: Remote STOP
• 2: Remote PAUSE
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents