13.07.2015 Views

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming Instructions Overview 93Addressing ModesThe <strong>MicroLogix</strong> <strong>1400</strong> supports three types of data addressing:• Immediate• Direct• IndirectThe <strong>MicroLogix</strong> <strong>1400</strong> do not support indexed addressing. Indexedaddressing can be duplicated with indirect addressing. See Example -Using Indirect Addressing to Duplicate Indexed Addressing on page 97.How or when each type is used depends on the instruction beingprogrammed and the type of elements specified within the operands ofthe instruction. By supporting these three addressing methods, the<strong>MicroLogix</strong> <strong>1400</strong> allows incredible flexibility in how data can bemonitored or manipulated. Each of the addressing modes are describedbelow.Immediate AddressingImmediate addressing is primarily used to assign numeric constants withininstructions. For example: You require a 10 second timer, so you programa timer with a 1 second time base and a preset value of 10. The numbers1 and 10 in this example are both forms of immediate addressing.Direct AddressingWhen you use direct addressing, you define a specific data location withinthe controller. Any data location that is supported by the elements of anoperand within the instruction being programmed can be used. In thisexample we are illustrating a limit instruction, where:• Low Limit = Numeric value (from -32,768…32,767) enteredfrom the programming software.• Test Value = LCD:0.POT0 (This is the current position/value oftrim pot 0.)• High Limit = N7:17 (This is the data resident in Integer file 7,element 17.)The Test Value (LCD:0.POT0) and High Limit (N7:17) are directaddressing examples. The Low Limit is immediate addressing.Publication <strong>1766</strong>-<strong>RM001A</strong>-<strong>EN</strong>-P - October 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!