Program In Which Comparison Result Is Set To On When Power Is Turned On [Zcp (Fnc 11) Instruction] - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
13.6.1 Program in which comparison result is set to ON when power is turned ON
[ZCP (FNC 11) instruction]
DHSZ instruction outputs the comparison result only when a counting pulse is input. Even if the current value
of C235 is "0", Y010 remains OFF at the time of startup.
For initializing Y010, compare the current value of C235 with K1000 and K1200 and drive Y010 by DZCPP
instruction (for general zone comparison) as pulse operation only at the time of startup.
Refer to the program example shown below.
Explanation of operation
The outputs Y010 to Y012 are as shown below:
Y010 = ON
0
1000
Program example
X010
M8000
C235
RUN monitor
X010
Start
Timing chart
In the part [1] in the timing chart, Y010 remains OFF if the current value of a high speed counter (C235 in the
example below) is "0" when restoring the power.
1) For initializing Y010, the current value of C235 is compared with K1000 and K1200, and Y010 is driven
using DZCPP instruction (for general zone comparison) as pulse operation only at the time of startup.
2) The comparison result in Y010 is latched until an input pulse is input and the comparison output is driven
by DHSZ instruction.
3) According to the current value of the counter, DHSZ instruction drives the output (A), (B) or (C).
338
Y011 = ON
Y012 = ON
1200
Current value of C235
RST
C235
FNC 40
Y010
Y012
ZRST
K9999 ... pulse input: X000
FNC 11
K1000
K1200
DZCPP
S
S
1
2
FNC 55
K1000
K1200
DHSZ
13 High Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High Speed Counter Zone Compare
Y010 to Y012 are reset.
Immediately after start, comparison is
C235
Y010
executed only in one scan.
K1000 > C235
K1000 ≤ C235 ≤ K1200 :Y011 ON
K1200 < C235
S
D
After start, comparison is executed
C235
Y010
when a pulse is input from X000.
K1000 > C235
K1000 ≤ C235 ≤ K1200 :Y011 ON
K1200 < C235
:Y010 ON
:Y012 ON
:Y010 ON
:Y012 ON

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents