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 #256 background imageLoading...
Page #256 background image
256 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 5 Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
Example 2: If the masked value_1 is equal to the masked value_2, set light_1. If the masked
value_1 is not equal to the masked value_2, clear light_1. This example shows
that the masked values are not equal. A 0 in the mask restrains the instruction
from comparing that bit (shown by x in the example).
Relay Ladder
Structured Text
light_1 := ((value_1 AND mask_1)=(value_2 AND mask_2));
Function Block
value_10101010111111111 value_20101010111110000
mask_10000000000001111 mask_10000000000001111
masked value_1xxxxxxxxxxxx1111 masked value_2xxxxxxxxxxxx0000

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