Panasonic FP7 Series Command Reference Manual page 141

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

Advertisement

Regarding the specification of timer time
● The timer set time is (timer unit) × (timer set value).
● The timer set value [S] is specified within the range between U1 to U4294967295, using a
decimal constant.
"TMS" is specified within the range from 0.00001 to 42949.67295 seconds, in units of 0.00001 seconds.
"TML" is specified within the range from 0.001 to 4294967.295 seconds, in units of 0.001 seconds.
"TMR" is specified within the range from 0.01 to 42949672.95 seconds, in units of 0.01 seconds.
"TMX" is specified within the range from 0.1 to 429496729.5 seconds, in units of 0.1 seconds.
"TMY" is specified within the range from 1 to 4294967295 seconds, in units of 1 seconds.
Operation Example
Precautions for programming
● The timer set value area TS and timer elapsed value area TE both occupy 32-bit areas. This
is also true when a device such as DT is used in the operand [S]. Be careful not to overwrite
the areas with another program.
● 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 using a timer instruction with an AND stack (ANS) instruction or pop stack (POPS)
instruction, be sure to write the code correctly.
Timer operation mechanism
● This is an example when the U constant is used to specify the set value. See below for the
operation when specifying the set value area number.
1) When the operation mode is switched to RUN or the power is turned ON in the RUN mode,
the timer set value is transferred to the set value area "TS" with the same number.
WUME-FP7CPUPGR-12
3.17 TM (Timer)
3-37

Advertisement

Table of Contents
loading

Table of Contents