703
SP.CONTSW
1
2
11
4
4
6
7
8
11.1
SP.CONTSW
CHAPTER 11
REDUNDANT SYSTEM INSTRUCTIONS
(For REDUNDANT CPU)
: Value other than 0 and used to identify the processing that issued the system switching request (BIN 16 bits)
: Error completion device number (bits)
*1:
The bit specification for the word device is available.
F
unct
i
on
(1) Switches between the control system and standby system at the END processing of the scan executed with the
SP.CONTSW instruction.
(2) When using the SP.CONTSW instruction for system switching, the "manual switching enable flag (SM1592)" must have
been turned ON (enabled) in advance.
(3)
is provided to identify the processing block of the program where system switching occurred when multiple
SP.CONTSW instructions are used.
At , specify a value within the ranges -32768 to -1 and 1 to 32767 (1
H
to FFFF
H
).
The value specified by the SP.CONTSW instruction is stored into the "system switching instruction argument (SD6)" of
the error common information when the system switching is normally completed.
*2
When multiple SP.CONTSW instructions are executed during the same scan, the argument of the SP.CONTSW
instruction executed first is stored into the system switching instruction argument (SD6).
(4) The value specified by the SP.CONTSW instruction is stored into the "system switching instruction argument
(SD1602)" of the new control system CPU module when system switching is normally completed.
*3
By reading the SD1602 value from the new control system CPU module, which the SP.CONTSW instruction was used
for system switching can be confirmed.
*2:
The
value specified for the SP.CONTSW instruction can be confirmed in the error common information of the PLC
diagnostics dialog box on GX Developer.
*3:
The new control system CPU module means the CPU module that was switched from the standby system to the control
system by the SP.CONTSW instruction.
(5) The error completion device is turned ON by the control system CPU module when system switching by the
SP.CONTSW instruction was unsuccessful.
(a) When OPERATION ERROR is detected due to any of the following reasons at the execution of the SP.CONTSW
instruction, the error completion device is turned ON during the instruction execution.
• 0 is specified at of the executed SP.CONTSW instruction.
• The "manual switching enable flag (SM1592)" is OFF.
• The SP.CONTSW instruction was executed by the standby system in the separate mode.
• The SP.CONTSW instruction was executed in the debug mode.
SP.CONTSW
System Switching
11.1
SP.CONTSW
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
*1
––
––
––
U
n
iv
ersa
l
L
CP
U
Bas
i
c
Hi
gh
performance
Process
Redundant
SP.CONTSW
Command
SP
.
CO
NT
SW
S
D
S
D
S
D
S
S
S
S
S
S