S5-115U Manual
STEP 5 Operations
STL
Explanation
Example
A photoelectric barrier that
counts piece goods is installed at
input I 2.0. After every 100 pieces,
the program is to jump to FB5 or
FB6. After 800 pieces, counter 10
is to be reset automatically and
start counting again.
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
C
DB
10
A
I
2.0
CU
C
10
A
I
3.0
L
KC
0
S
C
10
O
I
4.0
O
F
5.2
R
C
10
LC
C
10
T
DW 12
TBN
D
12.8
JC
FB
5
TB
D
12.8
JC
FB
6
TB
D
12.11
=
F
5.2
Call data block 10.
Input I 3.0 loads the count of
counter 10 with the constant 0.
With each positive edge change at
I 2.0, the counter is incremented by
1. The counter is reset by either
input I 4.0 or flag F 5.2. The current
count of the counter is stored in
data word DW 12 in BCD code.
As long as bit 8 of data word DW 12
is zero, program processing jumps
to function block FB5. This is the
case for the first, third, fifth etc.
batch of 100 pieces.
As long as bit 8 of data word DW 12
is "1", program scanning jumps to
function block FB6. This is the case
for the second, fourth, sixth etc.
batch of 100 pieces.
When data bit 11 of data word
DW 12 becomes "1" (the count is
then 800), flag F 5.2 is set condi-
tionally.
Input I 11.0 loads the count of
counter 20 with the constant 0. The
count is incremented by 1 with each
positive edge change at input
I 10.0. If the count has reached
256=100
H
(bit 8 is "1"), program
scanning jumps to the label "FULL".
Otherwise the block is terminated.
Bit 8 of counter C 20 is set to "0"
unconditionally. Then the count is
again 000
H
.
A photoelectric barrier that
counts piece goods is installed at
input I 10.0. After every 256
pieces, the counter is supposed to
be reset and start counting again.
:A
I
10.0
:CU C
20
:A
I
11.0
:L
KC 0
:S
C
20
:TB C
20.8
:JC = FULL
:BEU
FULL:RU C
20.8
:BE
Note
Times and counts are stored in the timer/counter word in hexadecimal notation in the
10 least significant bits (bits 0 to 9).
The time base is stored in bits 12 and 13 of the timer word.
EWA 4NEB 811 6130-02b
8-43
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...