EasyManua.ls Logo

Siemens Simatic S5-101U - Page 36

Siemens Simatic S5-101U
43 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Example
If
none of the inputs of
input word
IW
1
is set,
a jump is made to label
"AN
1"
If
the input word
IW
1
and output word
'QW
0 are
not identical, a jump is
made back to label
"AN
0".
If
IW
1
and
QW
3
are iden-
tical,
IW
1
is compared
with data word
DW
12.
If
IW
1
is greater or
smaller than DW 12, a
jump is made to the
"Destination" label.
STL
AN0
:
IW
JZ.ANII
:
A
IW
AN]. :L
IW1
:L
QW
:XW
:
JP=ANO
m
:L
IW1
:L DW12
:
F
:JB=Destina-
tion
0
Desti-:A 112.2
nation
.
Explanation
Input word
IW
1
is loaded into
accumulator
1.
If
the contents
of accumulator
1
are equal
to
zero, a jump is executed to label
"AN
l",
otherwise the next state-
rnent (AI 1.0) is executed.
Comparison of input word
IW
1
and output word QW3.
If
the two
words are not identical, individual
bits are set in accumulator
1.
If
the contents of accumulator
1
are not zero, a jump is made back
to the
"AN
0"
label, otherwise the
next statements are executed.
Input word
IW
1
is compared with
data word
W
12 for greater or less
than.
If
IW
1
is greater or less
than DW 12, the RLO is set to
"1".
If
RLO
=
"l",
a jump is made to the
"Destination" label.
If
RLO
=
"O",
the next statement is
executed.

Table of Contents

Related product manuals