JSONFileReader (FB)ΒΆ
FUNCTION_BLOCK JSONFileReader EXTENDS CBM.ETrig
Function block for reading JSON files.
- InOut:
- Scope - Name - Type - Initial - Comment - Inherited from - Input - xExecute- BOOLRising 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 - 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 - sFileName- STRING(255)- Path to a JSON file - 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 object - Output - eError- xValueTruncated- BOOL- minimum one String value was > GParams.g_diMaxStringSize 
