Panasonic FP7 Series Command Reference Manual page 151

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

"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
Programming".)
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.
WUME-FP7CPUPGR-12
3.18 TM16 (16-bit Timer)
"19.8 Precautions for
3-47

Advertisement

Table of Contents
loading

Table of Contents