FB_SmartInfeedModuleDiagSource

 

FB_SmartInfeedModuleDiagSource - General Information

Overview

Type:

Function Block

Available as of:

V1.0.0.0

Inherits from:

-

Implemented:

-

Versions:

Current version

Task

Output of the additional interface of the FB_SmartInfeedModule in a prompt of Diagnostics

Description

To diagnose the template project with Diagnostics, this POU provides the variables in the additional interface of all SmartInfeed modules as a diagnostic source. It lists all modules, starting with the main machine. For each SmartInfeed module, the entire additional interface of this module is output.

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

 

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 accepts user commands.

FALSE: The POU is not ready to accept user commands.

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic

A value unequal GD.ET_Diag.Ok equates an error 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 -> error 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

iq_stMachineItf

TPL.ST_StandardModuleInterface

Interface of the main machine

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

DataSuccessfullyWritten

102

The data was successfully written.

OK

Disabled

5

The POU is disabled.

OK

WaitForCommunication

99

Waiting for communication

OK

WaitUntilDiagnosticsManagerReady

96

Waiting for the diagnostic manager to be ready

OK

WaitUntilDiagSourceRegistered

98

Waiting for registration of the diagnostic source

OK

WaitUntilDisabled

97

Waiting until POU is switched off

OK

WritingToFile

100

Data are being written into the file.

InputParameterInvalid

CmdUnknown

23

Indeterminable command.

InputParameterInvalid

FileIdInvalid

101

The file is invalid.

UnexpectedProgramBehavior

UnexpectedFeedback

34

An unintended error has been detected during execution.

CmdUnknown

Enumeration name:

CmdUnknown

Enumeration value:

23

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:

102

Description:

The data was successfully written.

The diagnostic data was successfully written.

Disabled

Enumeration name:

Disabled

Enumeration value:

5

Description:

The POU is disabled.

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

FileIdInvalid

Enumeration name:

FileIdInvalid

Enumeration value:

101

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:

34

Description:

An unintended error has been detected during execution.

Issue

Cause

Solution

-

An error has been detected in the internal execution.

Please inform your Schneider Electric representative about this detected error.

WaitForCommunication

Enumeration name:

WaitForCommunication

Enumeration value:

99

Description:

Waiting for communication

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

WaitUntilDiagnosticsManagerReady

Enumeration name:

WaitUntilDiagnosticsManagerReady

Enumeration value:

96

Description:

Waiting for the diagnostic manager to be ready

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

WaitUntilDiagSourceRegistered

Enumeration name:

WaitUntilDiagSourceRegistered

Enumeration value:

98

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:

97

Description:

Waiting until POU is switched off

The function block is disabled.

WritingToFile

Enumeration name:

WritingToFile

Enumeration value:

100

Description:

Data are being written into the file.

The diagnostic data are being written.