Mitsubishi Electronics FX3G User Manual

Page of 964
363
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
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:
Program example
Y010 = ON
Y011 = ON
Y012 = ON
1000
1200
Current value of C235
0
X010
RST
C235
C235
M8000
RUN monitor
X010
FNC 11
DZCPP
K1000
K1200
C235
Y010
K9999 
… pulse input: X000
FNC 55
DHSZ
K1000
K1200
C235
Y010
Start
FNC 40
ZRST
Y010
Y012
Y010 to Y012 are reset.
Immediately after start, comparison is
executed only once.
K1000 
> C235
:Y010 ON
K1000 
≤ C235 ≤ K1200 :Y011 ON
K1200 
< C235
:Y012 ON
After start, comparison is executed
when each pulse is input from X000.
K1000 
> C235
:Y010 ON
K1000 
≤ C235 ≤ K1200 :Y011 ON
K1200 
< C235
:Y012 ON
S
1
 
S
2