
Introduction to STEP 5
S5-90U/S5-95U
You can use the ”LD” operation to load a binary number as a BCD number for timer and counter
values.
Example:
Comparing a count in counter 1 with decimal number 499.
The comparison value must be stored in the accumulator by means of the load
operation. In order not to have to convert the value 499 into other numerical systems
(binary or hexadecimal) for input, use the ”L KF +499” statement. The number 1F3
H
is
then stored in the accumulator.
The current count must also be loaded into the accumulator.
L KF+499
L KF+499
0 0 0 0 0 0 0 1
1 1 1 1 0 0 1 1
0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 1
0 0 0 0 0 1 0 0
1 0 0 1 1 0 0 1
0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 1
LC C 1
L C 1
Incorrect method:
If you use the ”LD C1” statement
for this purpose, the current count
will be loaded in BCD. The ”!=F”
comparison operation results in a
not-equal-to condition since the
comparison involves different
formats.
Correct method:
If the ”L C1” statement is en-
tered, the formats are identical.
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
High byte
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a
Low byte
7-20
EWA 4NEB 812 6115-02b
Содержание SIMATIC S5-90U
Страница 3: ...SIMATIC S5 S5 90U S5 95U Programmable Controller System Manual EWA 4NEB 812 6115 02b Edition 03 ...
Страница 6: ...EWA 4NEB 812 6115 02b ...
Страница 16: ...EWA 4NEB 812 6115 02b ...
Страница 23: ......
Страница 32: ...EWA 4NEB 812 6115 02b ...
Страница 46: ...EWA 4NEB 812 6115 02b ...
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 89: ......
Страница 102: ...EWA 4NEB 812 6115 02b ...
Страница 118: ...EWA 4NEB 812 6115 02b ...
Страница 242: ...EWA 4NEB 812 6115 02b ...
Страница 288: ...EWA 4NEB 812 6115 02b ...
Страница 300: ...EWA 4NEB 812 6115 02b ...
Страница 362: ...EWA 4NEB 812 6115 02b ...
Страница 536: ...EWA 4NEB 812 6115 02b ...
Страница 538: ...EWA 4NEB 812 6115 02b ...
Страница 540: ...EWA 4NEB 812 6115 02b ...
Страница 562: ...EWA 4NEB 812 6115 02b ...
Страница 564: ...EWA 4NEB 812 6115 02b ...
Страница 590: ...EWA 4NEB 812 6115 02b ...
Страница 596: ...EWA 4NEB 812 6115 02b ...
Страница 598: ...EWA 4NEB 812 6115 02b ...
Страница 604: ...EWA 4NEB 812 6115 02b ...
Страница 606: ...EWA 4NEB 812 6115 02b ...
Страница 608: ...EWA 4NEB 812 6115 02b ...
Страница 610: ...EWA 4NEB 812 6115 02b ...
Страница 620: ...EWA 4NEB 812 6115 02b ...