Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual page 183

Hide thumbs Also See for MicroLogix 1100:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Source:
1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
Mask:
1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1
Intermediate Result:
1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0
Comparison of the Intermediate Results: not equal
MEQ Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Source
Mask
Compare
(1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit.
(2) See Important note about indirect addressing.
The MEQ instruction is used to compare whether one value (source) is
equal to a second value (compare) through a mask. The source and the
compare are logically ANDed with the mask. Then, these results are
compared to each other. If the resulting values are equal, the rung state is
true. If the resulting values are not equal, the rung state is false.
For example:
The source, mask, and compare values must all be of the same data size
(either word or long word). The data ranges for mask and compare are:
• -32,768 to 32,767 (word)
• -2,147,483,648 to 2,147,483,647 (long word)
The mask is displayed as a hexadecimal unsigned value from 0000 to
FFFF FFFF.
Addressing Modes and File Types can be used as shown in the following
table:
Data Files
You cannot use indirect addressing with: S, ST, MG, PD,
IMPORTANT
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and
DLS files.
Compare:
Mask:
Intermediate Result:
(1)
Function Files
Publication 1763-RM001C-EN-P - October 2009
Compare Instructions
Address
Address Level
(2)
Mode
183

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1763-l16bbb1763-l16awa1763-l16bwa1763-l16dwd

Table of Contents