Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
287
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
12.6 DHSZ / High Speed Counter Zone Compare
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 comparison data table is set or
reset.
This output processing is directly executed without regard to 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 step 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".
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"
OUT_C_32
EN
CCoil
CValue
ENO
CC251
Command input
K2147483647
DHSZ
EN
s1
s2
ENO
d
s
CC251
D200
K5
RST
EN
d
ENO
CC251
Reset
Command input
RST
EN
d
ENO
Y011
Table high speed comparison mode
M8130
567
456
345
234
123
Y010
Y011
Current value
of C251
A program
to reset the
counter is
required.
A program
to reset the
output is
required.