Mitsubishi Electronics FX3G User Manual

Page of 964
761
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
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
35.1.4 Handling and role of initial state relay
Handling of the initial state relay
• A state relay located at the head of an SFC program is the initial state relay. Only state relays S0 to S9 are 
available.
• The initial state relay is driven by way of another state relay (S24 in the example shown below). But it is necessary 
to drive the initial state relay in advance by another measure at the start of operation.
• In the example shown below, the initial state relay is driven by the special auxiliary relay M8002 which turns ON and 
remains ON only momentarily when the PLC mode is changed from STOP to RUN.
• General state relays other than initial state relays should be driven by another state relay. They cannot be driven by 
any other device.
• The state relay which may be driven by a contact other than the STL instruction is there by defined as the initial 
state relay, and should be described at the top of the flow.
Role of the initial state relay
1. Used as an identification device for inverse conversion
• In inverse conversion from an instruction list into an SFC program, it is necessary to identify the top of the flow. For 
this purpose, use the initial state relay S0 to S9.
If any other state relay number is used, inverse conversion is disabled.
• Program the STL instruction for the initial state relay before the STL instructions for subsequent state relays. 
Program the RET instruction at the end.
By this programming method, if there are two or more independent flows, they the separated from each other.
2. Used to prevent double start
• In the above example, even if the start button is pressed while the state relay S24 is ON, the command is invalid 
(S0 does not turn ON).
As a result, double start is prevented.
35.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 or EEPROM memory
against power failure.
Use this type of state relay if the operation should be restarted from the last point before power failure.
Y023
Y021
Ladder block
SFC block
M8002
SET
S0
The initial state relay is
driven.
0
20
0
1
4
24
5
S0
RET
END
X000
TRAN
X001
TRAN
Y021
Y023
X003
TRAN
X002
TRAN
Initial pulse
Initial state relay