215
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Timer and Counter Instructions
3
The subroutine above is equivalent to the 400 instructions below
z Timer reset method
There are three methods for resetting a timer instruction.
1. Use the TIMER RESET Instruction.
The specified instruction will be reset when the TIMER RESET instruction (TRSET) is executed.
TRSET can be used to reset only one timer at a time, but it is faster than the RESET TIMER/COUNTER
instruction (CNR/CNRX).
Use TRSET when a timer is to be reset and then restarted within the same cycle.
TIM
0000
D100
2000.00
T0000
2000.00
TIM
0001
D101
2000.01
T0001
2000.01
TIM
0099
D199
2006.02
T0099
2006.02
TRSET
0010
0.00
TIM
0010
#100
0.01
TIM will be reset and start timing
again when CIO 0.00 turns ON.
ON
OFF
ON
OFF
ON
OFF
Reset input
CIO 0.00
Timer input
CIO 0.01
Timer PV
T0010
Completion
Flag
T0010
TRSET executed.
TRSET resets T10, which
starts timing again.
The timer is also reset
when it times out.