![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452600.webp)
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-431
API Mnemonic
Operands
Function
180
MAND P
S
1
, S
2
, D, n
Matrix AND
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
*
MAND, MANDP: 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 matrix AND operation to the matrix source addresses 1 and 2, with a length of
n
and save the result in
D
.
2. If
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 MAND instruction and the AND operation to 3 rows (D0-D2) of 16-bit
registers and 3 rows (D10-D12) of 16-bit registers. Then save the result in 3 rows (D20-D22) of
16-bit registers.
X0
MAND
D0
D10
D20
K3
1 1 1 1 1 1 1 1 1 1
1 1
0 0 0 0
1 1 1 1 1 1 1 1 1 1
1 1
0 0 0 0
1 1 1 1 1 1 1 1 1 1
1 1
0 0 0 0
b15
b0
MAND
1
1
0
0 0
1
1
1
0 0
0
0
0
0 0
0
1
1
0
0 0
1
1
1
0 0
0
0
0
0 0
0
1
1
0
0 0
1
1
1
0 0
0
0
0
0 0
0
1
1
0
0 0
0
0 0
0
0
0
0 0
0
1
1
0
0 0
0
0 0
0
0
0
0 0
0
1
1
0
0 0
0
0 0
0
0
0
0 0
0
0 0
0 0
0 0
Before
Execution
After
Execution
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...