"TM16Y" is specified within the range from 0 to 65535 seconds, in units of 1 seconds.
■
Precautions for programming
● The timer set value area TS and timer elapsed value area TE both occupy 32-bit areas.
● When specifying a 16-bit device such as DT for the operand S of TM16 instruction, the area
used is for 16-bit data.
● Since decrementing occurs during an operation, create the program so that decrementing
occurs once during a single scan time. If multiple operations occur during a single scan due
to an interruption handler program or jump/loop instruction, or decrementing never occurs,
the correct result will not be obtained.
● When U0 is specified for the setting value, the timeout operation is performed when the
instruction is executed and the timer contact T turns ON.
● When using a timer instruction with an AND stack (ANS) instruction or pop stack (POPS)
instruction, be sure to write the code correctly. (For details, refer to
■
Difference between TM and TM16 instructions
TM instruction (When specifying operand S=16-bit device)
32-bit data U131073 (H20001) written in DT0 to DT1 is treated as the timer setting value.
U131073 is set in the elapsed value area TE0 when the input of R0 rises.
TM16 instruction (When specifying operand S=16-bit device)
16-bit data U1 (H1) written in DT0 is treated as the timer setting value. U1 is set in the elapsed
value area TE0 when the input of R0 rises.
TM instruction (When specifying operand S=constant)
Constant U100 is set in the setting value area TS0 when compiling the program. The setting
value area TS0 is set in the elapsed value area TE0 when the input of R0 rises. The setting
range of a constant is U0 to U4294967295.
3.18 TM16 (16-bit Timer)
WUME-FP7CPUPGR-12
3-47
Summary of Contents for FP7 Series
Page 2: ... MEMO 2 WUME FP7CPUPGR 12 ...
Page 18: ... MEMO xviii WUME FP7CPUPGR 12 ...
Page 52: ... MEMO 1 34 WUME FP7CPUPGR 12 ...
Page 104: ... MEMO 2 52 WUME FP7CPUPGR 12 ...
Page 123: ...3 9 ANS AND stack WUME FP7CPUPGR 12 3 19 ...
Page 125: ...3 10 ORS OR Stack WUME FP7CPUPGR 12 3 21 ...
Page 129: ...3 11 PSHS Push stack RDS Read stack POPS Pop stack WUME FP7CPUPGR 12 3 25 ...
Page 190: ...3 26 JP LBL Jump Label 3 86 WUME FP7CPUPGR 12 ...
Page 239: ...Name Description SR8 ER 3 46 ST ST ST ST ST ST Data Comparison Start WUME FP7CPUPGR 12 3 135 ...
Page 246: ... MEMO 3 142 WUME FP7CPUPGR 12 ...
Page 258: ... MEMO 4 12 WUME FP7CPUPGR 12 ...
Page 304: ... MEMO 5 46 WUME FP7CPUPGR 12 ...
Page 321: ...Name Description ER 6 7 DIVFP2 Division FP2 Compatible WUME FP7CPUPGR 12 6 17 ...
Page 348: ... MEMO 6 44 WUME FP7CPUPGR 12 ...
Page 388: ... MEMO 7 40 WUME FP7CPUPGR 12 ...
Page 438: ... MEMO 8 50 WUME FP7CPUPGR 12 ...
Page 450: ... MEMO 9 12 WUME FP7CPUPGR 12 ...
Page 520: ... MEMO 10 70 WUME FP7CPUPGR 12 ...
Page 602: ... MEMO 11 82 WUME FP7CPUPGR 12 ...
Page 622: ... MEMO 12 20 WUME FP7CPUPGR 12 ...
Page 650: ... MEMO 13 28 WUME FP7CPUPGR 12 ...
Page 1160: ... MEMO 18 66 WUME FP7CPUPGR 12 ...
Page 1188: ... MEMO 19 28 WUME FP7CPUPGR 12 ...
Page 1220: ... MEMO WUME FP7CPUPGR 12 ...
Page 1221: ... MEMO WUME FP7CPUPGR 12 ...