For details of this instruction, refer to the description of TM instruction in FP7 CPU Unit
Programming Manual.
- The setting time of the timer is (Timer unit) x (Timer setting value).
"TM16S" is 0.00000 to 0.65535 seconds by 0.00001 seconds.
"TM16L" is 0.000 to 65.535 seconds by 0.001 seconds.
"TM16R" is 0.00 to 655.35 seconds by 0.01 seconds.
"TM16X" is 0.0 to 6553.5 seconds by 0.1 seconds.
"TM16Y" is 0 to 65535 seconds by 1 second.
Difference between TIM and TM16 instructions
When specifying a 16-bit device
- TM instruction
TMX0 DT0
R0
T0
Y111
DT0 DT1
U1 U2
TE0
U131073
DT0 is treated as 32-bit data U131073(H20001).
U131073 is set in the elapsed value area TE0 when the input of R0 rises.
- TM16 instruction
TM16X
0
DT0
R0
T0
Y111
DT0
U1
TE0
U1
DT0 is treated as 16-bit data U1(H1).
U1 is set in the elapsed value area TE0 when the input of R0 rises.
Note)
When a 32-bit value is written into the elapsed value area TE while the timer is being operated
using an instruction such as MV instruction, the timer operates with the written 32-bit value.