3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F or m o r e i nf o r m a t i o n v i s i t : www. e a t o n. c o m
3-435
API Mnemonic
Operands
Function
183
MXNR P
S
1
, S
2
, D, n
Matrix XNR
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
1
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
D
*
*
*
*
*
*
n
*
*
*
MXNR, MXNRP: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
1
: matrix source address 1
S
2
: matrix source address 2
D
: Area where calculated result is
stored
n
: matrix length (K1~K256)
Description:
1.
Execute the matrix XNR operation to the matrix source addresses 1 and 2, with a length of
n
and save the result in
D
.
2.
The matrix XNR operation is: the result bit is 1 when 2 bits are the same otherwise it is 0.
2.
S
1
, and
S
2
designate KnX, KnY, KnM and KnS;
D
designates KnY, KnM and KnS
ELC-PC/PA/PH, ELCM-PH/PA can designate n = 4. ELC-PV can designate n=1- 4.
Program Example:
When X0=ON,
Execute the matrix XNR operation to the matrix source addresses 1 and 2,
with a length of
n
and save the result in
D
.
XNR operation to 3 rows (D0-D2) of 16-bit register and 3 rows (D10-D12) of 16-bit register. Then
save the result in 3 rows (D20-D22) of 16-bit register.
X0
MXNR
D0
D20
K3
D10
Before
Execution
After
Execution
1
1
1
0
0
0
1
1
0
0 0
0
1
1
0
0
0
1
1
0
0 0
0
1
1
0
0
0
1
1
0
0 0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
1
1
1
0
0
0
1
1
1
1
1
1
1
0
0
0
1
0
0
0
1
0
0
0
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
b15
b0
MXNR
D0
D1
D2
D10
D11
D12
D20
D21
D22
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...