Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
12 Applied Instructions (High Speed Processing)
285
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Appl
ied
 In
stru
cti
ons 
(D
ata O
per
at
io
n)
12
Ap
plied
 Instru
ctio
ns 
(High S
peed 
Process
ing)
13
App
lied Instr
ucti
ons 
(Handy
 
Instruction)
14
Ap
pl
ied In
struct
ions 
(External FX I/O
 
D
evice)
15
Appl
ied
 Instru
cti
ons
 
(External
 Dev
ice 
(op
tional
 dev
ice)
)
16
App
lie
d Instr
uction
(E
xter
nal
 Devi
ce)
17
Ap
pl
ied Inst
ruct
io
ns 
(Dat
a T
ransf
er 2)
18
Appl
ied
 In
stru
cti
ons 
(Float
ing P
oin
t)
19
App
lie
d Instr
uction
(D
at
a Oper
at
ion 2)
20
App
lied Inst
ructi
ons 
(Pos
itioning 
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
M8130
Head device
Number of lines
Comparison source