beautypg.com

Available addressing modes, Reference – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 317

background image

Valid Addressing Modes and File Types for Instruction Parameters

C–3

Available Addressing Modes

The following addressing modes are available:

immediate

direct

indirect

Immediate Addressing

Indicates that a constant is a valid file type.

Direct Addressing

The data stored in the specified address is used in the instruction. For example:

N7:0

T4:8.ACC

ST20:5

Indexed Direct Addressing

You may specify an address as being indexed by placing the “#” character in front of
the address. When an address of this form is encountered in the program, the
processor takes the element number of the address and adds to it the value contained
in the Index Register S:24, then uses the result as the actual address. For example:

#N7:10 where S:24 = 15
The actual address used by the instruction is N7:25.

Reference