FB_DiagnosticsManager

 

FB_DiagnosticsManager - General Information

Overview

Type:

Function block

Available as of:

V2.0.0.0

Inherits from:

-

Implements:

-

Access restriction:

PUBLIC

Versions:

Current version

Task

Control module to coordinate several diagnostic sources. The mode of operation and interface are bit-identical to FB_Diagnostics of the PD_Template. Diagnostic sources of PD_Template and EDESIGN together can be connected to an FB_DiagnosticsManager module from PD_Template or PD_EDesignCore.

Furthermore, FB_DiagnosticsManager establishes communication between the diagnostic sources for reading out data in the controller application and the user application "PacDrive Diagnostics”.

Description

Via a defined entry point in the memory (ST_DiagnosticsToApplicationMarkerArea), FB_DiagnosticsManager enables communication between PacDrive Diagnostics and the program. The module coordinates the output of all diagnostic sources via the control structure ST_DiagnosticsManagerToDiagSource.

Interface

Input

Data type

Description

i_xEnable

BOOL

A rising edge FALSE -> TRUE activates the POUs, a falling edge TRUE -> FALSE deactivates the POUs.

A deactivated POU does not execute any actions.

(see Schneider Electric default template module infrastructure)

i_xDiagQuit

BOOL

A rising edge FALSE -> TRUE acknowledges pending exceptions of the POUs. Exceptions occurring during initialization can only be acknowledged by disabling the POUs.

i_pstDiagData

POINTER TO ST_DiagnosticsToApplicationMarkerArea

Memory address of the communication structure with PacDrive Diagnostics

Output

Data type

Description

q_xActive

BOOL

Outputs TRUE if the POU is enabled and FALSE if the POU has reached the idle state, for example after a falling edge on i_xEnable.

(see Schneider Electric default template module infrastructure)

q_xReady

BOOL

Outputs TRUE if the POU is ready to receive new commands and FALSE if the last command has not been completed yet.

(see Schneider Electric default template module infrastructure)

q_etDiag

GD.ET_Diag

Outputs the POU status according to the global library-independent diagnostic states.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

(see Schneider Electric global diagnostics infrastructure)

q_etDiagExt

ET_DiagExt

Outputs the POU status as a POU-specific diagnostic status which is defined in ET_DiagExt.

A value unequal to ET_DiagExt.Ok corresponds to a diagnostic message.

(see Schneider Electric global diagnostics infrastructure)

q_sMsg

STRING(80)

Outputs a string with further user information on an occurred state.

(see Schneider Electric global diagnostics infrastructure)

Input/Output

Data type

Description

iq_stComStructure

ST_DiagnosticsManagerToDiagSource

Communication structure between FB_DiagnosticsManager and diagnostic sources.