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

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-43
5.5.1
ZRST (FNC 40)
Operation:
The range of devices, inclusive of those specified as
the two destinations are reset, i.e. for data devices the
current value is set to 0 (zero) and for bit elements,
the devices are turned OFF, i.e. also set to 0 (zero).
The specified device range cannot contain mixed device types, i.e. C000 specified as the first
destination device (D
1
) cannot be paired with T199 as the second destination device (D
2
). When
resetting counters, standard and high speed counters cannot be reset as part of the same
range.
If D
1
is greater than (>) D
then only device D
is reset.
5.5.2
DECO (FNC 41)
Operation:
Source data is provided by a combination of operands
S and n. Where S specifies the head address of the
data and n, the number of consecutive bits. The
source data is read as a single number (binary to
decimal conversion) Q. The source number Q is the
location of a bit within the destination device (D) which
will be turned ON (see example opposite). When the
destination device is a data device n must be within
the range 1 to 4 as there are only 16 available
destination bits in a single data word. All unused data
bits within the word are set to 0.
Mnemonic
Function 
Operands
Program steps
S
D
ZRST
FNC 40
(
Zone
Reset)
Used to reset a
range of like
devices in one
operation
Y, M,S,
T, C, D
Note:
D
1
must be less than or equal ( 
≤ 
) to D
2.
Standard and High speed counters cannot be mixed.
ZRST,
ZRSTP:
5 steps
Mnemonic
Function 
Operands
Program steps
S
D
n
DECO
FNC 41
(Decode)
Source data value
Q identifies the
Qth bit of the
destination device
which will be
turned ON
K, H,
X, Y, M,S,
T, C, D, V,
Z
Y, M, S,
T, C, D
K, H,
Note:
D= Y,M,S then n range = 
1-8
D= T,C,D then 
n range = 1-4
n= 0, then no 
processing
DECO,
DECOP:
7 steps
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
M8002
ZRST M 500 M 599
[D1]
[D2]
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
X4
M 10
K 3
[ S ]
[ D ]
X 0
[ n ]
DECO
M15 M14 M13 M12 M11 M10
M16
M17
0
1
0
0
0
0
0
0
7.
6.
5.
4.
3.
2.
1.
0.
4
2
1
0
1
1
X 2 X 1 X 0
=3
+