6-160
6.8 Other Convenient Instructions
6.8.4 Special function timer
STMR
6.8.4
Special function timer
STMR
*1 :Only timers (T) can be used.
F
unct
i
on
(1) The STMR instruction uses the 4 points from the device specified for
to perform four
types of timer output.
• OFF-delay timer output (
+0)
Turns ON at the rising pulse command of the STMR instruction, and after the falling pulse
command, turns OFF when the amount of time specified for n has passed.
• One-shot timer output after OFF (
+1)
Turns ON at the falling pulse command of the STMR instruction, and turns OFF when the
amount of time specified for n has passed.
• One-shot timer output after ON (
+2)
Turns ON at the rising pulse the command for the STMR instruction, and turns OFF either
when the amount of time specified for n has passed, or when the command of the STMR
instruction turns OFF.
STMR
indicates the following instruction.
STMR
Input argument,
EN:
Executing condition
: Bit
s:
Timer number
: ANY16
n:
Set value
: ANY16
Output argument,
ENO:
Execution result
: Bit
d:
d[0]:Off-delay timer output
d[1]:One-shot timer output after OFF
d[2]:One-shot timer output after ON
d[3]:On-delay and off-delay timer output
: Array of bit (0..3)
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
U
*1
−
−
−
n
−
−
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
STMR
EN
ENO
s
d
n
STMR
(EN,s, n, d);
ENO:=
s
d
d
d
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......