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

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-70
5.7.3
ABSD (FNC 62)
Operation:
This instruction generates a variety of output
pat te rn s   (th e r e  a r e  n   n u m b e r  o f  a d d re s sed
outputs) in response to the current value of a
selected counter, S2.
Points to note:
a) The current value of the selected counter (S2) is compared against a user defined data
table. This data table has a head address identified by operand S1. S1should always have
an even device number.
b) For each destination bit (D) there are two consecutive values stored in the data table. The
first allocated value represents the event number when the destination device (D) will be
turned ON. The second identifies the reset event. The data table values are allocated as a
consecutive pair for each sequential element between D and D+n.
c) The data table has a length equal to 2 
×
 n data entries. Depending on the format of the data
table, a single entry can be one data word such as D300 or a group of 16 bit devices e.g.
K4X000.
d) Values from 0 to 32,767 may be used in the data table.
e) The ABSD instruction may only be used ONCE.
f) FX CPU’s ver 3.07 or greater and FX2C units have double word option on this instruction. 
From the example instruction and the data table below, the following timing diagram for
elements M0 to M3 can be constructed.
Mnemonic
Function 
Operands
Program steps
S
1
S
2
D
n
ABSD
FNC 62
(Absolute
drum
sequencer)
Generates
multiple output
patterns in
response to
counter data
KnX, KnY,
KnM, KnS,
(in groups 
of 8)
T, C, D
C
Y,M,S
Note:
n consec-
utive
devices 
are used
 K,H
Note:
n
≤ 
64
ABSD:
9 steps
DABSD:
17 steps.
see f).
Note: High speed
counters are not 
allowed
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
C 0
D300
M 0
[ S1 ] [ S2 ] [ D ]
K 4
[ n ]
ABSD
D300 - 40
When counter S2 equals the
value below, the destination
device D is
Assigned
destination
device D
D302 - 100
D304 - 160
D306 - 240
D301 - 140
D303 - 200
D305 - 60
D307 - 280
M0
M1
M2
M3
turned ON
turned OFF
M 0
M 1
M 2
M 3
40
140
100
200
60
160
240 280
0
180
360
Count value
ON
OFF