JSONByteArrayReader (FB)ΒΆ

FUNCTION_BLOCK JSONByteArrayReader EXTENDS CBM.ETrig

Function block for reading of JSON data arrays.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xExecute

BOOL

Rising edge: Action starts
Falling edge: Resets outputs
If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle.

ETrig

Output

xDone

BOOL

TRUE: Action successfully completed

ETrig

xBusy

BOOL

TRUE: Function block active

ETrig

xError

BOOL

TRUE: Error occurred, function block aborts action
FALSE: No error

ETrig

Input

pwData

POINTER TO WORD

Pointer to the data array with JSON data (WSTRING)

xIgnoreValueStringLength

BOOL

If True, the error is ignored and the value is shortened and xValueTrunked will be TRUE

xAsyncMode

BOOL

TRUE

If true, reader runs in asynchronous mode

Inout

jsonData

JSONData

JSONData object

Output

eError

ERROR

xValueTruncated

BOOL

minimum one String value was > GParams.g_diMaxStringSize