PLCDiagnosis (FB)

FUNCTION_BLOCK PLCDiagnosis EXTENDS CBML.LConC

This function block shows the information and the status of the SafeDevice 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_DEVSTATUS’.
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: ‘DevStatusBuffer_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

Input

pDataBuffer

POINTER TO SafeControl_Itf.PLCDIAGNOSIS_DATA

byNumDataBufferElements

BYTE

Output

eErrorID

SafeControl_Itf.ERROR

Any error information