Program Examples [Off-Delay Timer And Flicker Timer] - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
As shown in the above operation diagram, the accuracy of operation of the timer contact after the coil is
driven until the contact turns ON is shown in the following outline expression:
:0.001 sec (timer for 1 ms), 0.01 sec (timer for 10 ms) or 0.1 sec (timer for 100 ms)
+T
T
0
-
T :Timer set value (sec)
:Operation cycle (sec)
T
0
If the contact is programmed before the timer coil, "+2T0" results in the worst case.
When the timer set value is "0", the output contact turns ON when a coil instruction is executed in the next
cycle.
An interrupt execution type timer for 1 ms pulses counts clock pulses of 1 ms as an interrupt processing after
a coil instruction has been executed.
2.5.6

Program examples [Off-delay timer and flicker timer]

Off-delay timer
X001
TS5
Y000
Flicker timer
X001
TS2
TS1
In addition, the flicker operation can be performed by the ALT instruction.
Multi-timer using the STMR instruction
Off-delay timers, one-shot timers and flicker timers can be easily created using this instruction.
Off-delay timer and one-shot timer
X000
X000
M 0
M 1
M 2
10 sec
M 3
Y000
OUT_T
X001
EN
ENO
TCoil
TC5
K200
TValue
OUT_T
EN
ENO
TCoil
TC1
K20
TValue
OUT_T
EN
ENO
TCoil
TC2
K10
TValue
Y000
STMR
EN
ENO
s
d
T10
M0
K100
m
10 sec
10 sec
10 sec
10 sec
X001
T5
(20 sec)
Y000
X001
2 sec 1 sec 2 sec
T1
T2
T1
Y000
T 2
One operation cycle
(
)
The value specified in "m" is handled as
the set value of a timer specified in input
variable
.
s
The set value is "10 sec." in this example.
M0 is an off-delay timer.
M1 is a one-shot timer which operates after
the input turns OFF from ON.
M2 and M3 are flicker timers, and connected
as shown in the program example below for flicker.
2 Devices in Detail
2.5 Timer [T]
1
2
3
4
5
6
7
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents