Mitsubishi Electric MELSEC iQ-R C Programming Manual page 53

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
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 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
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
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
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
IN
51

Advertisement

Table of Contents
loading

Table of Contents