EasyManua.ls Logo

Siemens CPU 414-2 - Page 18

Siemens CPU 414-2
160 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
Loading...
Examples of Addressing
16
S7-400 Instruction List
A5E00267845-01
Addressing Examples Description
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] Count upwards; 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 pointer
A I [DBD 1] AND operation: The address of the input is in data double word 1 of the open DB as pointer
A I [DID 12] AND operation: The address of the output is in data double word 12 of the open instance DB as pointer
A I [MD 12] AND operation: The address of the output is in memory double word 12 as pointer

Table of Contents

Related product manuals