Mitsubishi Electronics FX3G User Manual

Page of 964
367
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
Comparison table
1) When this instruction is executed, the top table 
in the data table is set as the comparison target 
data.
2) When the current value of the high-speed
counter C251 is equivalent to the comparison
target data table, the output (Y) number
specified in the table is set or reset.
This output processing is directly executed regardless of completion of output refresh by END instruction.
3) "1" is added to the current value of the table counter D8130.
4) The comparison target data table is transferred to the next table.
5) The steps 2) and 3) are repeated until the current value of the table counter D8130 becomes "4".
When the current value becomes "4", the program execution returns to the step 1), and the table counter D8130 is
reset to "0".
At this time, the complete flag M8131 turns ON.
6) When the command contact is set to OFF, execution of the instruction is stopped and the table counter D8130 is
reset to "0".
Cautions
1. Limitation in the number of DHSZ instructions
This instruction can be programmed only once in a program.
With regard to the DHSCS, DHSCR, DHSZ and DHSCT instructions used for other purposes, up to 32 instructions
including the DHSZ instruction can be driven at one time.
2. When the command input is set to OFF in the middle of execution
Execution of the instruction is aborted, and the table counter D8130 is reset to K0.
However, outputs which have been set or reset remain in the current status.
3. Output start timing
After the DHSZ instruction is first executed, creation of the table is completed by END instruction. After that, the DHSZ
instruction becomes valid.
Accordingly, the output is activated from the second scan.
4. Current value of a high-speed counter
Make sure to execute the DHSZ instruction from a point where the current value of the high-speed counter (regarded
as the operation target) is smaller than the value in the 1st line in the comparison table.
Comparison 
data
Output (Y) 
number
SET/RST
Table counter
D201,D200
K123
D 202
H10
D 203
K1
0
D205,D204
K234
D 206
H10
D 207
K0
1
D209,D208
K345
D 210
H11
D 211
K1
2
↓ 
D213,D212
K456
D 214
H11
D 215
K0
3
D217,D216
K567
D 218
H11
D 219
K1
4

Repeated from
"0".
567
456
345
234
123
Y010
Y011
Present value
of C251
A program to reset
the counter is
required.
A program to reset
the output is
required.