FB_MultiBeltDiagSource - General Information

Overview

Type:

Function block

Available as of:

V1.0.4.0

Versions:

Current version

Task

Output of the additional interface of the FB_MultiBeltModule for diagnostic purposes.

Description

To analyze the template project with PacDrive Diagnostics, this POU provides the variables in the ST_ModuleInterface of a MultiBelt module as diagnostic source. It lists modules, starting with the MainMachine. For each MultiBeltModule, the entire additional interface is provided.

Interface

Input

Data type

Description

i_xEnable

BOOL

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

A deactivated POU does not execute any actions.

i_xDiagQuit

BOOL

Acknowledging a pending diagnostic message.

Output

Data type

Description

q_xActive

BOOL

TRUE: The POU is active and has to be executed further.

FALSE: The POU is inactive.

q_xReady

BOOL

TRUE: The POU is ready to operate and can accept user commands.

FALSE: The function block is not ready to accept user commands.

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

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

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

Input/Output

Data type

Description

iq_stComStructure

TPL.ST_DiagnosticsManagerToDiagSource

Communication with the DiagManager. This input must be connected to "stComStructure". (see PD_DemoProject_MultiBeltModule.SR_Diagnostics).

iq_stMachineItf

TPL.ST_StandardModuleInterface

The interface of the MainMachine. Using this input the diagnostic source can search the existing modules, using the module tree. This input must be connected to "SR_MainMachine.stMachineInterface". (PD_DemoProject_MultiBeltModule.SR_Diagnostics).

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

DataSuccessfullyWritten

121

The data was successfully written.

OK

Disabled

29

The POU is disabled.

OK

WaitForCommunication

120

Waiting for communication

OK

WaitUntilDiagnosticsManagerReady

117

Waiting for the diagnostic manager to be ready.

OK

WaitUntilDiagSourceRegistered

119

Waiting for registration of the diagnostic source

OK

WaitUntilDisabled

118

Waiting until POU is disabled.

OK

WritingToFile

122

Data are being written into the file.

InputParameterInvalid

CmdUnknown

6

Indeterminable command.

InputParameterInvalid

FileIdInvalid

123

The file is invalid.

UnexpectedProgramBehavior

UnexpectedFeedback

35

A POU returns an unintended value.

CmdUnknown

Enumeration name:

CmdUnknown

Enumeration value:

6

Description:

Indeterminable command.

Issue/Cause

Solution

An incorrect communication structure has been applied at the iq_stComStructure input.

At the iq_stComStructure input, the same structure must be applied that was transferred to TPL.FB_DiagnosticsManager at the iq_stComStructure input.

DataSuccessfullyWritten

Enumeration name:

DataSuccessfullyWritten

Enumeration value:

121

Description:

The data was successfully written.

The diagnostic data was successfully written.

Disabled

Enumeration name:

Disabled

Enumeration value:

29

Description:

The POU is disabled.

The function block is deactivated, it executes no actions. i_xEnable and q_xActive have the value FALSE.

FileIdInvalid

Enumeration name:

FileIdInvalid

Enumeration value:

123

Description:

The file is invalid.

Issue/Cause

Solution

An incorrect communication structure has been applied at the iq_stComStructure input.

At the iq_stComStructure input, the same structure must be applied that was transferred to TPL.FB_DiagnosticsManager at the iq_stComStructure input.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

35

Description:

A POU returns an unintended value.

Issue/Cause

Solution

An error has been detected and occurred in the internal execution.

Contact your Schneider Electric service representative about this detected error.

WaitForCommunication

Enumeration name:

WaitForCommunication

Enumeration value:

120

Description:

Waiting for communication

The diagnostic source is ready and is waiting for commands of the diagnostic manager.

WaitUntilDiagnosticsManagerReady

Enumeration name:

WaitUntilDiagnosticsManagerReady

Enumeration value:

117

Description:

Waiting for the diagnostic manager to be ready.

The diagnostic source is waiting for the diagnostic manager to become ready.

WaitUntilDiagSourceRegistered

Enumeration name:

WaitUntilDiagSourceRegistered

Enumeration value:

119

Description:

Waiting for registration of the diagnostic source

Waiting until the diagnostic source has been registered with the diagnostic manager.

WaitUntilDisabled

Enumeration name:

WaitUntilDisabled

Enumeration value:

118

Description:

Waiting until POU is disabled.

The function block is disabled.

WritingToFile

Enumeration name:

WritingToFile

Enumeration value:

122

Description:

Data are being written into the file.

The diagnostic data are being written.