Staginfo - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

7.8.6.10

STagInfo

Description
This structure contains information about a PLC tag.
Table 7- 411 STagInfo - Native C++
Syntax
Member
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
struct STagInfo
{
WCHAR Name[DTAG_NAME_MAX_LENGTH];
EArea Area;
EDataType DataType;
EPrimitiveDataType PrimitiveDataType;
UINT16 Size;
UINT32 Offset;
UINT8 Bit;
UINT8 DimensionCount;
UINT32 Index;
UINT32 ParentIndex;
SDimension Dimension[DTAG_ARRAY_DIMENSION];
};
WCHAR Name[DTAG_NAME_MAX_LENGTH]:
The name of the tag
EArea area:
The CPU area where the tag is located.
EDataType DataType:
The CPU data type of the tag
EPrimitiveDataType PrimitiveDataType:
The primitive data type of the tag
UINT16 size:
The size of the tag in bytes
UINT32 offset:
The byte offset of the tag if it is not located in a data block.
UINT8 bit:
The bit offset of the tag if it is not located in a data block.
UINT8 DimensionCount:
The number of dimensions of the array. 0 if it is not a field for the tag.
UINT32 index:
The index of the tag
UINT32 ParentIndex:
If this tag is embedded in another tag (for example, an element of a structure),
this value then displays the index of the parent tag. The value is 0 if the tag has
no parent tag.
SDimension Dimension[DTAG_ARRAY_DIMENSION]:
Information about each dimension of the field
User interfaces (API)
7.8 Data types
315

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents