345
FX
3U
/FX
3UC
Series Programmable Controllers
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
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
Output pulse characteristics
1) Write in advance prescribed data to data registers constructing the table as shown in this program
example.
2) The output frequency of PLSY instruction remains in the value (D303, D302) until the current value of a
high speed counter specified in
becomes equivalent to (D301, D300). (D302 specifies low-order
16 bits. D303 specifies high-order 16 bits, but is always "0".)
3) The operation in the 2nd line is started after that, and then the operation in each line is executed in turn.
4) When the operation in the last line is completed, the complete flag M8133 turns ON. The program
execution returns to the 1st line, and the operation is repeated.
5) For stopping the operation in the last line, set the frequency in the last table to K0.
6) When the command input is set to OFF, the pulse output turns OFF and the table counter D8131 is reset.
7) After DHSZ instruction is first executed, creation of the table is completed in END instruction. DHSZ
instruction becomes valid after that.
8) Accordingly, the contact of PLS M10 is used so that PLSY instruction is executed from the second scan
after the command input has been set to ON.
Data can be written to the table in a program as shown in this example or directly using keys in peripheral
equipment.
1) M8132
This is the special auxiliary relay for declaring the frequency control mode
2) D8132
In the frequency control mode, the frequency set in the table is received by D8132 in turn according to
count-up of the table counter D8131.
3) D8134 (low-order) and D8135 (high-order)
In the frequency control mode, the comparison data in the table is received in turn according to count-up
of the table counter.
Cautions
1) DHSZ instruction can be used only once.
2) With regard to the DHSCS (FNC 53), DHSCR (FNC 54), DHSZ (FNC 55) and DHSCT (FNC280)
instructions used for other purposes, up to 32 instructions including the DHSZ instruction can be driven at
one time.
3) Because the table is created when the END instruction is executed, it is necessary to delay execution of
the PLSY (FNC 57) instruction until creation of the table is completed.
4) Do not change the table data while the DHSZ instruction is driven.
5) In the frequency control mode, simultaneous output to Y000 to Y001 is not permitted.
→
Current value of C251
Output pulse
frequency (Hz)
0
100
200
300
500
0
20
600
700
800
S