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
xExecuteBOOLRising edge: Action startsFalling edge: Resets outputsIf 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
xDoneBOOLTRUE: Action successfully completedETrig
xBusyBOOLTRUE: Function block activeETrig
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrig
Input
pwDataPOINTER TO WORD
Pointer to the data array with JSON data (WSTRING)
xIgnoreValueStringLengthBOOLIf True, the error is ignored and the value is shortened and xValueTrunked will be TRUE
xAsyncModeBOOLTRUE
If true, reader runs in asynchronous mode
Inout
jsonDataJSONData object
Output
eErrorxValueTruncatedBOOLminimum one String value was > GParams.g_diMaxStringSize