EasyManuals Logo

Siemens SIMATIC IM 151/CPU User Manual

Siemens SIMATIC IM 151/CPU
218 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #140 background imageLoading...
Page #140 background image
Instruction List
B-6
ET 200S Interface Module IM 151/CPU
A5E00058783-01
Addressing Examples Description
Area-Crossing, Memory-Indirect Addressing
For area-crossing, register-indirect addressing, bits 24 to 26 of the address must also con-
tain an area identifier. The address is in the address register.
Area Coding Area
identifier Binary Hex.
P 1000 0000 80I/O area
I 1000 0001 81Input area
Q 1000 0010 82Output area
M 1000 0011 83Memory marker area
DB 1000 0100 84Data area
DI 1000 0101 85Instance data area
L 1000 0110 86Local data area
VL 1000 0111 87Predecessor local data area (access to
local data of the calling block;
see page B-5)
L B [AR1,P#8.0] Load byte into ACCU1: The address is calculated from the
pointer value in AR 1P#8.0
A [AR1,P#32.3] AND operation: The address of the address ID is calculated
from the ”pointer value in AR1P#32.3”
Addressing Via Parameters
A Parameter Addressing via parameters
Calculating Pointers
Here are 2 examples of how to calculate pointers:
Example for the sum of the bit addresses7:
LAR1 P#8.2
A I [AR1,P#10.2]
Result: Input 18.4 is addressed (by adding the byte and bit addresses)
Example for the sum of the bit addresses7:
L MD 0 Random pointer, e.g. P#10.5
LAR1
A I [AR1,P#10.7]
Result: Input 21.4 is addressed (by adding the byte and bit addresses with
carryover)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC IM 151/CPU and is the answer not in the manual?

Siemens SIMATIC IM 151/CPU Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC IM 151/CPU
CategoryControl Unit
LanguageEnglish

Related product manuals