ReadSystemDiagnostics - Functional Description

Overview

Type:

Function block

Available as of:

V2.0.3.0

Functional Description

The function block ReadSystemDiagnostics returns and resets the diagnostic information of the system avatar.

Interface

Input

Data type

Description

iq_TeSysIslandRef

FB_TeSys_island

Reference to the TeSys island device.

i_xExecute

BOOL

Upon a rising edge of this input, the function block starts the execution. The outputs q_xDone, q_xError, q_etResult, and q_etResultMsg are reset with the falling edge of i_xExecute. Refer to Behavior of Function Blocks with the Input i_xExecute.

i_xResetAlarmCntr

BOOL

If this input is set to TRUE, the counter of detected advisory alarms for the system is set to 0.

i_xResetMinorEventCntr

BOOL

If this input is set to TRUE, the counter of detected minor errors for the system is set to 0.

i_xResetComErrorCntr

BOOL

If this input is set to TRUE, the counter of detected errors for the fieldbus communication is set to 0.

Output

Data type

Description

q_xError

BOOL

If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg.

q_etResult

ET_Result

Provides diagnostic and status information as a numeric value.

q_sResultMsg

STRING[30]

Provides additional diagnostic and status information as a text message.

q_xBusy

BOOL

If this output is set to TRUE, the function block execution is in progress.

q_xDone

BOOL

If this output is set to TRUE, the execution has been completed successfully.

q_xCtrlVltgFlctn

BOOL

If this output is set to TRUE, a control voltage fluctuation is detected.

q_xSILStopStatus

BOOL

Status of SIL Stop 0 function. If this output is set to FALSE, no SIL group has received a SIL Stop command.

q_uiComErrorCntr

UINT

Number of detected errors for the fieldbus communication.

q_uiAlarmsCntr

UINT

Number of detected alarms for the system.

q_uiMinorEventCntr

UINT

Number of detected minor events for the system.

q_stMinorEventRegister1

ST_MinorEventRegister

Information on a detected minor event.

q_stMinorEventRegister1 = most recent

q_stMinorEventRegister2

ST_MinorEventRegister

Information on a detected minor event.

...

...

...

q_stMinorEventRegister5

ST_MinorEventRegister

Information on a detected minor event.

q_etSILStopMsgGrp1

ET_SILStop

SIL group 1:

Information on the SIL Stop 0 function.

...

...

...

q_etSILStopMsgGrp10

ET_SILStop

SIL group 10:

Information on the SIL Stop 0 function.