Accessing A Tag With An At Overlay - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

97BPLC concepts
4.4 Data types
4.4.9

Accessing a tag with an AT overlay

The AT tag overlay allows you to access an already-declared tag of a standard access block
with an overlaid declaration of a different data type. You can, for example, address the
individual bits of a tag of a Byte, Word, or DWord data type with an Array of Bool.
Declaration
To overlay a parameter, declare an additional parameter directly after the parameter that is
to be overlaid and select the data type "AT". The editor creates the overlay, and you can
then choose the data type, struct, or array that you wish to use for the overlay.
Example
This example shows the input parameters of a standard-access FB. The byte tag B1 is
overlaid with an array of Booleans:
Table 4- 32
Overlay of a byte with a Boolean array
7
6
AT[0]
AT[1]
Another example is a DWord tag overlaid with a Struct:
98
5
4
AT[2]
AT[3]
3
2
AT[4]
AT[5]
System Manual, 11/2011, A5E02486680-05
1
0
AT[6]
AT[7]
S7-1200 Programmable controller

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents