E_SoE_AttribLen
The enumeration E_SoE_AttribLen in the attribute of a parameter specifies whether the value of the parameter is a 2, 4, or 8-byte data type (single value), or whether it is a list consisting of 1, 2, 4, or 8-byte data types. List types (with eSoE_LEN_V...) first have the current list length in bytes (in a 16 bit value), then the maximum list length in bytes (in a 16 bit value) and the actual list in the specified data type.
Sample: see ST_SoE_String of the eSoE_LEN_V1BYTE type.
TYPE E_SoE_AttribLen : (
eSoE_LEN_2BYTE := 1,
eSoE_LEN_4BYTE := 2,
eSoE_LEN_8BYTE := 3,
eSoE_LEN_V1BYTE := 4,
eSoE_LEN_V2BYTE := 5,
eSoE_LEN_V4BYTE := 6,
eSoE_LEN_V8BYTE := 7
);
END_TYPE
Name | Description |
---|---|
eSoE_LEN_2BYTE | 2-byte data type (e.g. UINT, INT, WORD, IDN) |
eSoE_LEN_4BYTE | 4-byte data type (e.g. UDINT, DINT, DWORD, REAL) |
eSoE_LEN_8BYTE | 8-byte data type (e.g. ULINT, LINT, LREAL) |
eSoE_LEN_V1BYTE | List of 1-byte data types (e.g. string) |
eSoE_LEN_V2BYTE | List of 2-byte data types (e.g. IDN list) |
eSoE_LEN_V4BYTE | List of 4-Byte data types |
eSoE_LEN_V8BYTE | List of 8-Byte data types |