Specifying indirect addresses -18, Specifying indirect addresses – Rockwell Automation 1785-Lxxx Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

Page 62

Advertising
background image

Publication 1785-UM012D-EN-P - July 2005

4-18 Addressing I/O and Controller Memory

You can also use mnemonics to address members at the word or bit level. The
available mnemonics depend on the type of data (timer, counter, or control)
and the program instruction. For example:

For information about the mnemonics for a specific instruction, see chapter
22 of the PLC-5 Programming Controller Instruction Set Reference,
publication 1785-6.1.

Specifying Indirect Addresses

The controller uses the value from the pointer address to form the indirect
address. You can use ladder logic to change the value stored at that substitute
address.

To Specify the Address of a Use these Parameters
Bit within a binary file

Bit within a structure file

Bit Delimiter
Bit Number

B

3 /

2 4

5

Binary files are bit stream continuous files, and therefore you
can address them in two ways: by word and bit, or by bit alone.

File Type
File Number
File Delimiter
Structure Number
Member Delimiter
Member Mnemonic

R

6

:

7

. D

N

Instruction Type Word Level

Example Bit Level

Example

Timer
TON, TOF, RTO

preset .PRE
accumulated.ACC

T4:1.PRE

enable.EN
timing.TT
done.DN

T4:0.EN

ATTENTION

When using indirect addressing, make sure that the indirect
address points to a valid data file or element. During Run
mode, if ladder execution encounters an invalid or
out-of-range indirect address, a run-time error occurs and
the controller halts.

Advertising