Mitsubishi Electronics FX3S Manuale Utente

Pagina di 964
788
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
35.2.4 Creation of step ladder program (SFC program 
 STL program)
The figure on the left shows one state relay extracted as an example from an SFC program.
Each state relay has three functions, driving a load, specifying a transfer destination and specifying a transfer
condition.
The step ladder shown on the right expresses this SFC program as a relay sequence.
In this program, a load is driven, and then the ON status is transferred.
In a state relay without any load, the drive processing is not required.
For the program creation procedure, refer to the description on SFC programs.
→ For the program creation procedure, refer to Subsection 35.1.3.
→ For the handling and role of initial state relays, refer to Subsection 35.1.4.
→ For latched (battery backed) type state relays, refer to Subsection 35.1.5.
→ For RET instruction, refer to Subsection 35.1.6.
*1.
SET and RST instructions for a state relay are two-step instructions.
• When every state relay used in an SFC program is defined, programming is complete.
• Program a step ladder program starting from the initial state relay in the order of state relay ON status transfer.
Make sure to put the RET instruction at the end of a step ladder program. 
Program with jump/repeated flows
1. Program for the transfer source
Use OUT instruction in the jump/repeated part.
21
20
Y010
1
X011
X000
TRAN
X010
Y010
STL
S20
Y011
SET
S21
<Step ladder>
<SFC program>
SET
STL
Y011
X010
X011
X001
X000 X001
<List program>
0
1
2
3
4
5
6
7
STL
OUT
LD
OR
OUT
LD
ANI
SET
S20
Y010
X010
X011
Y011
X000
X001
S21
*1
The above program can be expressed in the list format
(list program) shown on the left.
The segment from the STL instruction to the RET
instruction is handled as a step ladder program.
STL
LD
OUT
LD
SET
LD
OUT
41
40
Y001
1
X001
X003
X001
X002
TRAN
2
3
X003
TRAN
X002
Y001
STL
S40
SET
S41
S52
<Step ladder>
<SFC program>
52
<List program>
S40
X001
Y001
X002
S41
X003
S52
Jump/repeated part
Use OUT instruction in the jump/
repeated part.