JSONBuilder.SetValue (METH)ΒΆ

METHOD SetValue : DINT

This method sets a value of any supported datatype to the element with index diParentIndex.

Supported datatyes are BOOL, BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, LINT, REAL, LREAL, DATEANDTIME, DATE, TIME, STRING and WSTRING

Not supported datatypes e.g. LWORD, ULINT, LDT, LTIME, or LDATE do occure an error output -> ERROR.NOTSUPPORTED_DATATYPE

InOut:

Scope

Name

Type

Initial

Return

SetValue

DINT

Input

Value

__SYSTEM.AnyType

diParentIndex

DINT

0

Output

eError

ERROR