FB_AxisModuleDiagSource

 

FB_AxisModuleDiagSource - General Information

Overview

Type:

Function Block

Available as of:

V1.1.6.0

Inherits from:

-

Implemented:

-

Versions:

Current version

Task

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

Description

To diagnose the template project with Diagnostics, this POU provides the variables in the additional interface of all Axis modules as a diagnosis source. It lists all modules, starting with the main machine. For each Axis 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

A rising edge FALSE -> TRUE quitts an active exception of the POU.

i_xPrintCamData

BOOL

TRUE: The data of the defined Cam tables are included int the output data of diagnostics.

FALSE: The data of the defined Cam tables are excluded of the output data of diagnostics, e. g. because of data privacy protection reasons.

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 diagnosis

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnosis

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

153

The data was successfully written.

OK

Disabled

104

The POU is disabled.

OK

WaitForCommunication

152

Waiting for communication

OK

WaitUntilDiagnosticsManagerReady

149

Waiting for the diagnosis manager to be ready

OK

WaitUntilDiagSourceRegistered

151

Waiting for registration of the diagnosis source

OK

WaitUntilDisabled

150

Waiting until POU is switched off

OK

WritingToFile

154

Data are being written into the file.

InputParameterInvalid

CmdUnknown

2

Unknown command.

InputParameterInvalid

FileIdInvalid

155

The file is invalid.

UnexpectedProgramBehavior

UnexpectedFeedback

82

A POU returns an unexpected value.

CmdUnknown

Enumeration name:

CmdUnknown

Enumeration value:

2

Description:

Unknown command.

Issue

Cause

Solution

-

A wrong 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:

153

Description:

The data was successfully written.

The diagnosis data was successfully written.

Disabled

Enumeration name:

Disabled

Enumeration value:

104

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:

155

Description:

The file is invalid.

Issue

Cause

Solution

-

A wrong 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:

82

Description:

A POU returns an unexpected value.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

WaitForCommunication

Enumeration name:

WaitForCommunication

Enumeration value:

152

Description:

Waiting for communication

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

WaitUntilDiagnosticsManagerReady

Enumeration name:

WaitUntilDiagnosticsManagerReady

Enumeration value:

149

Description:

Waiting for the diagnosis manager to be ready

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

WaitUntilDiagSourceRegistered

Enumeration name:

WaitUntilDiagSourceRegistered

Enumeration value:

151

Description:

Waiting for registration of the diagnosis source

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

WaitUntilDisabled

Enumeration name:

WaitUntilDisabled

Enumeration value:

150

Description:

Waiting until POU is switched off

The function block is going to disabled.

WritingToFile

Enumeration name:

WritingToFile

Enumeration value:

154

Description:

Data are being written into the file.

The diagnosis data are being written.