739
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
34 SFC Program and Step Ladder
34.1 SFC Program
31
FN
C
275-FN
C
279
Da
ta
Tr
ans
fe
r 3
32
FN
C
280
-F
N
C
28
9
H
igh Speed
Pr
oces
si
ng 2
33
FN
C
290-FN
C
299
Ext
ensi
on Fi
le
R
egi
st
er
34
SF
C
•S
T
L
Pr
o
g
ra
m
m
in
g
35
In
te
rru
p
t
Funct
ion
36
Sp
e
cia
l De
vic
e
37
E
rro
r C
o
d
e
A
V
e
rs
ion U
p
In
fo
rm
a
tio
n
B
Ex
ec
ut
ion Ti
m
e
s
C
Appl
ic
ab
le
In
st
ru
ct
ion Li
st
34.1.5
Latched (battery backed) type state relays
In the latched (battery backed) type state relays
, the ON/OFF status is backed up by the battery
against power failure.
Use this type of state relays if the operation should be restarted from the last point at power recovery after
power failure occurred in the middle of machine operations.
34.1.6
Role of RET instruction
• Use RET instruction at the end of an SFC program.
When inputting an SFC program using GX Developer, however, it is not necessary to input RET instruction
(because RET instruction is automatically written).
• In a PLC, two or more SFC blocks can be put between step 0 and the END instruction.
When there are ladder blocks and SFC blocks, put RET instruction at the end of each SFC program.
34.1.7
Preliminary knowledge for creating SFC program
List of sequence instructions available in states
• STL instruction cannot be used in interrupt programs and subroutine programs.
• It is not prohibited to use jump instructions in state relays. However, it is not recommended to use jump
instructions because complicated movements will result.
*1.
The MPS instruction cannot be used immediately after a state relay (STL instruction), even in a drive
processing circuit.
Instruction
State relay
LD/LDI/LDP/LDF,
AND/ANI/ANDP/ANDF,
OR/ORI/ORP/ORF,
INV,OUT,SET/RST,
PLS/PLF
ANB/ORB/MPS/MRD/
MPP
MC/MCR
Initial/general state relay
Available
Available
*1
Not available
Branch/
recombination state
relay
Drive processing
Available
Available
*1
Not available
Transfer processing
Available
Not available
Not available
S