Siemens SIMATIC S5-115U User Manual page 217

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents