E_SoE_AttribLen

E_SoE_AttribLen of the parameter attribute describes, if the value of the parameter has the data type 2, 4 or 8 byte (single value) or if the parameter is a list of 1-, 2-, 4- or 8-Byte-dat types. List types (with eSoE_LEN_V...) contain the actual list length in bytes (in a 16-bit value), then the maximmum list lenght in bytes (in a 16-bit value) and then the list list in the selected data type.

Sample see ST_SoE_String, this is a list of the type eSoE_LEN_V1BYTE.

 

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

 

eSoE_LEN_2BYTE : 2-Byte data type (i.e. UINT, INT, WORD, IDN)
eSoE_LEN_4BYTE : 4-Byte data type (i.e. UDINT, DINT, DWORD, REAL)
eSoE_LEN_8BYTE : 8-Byte data type (i.e. ULINT, LINT, LREAL)
eSoE_LEN_V1BYTE : List of 1-Byte data types (i.e. String)
eSoE_LEN_V2BYTE : List of 2-Byte data types (i.e. IDN-Liste)
eSoE_LEN_V4BYTE : List of 4-Byte data types
eSoE_LEN_V8BYTE : List of 8-Byte data types