Mitsubishi Electronics FX3G User Manual

Page of 964
365
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
13.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 HSCT instruction which can change up to 16
outputs.
1. Set data
Explanation of function and operation
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 device 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)
32-bit binary
Number of lines in the table (only K or H) 
… K1 to K128 or H1 to H80
32-bit binary
Device number of a high-speed counter [C235 to C255]
32-bit binary
M8130 (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
+ [
×
 
4 - 3], 
+ [
×
 
4 - 4]
+ [
×
 
4 - 2]
+[ 
×
 
4 - 1]
− 1
Repeated from "0".
Contents of setting
Set (ON)
K1/H1
Reset (OFF)
K0/H0
  
S
1
  
S
2
  S
  D
   
D
K2,147,483,647
FNC 55
DHSZ
M8130
Table high-speed comparison mode
Head
device
Number
of lines
Comparison
source
S
1
 
S
2
 
Command
input
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
1
  
S
2
  
S
1
  
S
2
  
S
1
  
S
2
  
S
1
  
S
2
  
S
2
  
S
1
  
S
2
  
S
1
  
S
2
  
S
1
  
S
2