Allen-Bradley MicroLogix 1200 Reference Manual page 69

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

Example - Using Indirect Addressing to Duplicate Indexed
Addressing
In this section, an indexed addressing example is shown first. Then an
equivalent indirect addressing example is shown. Indexed addressing is
supported by SLC 500 and MicroLogix 1000 programmable controllers.
The MicroLogix 1200 and 1500 do not support indexed addressing. This
example is shown for comparison purposes.
Indexed Addressing Example
The following ADD instruction uses an indexed address in the Source A
and Destination addresses. If the indexed offset value is 20 (stored in
S:24), the controller uses the data stored at the base address plus the
indexed offset to perform the operation.
Indexed
ADD
ADD
Add
Addresses
Source A
Source B
Dest
In this example, the controller uses the following addresses:
Operand
Base Address
Source A
N7:0
Destination
N15:0
In the SLC and ML1000 controllers, there are some
NOTE
instructions that clear S:24 after the instruction completes.
For this reason, you must insure that the index register is
loaded with the intended value prior to the execution of
an indexed instruction.
Programming Instructions Overview
Working
Addresses
#N7:0
25
#N15:0
Offset Value in S:24 Working Address
20
20
4-7
ADD
ADD
Add
Source A
N7:20
Source B
25
Dest
N15:20
N7:20
N15:20
Publication 1762-RM001C-EN-P

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents