Allen-Bradley Logix5000 Reference Manual page 294

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 7
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
If you want to
Copy a value
Copy a specific part of an integer
Copy a specific part of an integer in function block
Move bits within an integer or between integers
Move bits within an integer or between integers in
function block
Clear a value
Rearrange the bytes of a INT, DINT, or REAL tag
(1) There is no equivalent structured text instruction. Use other structured text programming to achieve the same result. See the description for the instruction.
If you want to
Bitwise AND Operation
Bitwise OR operation
Bitwise, exclusive OR operation
Bitwise NOT operation
Logically AND as many as eight boolean inputs.
Logically OR as many as eight boolean inputs.
Perform an exclusive OR on two boolean inputs.
Complement a boolean input.
(1) Structured text only.
(2) In structured text, the AND, OR, XOR, and NOT operations can be bitwise or logical.
294
Use this instruction
MOV
MVM
MVMT
BTD
BTDT
CLR
SWPB
The logical instructions perform operations on bits.
Use this instruction
Bitwise AND
(1)
&
Bitwise OR
Bitwise XOR
Bitwise NOT
Boolean AND (BAND)
Boolean OR (BOR)
Boolean Exclusive OR (BXOR)
Boolean NOT (BNOT)
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Available in these languages
Relay ladder
(1)
Structured text
Relay ladder
Structured text
Function block
Relay ladder
Structured text
Function block
(1)
Structured text
Relay ladder
Relay ladder
Structured text
Available in these languages
Relay ladder
(2)
Structured text
Function block
Relay ladder
(2)
Structured text
Function block
Relay ladder
(2)
Structured text
Function block
Relay ladder
(2)
Structured text
Function block
(2)
Structured text
Function block
(2)
Structured text
Function block
(2)
Structured text
Function block
(2)
Structured text
Function block
Page
295
297
300
303
306
309
311
Page
315
319
323
327
331
334
337
340

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents