498
7 APPLICATION INSTRUCTION
7.11 Special timer instruction
Special function timer
STMR
This instruction uses the four devices from the device specified by (d) to perform four types of timer output.
■Descriptions, ranges, and data types
■Applicable devices
*1 Only T can be used.
■Control data
Ladder diagram Structured text
ENO:=STMR(EN,s1,s2,d);
Operand Description Range Data type Data type (label)
(s1) Used timer number (operates as a 100 ms timer) Device name ANY16
(s2) Timer set value 1 to 32767 16-bit unsigned binary ANY16
(d) Start bit number to be output Bit Bit
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
*1
(s2)
(d)
Operand: (d)
Device Description Setting range Set by
+0 Off delay timer output:
Turns on at the rising edge of the command of the STMR instruction and turns off when the time specified by
(s2) elapses after the falling edge.
System
+1 One-shot timer output after turning off:
Turns on at the falling edge of the command of the STMR instruction and turns off when the time specified by
(s2) elapses.
System
+2 One-shot timer output after turning on
Turns on at the rising edge of the command of the STMR instruction and turns off when the command of the
STMR instruction is turned off or when the time specified by (s2) elapses.
System
+3 On delay timer + Off delay timer output:
Turns on at the falling edge of the timer coil and turns off when the time specified by (s2) elapsed after the falling
edge of the command of the STMR instruction.
System