Siemens CPU 948 Programming Manual page 100

Simatic s5 s5-155u
Table of Contents

Advertisement

Basic Operations
Counter value
Example
3 - 28
With the operation L KC, you can load a counter value directly in
ACCU 1 or indirectly from a flag or a data word. The value must have the
following structure:
Bit no.
15 14 13
12
10
11
10
Counter value 0 ... 999
These bits are irrelevant,
(i.e. they are ignored when
the counter is set)
You want to specify a counter value of 127:
Bit assignment:
0 0 0
x
x x x
Irrelevant
In the timer or counter itself, the value is in binary code. If you want to
scan the timer or counter, you can load the actual timer or counter
value into ACCU 1 directly or in BCD code.
9
8
6
5
7
4
3
1
2
10
specified in BCD
0 0
1
1
0
1
2
Counter value 127
CPU 948 Programming Guide
C79000-G8576-C848-04
2
1
0
0
10
0
1
1
1
7

Advertisement

Table of Contents
loading

Table of Contents