S5-90U/S5-95U
STEP 5 Operations
Processing the Jump Operations
A symbolic jump destination (jump label) must always be entered next to a jump operation. This
jump label can have up to four characters. The first character must be a letter of the alphabet.
When programming, please be aware of the following items.
•
The absolute jump displacement cannot 127 or - 128 words in the program memory.
Some statements take up two words (e.g., ”Load a constant”). For long jumps, insert an inter-
mediate destination.
•
Jumps can be executed only within a block.
•
Jumping over segment boundaries (”BLD 255”) is not permitted.
•
Jump labels can be set only at the start of a series of scans.
1
The ”L...” statement does not affect the condition codes. An addition (+F) is executed with the constant 0000
H
so that the
”JZ” operation can evaluate the contents of the accumulator.
STL
Explanation
Example
If no bit of input word IW1 is
set, program scanning jumps to
the label ”AN 1”. If input word
IW1 and output word QW3 do
not agree, program processing
jumps back to the label ”AN 0”.
Otherwise input word IW 1 and
data word DW12 are compared.
If input word IW1 is greater than
or less than data word DW12,
program scanning jumps to the
”Destination”
label.
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
AN0
:L
IW 1
:L
KH 0000
:+F
:JZ=
AN 1
:A
I 32.0
.
.
.
.
.
.
AN1
:L
IW 1
:L
QW 3
:XOW
:JN = AN 0
:L
IW 1
:L
DW12
:><
F
:JC = DEST
.
.
.
.
.
DEST
:A
I 32.1
.
.
Load input word IW1 into ACCU
1. If the contents of ACCU 1
equal zero
1
, jump to the label
”AN 1”. Otherwise process the
next statement (AI 32.0).
Compare input word IW1 and
output word QW3. If they are
not equal, set individual bits in
ACCU 1.
If the contents of ACCU 1 are
not zero, jump to the label
”AN 0”. Otherwise process the
next statements.
Compare input word IW1 and
data word DW 12. If they are
not equal, set RLO to ”1”.
If the RLO = ”1”, jump to the
”Destination” label. If the RLO
= ”0”, process the next
statement.
EWA 4NEB 812 6115-02b
8-57
Содержание SIMATIC S5-90U
Страница 3: ...SIMATIC S5 S5 90U S5 95U Programmable Controller System Manual EWA 4NEB 812 6115 02b Edition 03 ...
Страница 6: ...EWA 4NEB 812 6115 02b ...
Страница 16: ...EWA 4NEB 812 6115 02b ...
Страница 23: ......
Страница 32: ...EWA 4NEB 812 6115 02b ...
Страница 46: ...EWA 4NEB 812 6115 02b ...
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 89: ......
Страница 102: ...EWA 4NEB 812 6115 02b ...
Страница 118: ...EWA 4NEB 812 6115 02b ...
Страница 242: ...EWA 4NEB 812 6115 02b ...
Страница 288: ...EWA 4NEB 812 6115 02b ...
Страница 300: ...EWA 4NEB 812 6115 02b ...
Страница 362: ...EWA 4NEB 812 6115 02b ...
Страница 536: ...EWA 4NEB 812 6115 02b ...
Страница 538: ...EWA 4NEB 812 6115 02b ...
Страница 540: ...EWA 4NEB 812 6115 02b ...
Страница 562: ...EWA 4NEB 812 6115 02b ...
Страница 564: ...EWA 4NEB 812 6115 02b ...
Страница 590: ...EWA 4NEB 812 6115 02b ...
Страница 596: ...EWA 4NEB 812 6115 02b ...
Страница 598: ...EWA 4NEB 812 6115 02b ...
Страница 604: ...EWA 4NEB 812 6115 02b ...
Страница 606: ...EWA 4NEB 812 6115 02b ...
Страница 608: ...EWA 4NEB 812 6115 02b ...
Страница 610: ...EWA 4NEB 812 6115 02b ...
Страница 620: ...EWA 4NEB 812 6115 02b ...