Siemens CPU 948 Programming Manual page 99

Simatic s5 s5-155u
Table of Contents

Advertisement

Timer value
Example
CPU 948 Programming Guide
C79000-G8576-C848-04
With the operation L KT, you can load a timer value directly into
ACCU 1 or indirectly from a flag or data word. The value must have
the following structure (with L KT, you specify the time base after the
period in the operand as shown below):
Bit no.
15 14 13
12
10
11
10
Timer value 0 ... 999 in BCD
Time base specified in BCD:
These bits are irrelevant
(i.e. they are ignored when
the timer is started)
You want to set a time of 127 sec.:
Bit assignment:
0
0
x
x
1
0
2
Time base 1 sec
Irrelevant
Note
The start of each timer is liable to an inaccuracy of 1 time base!
When using timers, you should therefore select the smallest
possible time base (time base < timer value):
Example:
time value 4s not:
1 s x 4
but:
0.01 s x 400 inaccuracy: 0.01 s
9
8
6
5
7
4
3
2
1
10
0
1
0
0
1
0
2
1
Timer value 127
inaccuracy: 1 s
Basic Operations
2
1
0
0
10
0: 0.01 sec
1: 0.1 sec
2: 1 sec
3: 10 sec
0
1
1
1
7
3 - 27

Advertisement

Table of Contents
loading

Table of Contents