Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controllers STL Programming 3
3-6
3.4.2 Using OUT to drive an STL coil
This has the same operational features as usin
g
SET. However, there is one ma
j
or function
which SET is not used. This is to make what is termed ‘distant
j
umps’.
OUT is used for loops and jumps
If a user wishes to ‘
j
ump’ back up a pro
g
ram,
i.e.
g
o back to a state which has alread
y
been
processed, the OUT instruction would be used
with the appropriate STL state number.
Alternativel
y
the user ma
y
wish to make a
lar
g
e ‘
j
ump’ forwards skippin
g
a whole section
of STL pro
g
rammed states.
Out is used for distant jumps
If a step in one STL pro
g
ram flow was required
to tri
gg
er a step in a second, separate STL
pro
g
ram flow the OUT instruction would be
used.
S 0
S 22
S 20
S 21
OUT
S 23
S 0
S 20
S 21
S 23
S 22
OUT
Partial
repeat
Program
jump
S 0
S 20
S 21
S 23
S 22
OUT
S 1
S 40
S 41
S 44
S 43
S 42
STL
flow 1
STL
flow 2
Note:
Althou
g
h it is possible to use SET for
j
umps and loops use of OUT is needed for
displa
y
of STL in SFC like structured format.