STEP 5 Operations
S5-95F
Loading a Count as an Input, Output, Flag, or Data Word
Load statement:
L
DW
3
The count 410 is stored in data word DW3 in BCD code.
Bits 12 to 15 are insignificant for the count.
11
0
15
0
1
0
0
0
0
0
1
0
0
0
0
Bit
Three-digit count
(in BCD code)
DW3
Scanning the Counter
Use Boolean logic operations to scan the counter status (e.g., A Cx). As long as the count is not
zero, the scan result is signal state “1”.
Output of the Current Counter Status
You can use a load operation to put the current counter status into ACCU 1 and process it further
from there. The “Load in BCD” operation outputs a digital display (see Figure 8-5).
Figure 8-5. Output of the Current Counter Status (Example)
ACCU
1
Current Counter Status in C2
L C2
LD C2
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 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
Binary count
Three-digit count in
BCD code
Indicates bit positions occupied by
"
0
"
.
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 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 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
8-26
EWA 4NEB 812 6210-02