FX Series Programmable Controllers STL Programming 3
3-3
Combined SFC Ladder representation
Sometimes STL pro
rams will be written in hard cop
as a combination of both flow dia
ram
and internal sub-pro
ram. (example shown below).
Identification of contact states
3.3 How To Start And End An STL Program
Before an
complex pro
rammin
can be undertaken the basics of how to start and more
importantl
how to finish an STL pro
ram need to be examined.
3.3.1 Embedded STL programs
An STL st
le pro
ram does not have to
entirel
replace a standard ladder lo
ic
pro
ram. In fact it mi
ht be ver
difficult to do
so. Instead small or even lar
e section of STL
pro
ram can be entered at an
point in a
pro
ram. Once the STL task has been
completed the pro
ram must
o back to
processin
standard pro
ram instructions until
the next STL pro
ram block. Therefore,
identif
in
the start and end of an STL
pro
ram is ver
important.
3.3.2 Activating new states
Once an STL step has been selected, how is it used and how is the pro
ram ‘driven’?
This is not so difficult, if it is considered that for an STL step to be active its associated state
coil must be ON. Hence, to start an STL sequence all that has to be done is to drive the
relevant state ON.
There are man
different methods to drive a
state, for example the initial state coils could
be pulsed, SET or
ust included in an OUT
instruction. However, within Mitsubishi’s STL
pro
rammin
lan
ua
e an STL coil which is
SET has a different meanin
than one that is
included in an OUT instruction.
M8002
X0
X1
S 0
S 26
X0
X1
X15
S 22
S 27
K20
K20
T0
T7
Y22
T0
Y27
T7
Y20
Y26
• Please note the followin
convention
is used:
Normall
Open contact
Normall
Closed contact
Common alternatives are ‘a’ and ‘b’
identifiers for Normall
Open,
Normall
Closed states or often a line
drawn over the top of the Normall
Closed contact name is used, e.
.
X000.
LD
OUT
LD
SET
STL
OUT
LDI
OUT
RET
LD
OUT
RST
X000
Y004
X002
S009
S009
Y010
X003
Y006
X005
Y007
M080
Normal Ladder Program
Embedded STL Program
STL
S 22
SET S 27
T0
Y22
T0
K20
STL
S 27
Note: For normal STL operation it is recommended that the states are selected usin
the
SET instruction. To activate an STL step its state coil is SET ON.