292
STMR
Program Example
(1) The following program stores the amount of time that X0 is ON at D0.
[Ladder Mode]
[List Mode]
: Timer number (word)
n
: Value to set (BIN 16 bits).
:
+ 0: Off delay timer output (bits)
+ 1: One shot timer output after OFF (bits)
+ 2: One shot timer output after ON (bits)
+ 3: ON delay and Off delay timer output (bits)
*1:
Can be used only by timer (T) data
Function
(1) The STMR instruction uses the 4 points from the device designated by to perform four types of timer output.
• OFF delay timer output ( +0)
Goes ON at the leading edge of the command for the STMR instruction, and after the trailing edge of the command,
goes OFF when the amount of time designated by n has passed.
• One shot timer output after OFF ( +1)
Goes ON at the trailing edge of the command for the STMR instruction, and goes OFF when the amount of time
designated by n has passed.
• One shot timer output after ON ( +2)
Goes ON at the leading edge of the command for the STMR instruction, and goes OFF either when the amount of
time designated by n has passed, or when the command for the STMR instruction goes OFF.
• ON delay timer output ( +3)
Goes ON at the trailing edge of the timer coil, and after the trailing edge of the command for the STMR instruction,
goes OFF when the amount of time designated by n has passed.
(2) The timer coil designated by turns ON at the leading edge and trailing edge of the command for the STMR instruction,
and starts measurement of the present value.
• The timer coil measures to the point where the value reaches the set value designated by n, then enters a time up
state and goes OFF.
• If the command for the STMR instruction goes OFF before the timer coil reaches the time up state, it will remain ON.
Timer measurement is continued at this time. When the STRM instruction command goes ON once again, the present
value will be cleared to 0 and measurement will begin once again.
STMR
Special function timer
6.8.4
STMR
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
*1
––
––
––
n
––
––
––
––
––
Step
Instruction
Device
Basic
Redundant
Process
High
performance
Universal
LCPU
Command
STMR
n
S
D
STMR
S
D
D
D
D
D
S
D
D
D
D
D
D
S