Siemens SIMATIC S7 System Manual page 81

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

The local scope of L memory also affects symbol usage, when a global symbol and a local
symbol use the same name. If your program logic references that symbol name, the CPU
ignores the global symbol and processes the address assigned to the local memory symbol.
Note
Local memory value assignments are not always preserved for successive executions of a
POU
L memory addresses are reused for the next execution sequence, after the current nested
sequence is completed. Depending on a POU's level in the execution stack and L memory
assignments made since a POU's last execution, a POU's L memory assignments made in a
previous execution may be overwritten with unexpected values.
Remember to reassign the correct values to L memory variables, in your program logic.
Reinitialize all TEMP values before processing them and ensure that any output values
(OUT and IN_OUT) are correct.
AI (analog input)
The CPU converts an analog value (such as temperature or voltage) into a word-length (16-
bit) digital value. You access these values by the area identifier (AI), size of the data (W),
and the starting byte address. Since analog inputs are words and always start on even-
number bytes (such as 0, 2, or 4), you access them with even-number byte addresses (such
as AIW0, AIW2, or AIW4). Analog input values are read-only values.
Table 4- 14
Analog input
AQ (analog output)
The CPU converts a word-length (16-bit) digital value into a current or voltage, proportional
to the digital value (such as for a current or voltage). You write these values by the area
identifier (AQ), size of the data (W), and the starting byte address. Since analog outputs are
words and always start on even-number bytes (such as 0, 2, or 4), you write them with even-
number byte addresses (such as AQW0, AQW2, or AQW4). Analog output values are write-
only values.
Table 4- 15
Analog output
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
Absolute addressing of AI memory
Absolute addressing of AQ memory
[starting byte address]
AIW
[starting byte address]
AQW
PLC concepts
4.2 Accessing data
AIW4
AQW4
81

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents