GetSizeJsonStringFromSymbolProperties

GetSizeJsonStringFromSymbolProperties 1:

This method reads the size of the JSON representation of PLC attributes on a symbol. The value is specified with null termination.

Syntax

METHOD GetSizeJsonStringFromSymbolProperties : UDINT
VAR_IN_OUT CONSTANT
  sDatatype   : STRING;
  sProperties : STRING;
END_VAR
VAR_OUTPUT
  hrErrorCode : HRESULT;
END_VAR

GetSizeJsonStringFromSymbolProperties 2: Return value

Name

Type

GetSizeJsonStringFromSymbolProperties

UDINT

GetSizeJsonStringFromSymbolProperties 3:/GetSizeJsonStringFromSymbolProperties 4: Inputs/Outputs

Name

Type

sDatatype

STRING

sProperties

STRING

GetSizeJsonStringFromSymbolProperties 5: Outputs

Name

Type

hrErrorCode

HRESULT

Sample call:

nLen := fbJsonDataType.GetSizeJsonStringFromSymbolProperties('ST_Test','DisplayName|Unit');