EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

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
Page #333 background imageLoading...
Page #333 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 333
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Example 1: This example ANDs bool_in1 and bool_in2 and places the result in value_result_and.
Structured Text
value_result_and := bool_in1 AND bool_in2;
Function Block
Example 2: If both bool_in1 and bool_in2 are set (true), light1 is set (on). Otherwise, light1 is cleared
(off ).
Structured Text
IF bool_in1 AND bool_in2 THEN
light1 := 1;
ELSE
light1 := 0;
END_IF;
If BOOL_IN1 is If BOOL_IN2 is Then VALUE_RESULT_AND is
000
010
100
111

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals