Panasonic FP7 Series Command Reference Manual page 154

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

Advertisement

3.19 SPTM (Unsigned 32-bit Incremental Auxiliary Timer)
● The timer set value is specified within the range from U1 (H1) to U4294967295
(HFFFFFFFF), using a U constant.
"SPTM" is specified within the range from 0.01 to 42949672.95 seconds, in units of 0.01 seconds.
Example) When the set value is U500, the set time is 0.01 x 500 = 5 seconds.
Operation Example
When executed with U500 in the set value [S]: DT10
1) Timer operation starts when R0 turns ON.
"0" is transferred to the elapsed value area: DT5.
2) When the value of the elapsed value area: DT5 reaches the value in the set value area:
DT10 (U500), the system relay SRD and output coil R5 turn ON.
3) When R0 turns OFF, the timer operation stops and "0" is transferred to the elapsed
value area: DT5.
R0
R5
SRD
DT10
500
DT5
0
Precautions for programming
● Ensure that the specifications of the area storing the set value and the process value area do
not overlap with other timer/counter instructions or operation memory areas of high-level
instructions.
● Since incrementing occurs during an operation, create the program so that incrementing
occurs once during a single scan time. If multiple operations occur during a single scan due
to an interrupt handler program or jump/loop instruction, or incrementing never occurs, the
correct result will not be obtained.
3-50
500
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents