6-151
STMR
1
2
3
4
4
6
7
8
6.8 Other Convenient Instructions
6.8.4 Special function timer (STMR)
6.8.4 Special function timer (STMR)
STMR
*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.
: 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)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
*1
–– –– ––
n ––
–– –– –– ––
Process
High
performance
Universal
Basic
Redundant
Command
STMR
n
S DSTMR
S
D D
D
D
D
S
D
D
D
D
D
D
S