FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Comparison table
Comparison
Output (Y)
data
number
D201,D200
K123
D205,D204
K234
D209,D208
K345
D213,D212
K456
D217,D216
K567
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.
SET/RST
Table counter
D 202
D 203
0
↓
H10
K1
D 206
D 207
1
↓
H10
K0
D 210
D 211
2
↓
H11
K1
D 214
D 215
3
↓
H11
K0
4
↓
D 218
D 219
H11
K1
Repeated from
"0".
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
Present value
of C251
567
456
345
234
123
Y010
Y011
11
A program to reset
the counter is
12
required.
13
A program to reset
14
the output is
required.
15
16
17
18
19
20
367