EasyManua.ls Logo

Allen-Bradley Logix5000

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
302 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 7 Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
2. Mask Source and compare it to Dest. Any required changes are made in
Dest. Source and Target remain unchanged. A 0 in the mask restrains the
instruction from comparing that bit (shown by x in the example).
Structured Text
MVMT_01.Source := value_1;
MVMT_01.Mask := mask1;
MVMT_01.Target := target;
MVMT(MVMT_01);
value_masked := MVMT_01.Dest;
Function Block
Source01010101010101010101010101010101
Mask111110000111100001111000011110000
Dest
0 1 0 111110 1 0 111110 1 0 111110 1 0 11111
The shaded boxes show the bits that changed.

Table of Contents

Other manuals for Allen-Bradley Logix5000

Related product manuals