Publication 1762-RM001C-EN-P
9-8 Compare Instructions
The Low Limit, Test, and High Limit values can be word addresses or
constants, restricted to the following combinations:
•
If the Test parameter is a constant, both the Low Limit and High Limit
parameters must be word or long word addresses.
•
If the Test parameter is a word or long word address, the Low Limit
and High Limit parameters can be either a constant, a word, or a long
word address. But the Low Limit and High Limit parameters cannot
both be constants.
When mixed-sized parameters are used, all parameters are put into the
format of the largest parameter. For instance, if a word and a long word
are used, the word is converted to a long word.
The data ranges are:
•
-32768 to 32767 (word)
•
-2,147,483,648 to 2,147,483,647 (long word)
Addressing Modes and File Types can be used as shown in the following
table:
Table 9.12 LIM Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files
Function Files
(1)
(1) DAT files are valid for the MicroLogix 1500 only. PTO and PWM files are only recommended for use with MicroLogix
1200 and 1500 BXB units.
CS - Comms
IOS - I/O
DLS - Data Log
(2)
(2) The Data Log Status file can only be used by the MicroLogix 1500 1764-LRP Processor.
Address
Mode
(3)
(3) See Important note about indirect addressing.
Address
Level
O
I
S
B
T, C, R
N
ST
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Low Limit •••••• ••••••••••••••• • •••
Test •••••• ••••••••••••••
• • •••
High Limit •••••• ••••••••••••••
• • •••
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, DAT, TPI, CS,
IOS, and DLS files.