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
Summary of Contents for SIMATIC IM 151/CPU
Page 6: ...Important Information vi ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 14: ...Contents xiv ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 42: ...ET 200S in the PROFIBUS Network 3 12 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 68: ...Commissioning and Diagnostics 4 26 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 98: ...Technical Specifications 6 8 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 108: ...Cycle and Response Times 7 10 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 190: ...Execution Times of the SFCs and SFBs C 4 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 196: ...Migration of the IM 151 CPU D 6 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...