STEP 5 Operations
Loading a Constant Count
The following example shows how the count 37 is loaded.
L KC
37
Loading a Count as Input, Output, Flag, or Data Word
Load statement:
The count 410 is stored in data word DW 3 in BCD code.
Bits 12 to 15 are insignificant for the count.
15
11
0 1 0 0
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".
8-26
Operation
Operand
Count (0 to 999)
L
DW
3
0 0 0 1
0 0 0 0
Three-digit count
(in BCD code)
S5-115U Manual
0
Bit
DW 3
EWA 4NEB 811 6130-02b