Справочник Пользователя для Mitsubishi Electronics FX2NC

Скачать
Страница из 382
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 using SET. However, there is one major function
which SET is not used. This is to make what is termed ‘distant jumps’.
OUT is used for loops and jumps
If a user wishes to ‘jump’ back up a program,
i.e. go back to a state which has already been
processed, the OUT instruction would be used
with the appropriate STL state number.
Alternatively the user may wish to make a
large ‘jump’ forwards skipping a whole section
of STL programmed states.
Out is used for distant jumps
If a step in one STL program flow was required
to trigger a step in a second, separate STL
program 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: Although it is possible to use SET for jumps and loops use of OUT is needed for
display of STL in SFC like structured format.