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

xEnable

BOOL

TRUE: Activates the defined operation FALSE: Aborts/resets the defined operation

LConC

Output

xBusy

BOOL

TRUE: Operation is running

LConC

xError

BOOL

TRUE: Error condition reached

LConC

eErrorID

SafeControl_Itf.ERROR

Error information of fb execution

AppStatus

SafeControl_Itf.APP_STATE

The application status

AppInfo

SafeControl_Itf.APP_INFO

The application information

BootAppConfirmation

SafeControl_Itf.BOOTAPP_CONFIRMATION

The bootapplication confirmation request (required to confirm the bootapplication start)

xBootAppConfirmationRequested

BOOL

The bootapplication confirmation is request

xSafeMode

BOOL

Application safe mode flag