Siemens SIMATIC S5-95F Manual page 197

Table of Contents

Advertisement

S5-95F
Example: KT 40.2 corresponds to 40 x 1 s.
Tolerance:
The time tolerance is equivalent to the time base.
Examples
Possible
settings for
the time
40 s
Note
Always use the smallest time base possible.
Loading a Time as an Input, Output, Flag, or Data Word
Load Statement:
The time 638 s is stored in data word DW2 in BCD code.
Bits 14 and 15 are insignificant for the time value.
15
Time base
Key for Time Base:
Base
0 0
Factor
0.01 s
You can also use the control program to write to data word DW2.
Example: Store the value 270 x 100 ms in data word DW2 of data block DB3.
C
DB 3
L
KT 270.1
T
DW2
EWA 4NEB 812 6210-02
Operand
KT 400.1
KT 40.2
KT 4.3
L
DW
2
11
1 0
0
1
1
0
Three-digit time value
0 1
1 0
0.1 s
1 s
Time Interval
400 × 0.1 s -
0.1 s
40
× 1 s
-
1 s
4
× 10 s -
10 s
0
0
1
1
1
0
(in BCD code)
1 1
10 s
STEP 5 Operations
39.9 s ... 40 s
39 s ... 40 s
30 s ... 40 s
0
Bit
0
0
DW 2
8-17

Advertisement

Table of Contents
loading

Table of Contents