Stmr; Special Function Timer - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

STMR

Program Example
(1) The following program stores the amount of time that X0 is ON at D0.
[Ladder Mode]
6.8.4
STMR

Special function timer

6.8.4
STMR
STMR
: Timer number (word)
S
n
: Value to set (BIN 16 bits).
:
+ 0: Off delay timer output (bits)
D
D
+ 1: One shot timer output after OFF (bits)
D
+ 2: One shot timer output after ON (bits)
D
+ 3: ON delay and Off delay timer output (bits)
D
Internal Devices
Setting
Data
Bit
Word
––
S
n
––
D
*1:
Can be used only by timer (T) data
Function
(1) The STMR instruction uses the 4 points from the device designated by
• 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
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.
292
[List Mode]
Step
Command
J
R, ZR
Bit
*1
––
––
D
D
D
D
turns ON at the leading edge and trailing edge of the command for the STMR instruction,
S
Instruction
Device
High
Basic
performance
STMR
S
\
U
\G
Word
––
––
to perform four types of timer output.
D
Process
Redundant
Universal
LCPU
n
D
Constants
Zn
Other
K, H
––
––
––

Advertisement

Table of Contents
loading

Table of Contents