GetSizeJsonStringFromSymbol

GetSizeJsonStringFromSymbol 1:

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

Syntax

METHOD GetSizeJsonStringFromSymbol : UDINT
VAR_INPUT
  nData       :UDINT;
  pData       :PVOID;
END_VAR
VAR_IN_OUT CONSTANT
  sDatatype   : STRING;
END_VAR
VAR_OUTPUT
  hrErrorCode : HRESULT;
END_VAR

GetSizeJsonStringFromSymbol 2: Return value

Name

Type

GetSizeJsonStringFromSymbol

UDINT

GetSizeJsonStringFromSymbol 3: Inputs

Name

Type

nData

UDINT

pData

PVOID

GetSizeJsonStringFromSymbol 4:/GetSizeJsonStringFromSymbol 5: Inputs/Outputs

Name

Type

sDatatype

STRING

GetSizeJsonStringFromSymbol 6: Outputs

Name

Type

hrErrorCode

HRESULT

Sample call:

nLen := fbJsonDataType.GetSizeJsonStringFromSymbol('BOOL',SIZEOF(bBool),ADR(bBool));