Mitsubishi Electronics FX3G User Manual

Page of 964
760
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
4. Inputting and indicating a program using GX Works2 and GX Developer
• Input a circuit for setting the initial state relay to ON using the relay ladder.
In this example, the initial state relay S0 is set to ON in a ladder block using the special auxiliary relay M8002 which 
turns ON momentarily when the PLC mode is changed from STOP to RUN.
• When inputting a program using GX Works2 and GX Developer, write a relay ladder program to a ladder block, and 
write an SFC program to an SFC block.
• Programs expressing operations in state relays and transfer conditions are handled as internal circuits of the state 
relays and transfer conditions.
Create each one using a relay ladder.
For details on the programming procedure, refer to the following manual.
→ GX Developer Version 8 Operating Manual
→ GX Works2 Version 1 Operating Manual (Simple Project)
Y023
Y021
Write a circuit not
belonging to SFC to a
ladder block using a
relay ladder.
Write an SFC program
to an SFC block.
Ladder block
SFC block
M8002
SET
S0
Program for setting the initial state
relay to ON
Indicate the state relay number and
transfer condition number.
0
20
0
1
21
2
22
3
23
4
24
5
S0
RET
END
X000
TRAN
Y021
Y023
X001
TRAN
T0
X002
TRAN
Y023
Y021
T0
TRAN
Y021
Y023
X003
TRAN
X002
TRAN
When a program is input using GX Works2 
and GX Developer, “RET” and “END” are 
automatically written.
K50
Input them as
internal circuits.