SafeApplication (FB)¶
FUNCTION_BLOCK SafeApplication EXTENDS CBML.LConC
This function block shows the information and the status of the SafeApplication of the assigned Safe Control.
The function block is an extension of the Common-Behaviour-Model function block LConC.
The interface to the Safe Control is a Shared Memory, which is created by the Safe Control with the default name ‘CODESYSSafeControl_APPSTATUS’.
In case of any error opening the Shared Memory, the function block returns the error id ‘NO_CONNECTION’.
The name of the Shared Memory can be adapted by setting the PLC configuration (component name: ‘SafeControl’, key: ‘AppStatusBuffer_Name’)
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnableBOOLTRUE: Activates the defined operationFALSE: Aborts/resets the defined operationLConC
Output
xBusyBOOLTRUE: Operation is runningLConC
xErrorBOOLTRUE: Error condition reachedLConC
eErrorIDSafeControl_Itf.ERRORError information of fb execution
AppStatusSafeControl_Itf.APP_STATEThe application status
AppInfoSafeControl_Itf.APP_INFOThe application information
BootAppConfirmationSafeControl_Itf.BOOTAPP_CONFIRMATIONThe bootapplication confirmation request (required to confirm the bootapplication start)
xBootAppConfirmationRequestedBOOLThe bootapplication confirmation is request
xSafeModeBOOLApplication safe mode flag