6.8 Other Convenient Instructions
6.8.4 Special function timer
6-161
6
BA
S
IC
INSTRUCTIONS
STMR
STMR
• ON-delay and OFF-delay timer output (
+3)
Turns ON at the falling pulse of the timer coil, and after the falling pulse command of the
STMR instruction, turns OFF when the amount of time specified for n has passed.
(2) The timer coil specified for
turns ON at the rising pulse and falling pulse command of the
STMR instruction, and starts measurement of the current value.
• The timer coil measures to the point where the value reaches the setting value specified
for n, then enters a time up status and turns OFF.
• If the command of the STMR instruction turns OFF before the timer coil reaches the time
up status, it will remain ON. Timer measurement is suspended at this time. When the
STMR instruction command turns ON once again, the current value will be cleared to 0
and measurement will begin once again.
(3) The timer contact turns ON at the rising pulse command of the STMR instruction, and after
the falling pulse is reached, the timer coil turns OFF at the falling pulse command of the
STMR instruction.
The timer contact is used by the CPU module system, and cannot be used by the user.
(4) Measurement of the current value of the timer specified in the STMR instruction is
conducted during the execution of the STMR instruction.
If the STMR instruction is jumped with the JMP or similar instruction, it will not be possible to
get accurate measurement.
(5) Measurement unit for the timer specified for
is identical to the low-speed timer.
(6) Values between 1 and 32767 can be set for n.
(7) The timer specified for
cannot be used in the OUT instruction.
If the STMR instruction and the OUT instruction use the same timer number, accurate
operation will not be conducted.
O
p
erat
i
on
E
rror
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
d
s
Setting value
s
p
eci
f
ied
b
y n
Command
f
or
STMR instruction
(Coil)
(Contact)
+ 0
+
1
+
2
+ 3
Setting value
s
p
eci
f
ied
b
y n
Setting value
s
p
eci
f
ied
b
y n
Setting value
s
p
eci
f
ied
b
y n
OFF delay timer
One-s
h
ot timer a
f
ter OFF
One-s
h
ot timer a
f
ter ON
ON delay timer + OFF delay timer
s
d
s
d
d
d
d
s
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: ......