Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
12 Applied Instructions (High Speed Processing)
285
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
12.6.2 Table high speed comparison mode (M8130)
This section explains the table high speed comparison mode (high speed pattern output) of the DHSZ
instruction.
When two or more outputs should be activated at one time, use the DHSCT instruction which can change up
to 16 outputs.
(Valid for the FX
U PLC, V3.07 or later)
1. Set data
Function and operation explanation
1. 32-bit operation (DHSZ)
When the special auxiliary relay M8130 for declaring the table high speed comparison mode is specified as
in the DHSZ instruction, the special function shown below is provided.
Comparison table
1) Specify the head number for the comparison table as
Because one line in the comparison table uses four devices, × 4 devices are occupied from .
2) Specify the number of lines in the comparison table as .
The created table starts from the head register , and has the number of lines specified in .
3) Comparison data
Make sure that the comparison data is 32 bits.
4) Output (Y) number
Specify each digit of the (Y) number in hexadecimal form.
Example: When specifying Y010, specify "H10".
When Specifying Y020, specify "H20".
5) Specification of set and reset
These set and reset are directly controlled as interrupt.
Operand type Description Data type
Head word device number storing the data table (only data register D) ANY32
Number of lines in the table (only K or H) ... K1 to K128 or H1 to H80 ANY32
Device number of a high speed counter ANY32
Special auxiliary relay for declaring the table high speed comparison mode Bit
Comparison data
(32 bits)
Output (Y)
number
SET/RST Table counter (D8130)
+1, +2 +3
0
+5, +4 +6 +7
1
+9, +8 +10 +11
2
to to to to
+5, +4 +6 +7
-1
Repeated from "0"
Contents of setting
Set (ON) K1/H1
Reset (OFF) K0/H0
Command
input
OUT_C_32
EN
CCoil
CValue
ENO
CC
K2147483647
Table high speed comparison mode
DHSZ
EN
s1
s2
ENO
d
s
M8130Head device
Number of lines
Comparison source