STEP 5 Operations S5-100U
Loading a Constant Count
The following example shows how the count 38 is loaded.
LKC 38
Operation
Operand
Count (0 to 999)
Loading a Count as an Input, Output, Flag, or Data Word
Load statement: LDW 3
The count 410 is stored in data word DW3 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)
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”.
8-26
EWA 4NEB 812 6120-02