GetCustomAttribute_array
Syntax
Definition:
METHOD GetCustomAttribute_array : BOOL
VAR_INPUT
sCustomAttributeName : T_MaxString;
fmtAttributeDataType : Reference To ETcMllDataType;
pDataBuffer : PVOID;
nDataBufferLen : UDINT;
nArrayLength : Reference To UDINT;
pnBytesWritten : Pointer To UDINT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
sCustomAttributeName |
T_MaxString |
Name of the custom attribute |
fmtAttributeDataType |
Reference To ETcMllDataType |
Data format of the custom attribute |
pDataBuffer |
PVOID |
Destination data buffer, where the custom attribute is copied into |
nDataBufferLen |
UDINT |
Length of the destination data buffer in bytes |
nArrayLength |
Reference To UDINT |
Number of data type elements (i.e. number of fp32 values) found in the custom attribute |
pnBytesWritten |
Pointer To UDINT |
Returns the number of bytes that have been written to the destination buffer |
Return value
BOOL
Methods reads a custom attribute specified by sCustomAttributeName
of type Array. Refer to this sample code showing how to read an array of LREAL.