PLC API | Functions and function blocks Return value Example The method may only be called if bBusy = FALSE and bError = FALSE signal that text is available. IF NOT fb.bBusy AND NOT fb.bError THEN bGetStringSuccess := fb.GetString(sText, SIZEOF(sText)); END_IF 6.1.1.2 FB_RequestCauseRemedy | FB_RequestCauseRemedy This function block enables the asynchronous request of cause/remedy in the desired language for an event. Methods Properties Requirements 6.1.1.2.1 Clear | Clear This method clears the last result queried. Syntax METHOD Clear TE1000 39 Version: 1.11.5 Name Type Description GetString BOOL Returns TRUE if the text could be assigned.
Returns FALSE if the text could not be completely assigned because the specified buffer variable is too small. Name Description Clear [} 39] This method clears the last result queried. Get [} 40] As soon as bBusy is FALSE and if no error has occurred (bError = FALSE), this method can be used to get a result from the queried list. Request [} 40] Calling this method triggers the asynchronous request. RequestRemote [} 41] Calling this method triggers the asynchronous request on a remote target system. Name Type Access Description bBusy BOOL GET TRUE as long as the processing is not yet completed. bError BOOL GET TRUE when an error occurs.
hrErrorCode HRESULT GET Outputs the error information if bError is TRUE. nCount UDINT GET Number of causes/remedy elements found Development environment Target platform PLC libraries to include TwinCAT v3.1.4026.0 PC or CX (x64, x86, Arm®) Tc3 EventLogger (>=3.3.7.0) _