You are on page 1of 2

Industrial Technology Systems Ltd Indirect Addressing & Messages Siemens S7 Training Course

Indirect Addressing
Address register indirect addressing lets you generate lots of different addresses when a program is executed. Address register indirect addressing is so called because it uses an address register to point at the location of the operand in memory; that is, the address of an operand is obtained indirectly via an address register. Instead of telling the computer where the operand is, you tell it where the address of the operand can be found. In address register indirect addressing, the operand field of an instruction holds the address of the address register (i.e., A0 to A7) to be used in calculating the true address of the operand. The actual address of the operand is given by the contents of the address register specified in the instruction. Address register indirect addressing is indicated to the 68K assembler by enclosing the address register in round parentheses. For example, if A0 contains 1000, the instruction CLR (A0) clears the contents of memory location 1000. That is, in address register indirect addressing the effective address of an operand is provided by the contents of the address register specified by the instruction.

Above illustrates the effect of MOVE.B (A0),D0 when [A0] = 100016. The computer first reads the contents of address register A0 and then reads the contents of memory pointed at by A0. The contents of A0 are 1000, so the processor reads the contents of memory location 1000 to get the actual operand, 25.

Industrial Technology Systems Ltd Indirect Addressing & Messages Siemens S7 Training Course

Messages
How a message is displayed depends on the messaging method, the message block used, and the display device. The possible parts of a message are listed in the following table:

Example: The following example shows an alarm message on an operator panel

You might also like