2.3 CT16- (16-bit Counter)
Difference between CT and CT16- instructions
When specifying a 16-bit device
- CT instruction
CT0
DT0
X100
C0 Y131
X101
Count
Reset
DT0 DT1
U1 U2
CE0
U131073
DT0 is treated as 32-bit data U131073(H20001).
U131073 is set in the elapsed value area CE0 when the input of X101 falls.
- CT16- instruction
CT16-
0
DT0
X100
C0 Y131
X101
Count
Reset
DT0
U1
CE0
U1
DT0 is treated as 16-bit data U1(H1).
U1 is set in the elapsed value area CE0 when the input of X101 falls.
Note)
When a 32-bit value is written into the elapsed value area CE while the counter is being
operated using an instruction such as MV instruction, the timer operates with the written 32-bit
value.