E L C P r o g r a m m i n g M a n u a l
F or more info rmat io n vi sit: www.e a to n.c om M N 0 5 003 00 3 E
3-434
API Mnemonic
Operands
Function
182
MXOR P
S
1
, S
2
, D, n
Matrix XOR
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
*
*
*
MXOR, MXORP: 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 (
n
=K1~K256)
Description:
1.
Execute the XOR operation to the matrix source addresses 1 and 2, with a length of
n
and save the result in
D
.
3.
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 MXOR instruction and the
XOR 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
MXOR
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
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
b15
b0
MXOR
D0
D1
D2
D10
D11
D12
D20
D21
D22
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...