E L C P r o g r a m m i n g M a n u a l
F o r
m o r e
i n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
M N 0 5 0 0 3 0 0 3 E
3 - 4 1 6
API Mnemonic
Operands
Function
168
D MVM P
S
1
, S
2
, D
Masked Move
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
*
*
*
*
*
*
*
*
*
MVM, MVMP: 7 steps
DMVM, DMVMP: 13
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
: Source address 1
S
2
: Bits to be masked (OFF)
D
: Source device 2 / Operation results
[
D
= (
S
1
&
S
2
) | (
D
& ~
S
2
)]
Description:
1.
This instruction performs a move with mask operation. This means that data is moved bit by bit
from
S
1
through the mask
S
2
to
D.
Bit data will be moved from
S
1
to
D
only where there is a
logical 1 in that position in the mask.
2.
Where there is a logical 1 in the mask, data is passed. Where there is a logical 0 in the mask,
the data is blocked, i.e. the destination bit is unaffected.
3.
MVM is the new instruction for V1.6 of ELC-PV series model.
Program Example:
When X0 = ON, the MVM instruction moves the data from D0 to D4 bit by bit, only allowing bit data
to be passed where there is a logical 1 in the mask. The bit positions where there is a logical 0 in the
mask leaves the destination bit position unaffected. The value in D4 prior to executing the MVM
instruction is: 1000110001101010.
MVM
X0
D0
HFF00
D4
0 1 1 0 1 0 1 1
0
1 1 0 1 0 0
1 1 1
1 1
1 0 0
0
0 0
1
1
0 0
0
b15
b0
D0
Mask
D4
0 1 1
0 1
0 0 1 1
1
1 0
0
0
Note: The low 8 bits of D4 are unchanged. The high 8 bits of D0 are moved to the high 8 bits of
D4.
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...