STEP 5 Operations S5-115F Manual
Loading a count as input, output, flag, or data word
Load statement: LDW 3
The count 410 is stored in data word DW 3 in BCD code.
Bits 12 to 15 are insignificant for the count.
11 015
0 1 0 0 0 0 0 1 0 0 0 0
Bit
Three-digit count
(in BCD code)
DW 3
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”.
Outputting the current counter status
You can use a load operation to put the current counter status into ACCUM 1 and process it
further from there. The ”Load in BCD” operation outputs a digital display ( Figure 3-5).
ACCUM 1
Current Counter Status in C2
L Z2 LC Z2
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
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
Figure 3-5. Outputting the Current Counter Status
3-26
EWA 4NEB 811 6149-02