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 #139 background imageLoading...
Page #139 background image
Instruction List
B-5
ET 200S Interface Module IM 151/CPU
A5E00058783-01
B.4 Examples of Addressing
Addressing Examples Description
Direct Addressing
L +27 Load 16-bit integer constant ”27” into ACCU1
L L#–1 Load 32-bit integer constant ”–1” into ACCU1
L 2#1010101010101010 Load binary constant into ACCU1
L DW#16#A0F0 BCFD Load hexadecimal constant into ACCU1
L ’END’ Load ASCII character into ACCU1
L T#500 ms Load time value into ACCU1
L P#10.0 Load area-internal pointer into ACCU1
L P#E20.6 Load area-crossing pointer into ACCU1
L –2.5 Load real number into ACCU1
L D#1997–01–20 Load date
L TOD#13:20:33.125 Load time of day
Direct Addressing
A I 0.0 ANDing of input bit 0.0
L IB 1 Load input byte 1 into ACCU1
L IW 0 Load input word 0 into ACCU1
L ID 0 Load input double word 0 into ACCU1
Indirect Addressing of Timers/Counters
SP T [LW 8] Start timer; the timer number is in local data word 8
CU C [LW 10] Start counter; the counter number is in local data word 10
Area-Internal, Memory-Indirect Addressing
A I [LD 12]
Example:
L P#22.2
T LD 12
A I [LD 12]
AND operation: The address of the input is in local data
double word 12 as a pointer
A I [DBD 1] AND operation: The address of the input is in data double
word 1 of the DB as a pointer
A Q [DID 12] AND operation: The address of the output is in data double
word 12 of the instance DB as a pointer
A Q [MD 12] AND operation: The address of the output is in memory mar-
ker double word 12 as a pointer
Area-Internal, Memory-Indirect Addressing
A I [AR1,P#12.2] AND operation: The address of the input is calculated from
the pointer value in AR1 + P#12.2

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