12
2 GENERAL SPECIFICATIONS
2.4 Generic State Diagram
2.4 Generic State Diagram
The safety FB state transitions according to the state diagram described in the safety FB specifications. However, a program
operation is suspended while the operation status of the CPU module is in STOP or PAUSE. Consequently, the state
transition does not occur. The following shows how to read the state diagram.
2.5 How to Register the Safety FB Library to a Project
For details, refer to the following.
GX Works3 Operating Manual
2.6 Copying and Pasting a Ladder containing a Safety
FB
A program containing a safety FB cannot be selected to copy/paste on the navigation window. Select a ladder block and copy/
paste it.
Basic way to read the state diagram
• The state name and diagnostic code are indicated in the circle.
The state name is "Idle", and the diagnosis code is "0000H".
• The arrows connecting two circles indicate the direction of the state transition. Also, the transition conditions are described near the arrows. When there are
multiple transition destination states, the circled numbers indicate the transition priority when multiple transition conditions are satisfied simultaneously. (0 is
the highest priority.)
There are three transition destination states from the Run state depending on the condition. The transition priority is in the following order: 8000H → 0000H,
8000H → C001H, and 8000H → 8001H.
• If i_bActivate input signal is set to OFF, any state transitions to the Idle state.
• Meaning of transition state symbols
⋅ AND, OR, XOR, and NOT: Logical operators
⋅ R_TRIG at signal: The signal is changed from OFF to ON
⋅ F_TRIG at signal: The signal is changed from ON to OFF
• Variable name with no ON/OFF specification on the state diagram indicates that the variable is ON.
Idle
0000H
Init
8001H
0
Run
8000H
1
i_bActivate=ON
2
1
1
2
Error 1
C001H
1
Start
0
0
0
i_bActivate=OFF
i_bActivate
=OFF
i_bActivate
=OFF
i_bActivate
=OFF
i_bS_In=ON AND
(R_TRIG at
i_bReset)=ON
i_bS_In
=OFF
o_bError
o_bError
i_bReset
o_bReady=OFF
o_bReady=ON
o_bS_Out=OFF
o_bS_Out=ON
0
Safety FB state
(1) Safety FBs are not active.
(2) Safety outputs are OFF.
Safety FB state
(1) Safety FBs are active.
(2) Safety outputs are OFF.
Safety FB state
(1) Safety FBs are active.
(2) Safety outputs are ON.
Basic states in each area and conditions of
state transition
State transition from a
non-active FB to an active FB
State transition of safety output
from OFF to ON
Generic state diagram