FB_ApplicationLoggerHandler - GetLoggerPoint (Method)

Overview

Type:

Method

Available as of:

V1.0.4.0

Task

This method returns the interface to a registered logger point.

Description

By registration to the application logger, the logger points are provided with an identification number.

The application logger itself has the number 1. The other logger points get their number according to the order in which they are registered.

Interface

Input

Data type

Description

i_udiId

UDINT

The identification number of the logger point.

Output

Data type

Description

q_ifLoggerPoint

IF_LoggerPoint

The interface to the logger point.

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

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

IdInvalid

11

The Id is invalid.

UnexpectedProgramBehavior

ApplicationLoggerItfNotSupported

14

The application logger interface is not supported.

UnexpectedProgramBehavior

ApplicationLoggerNotSet

13

The application logger has not been set.

UnexpectedProgramBehavior

UnexpectedFeedback

3

A feedback value was invalid.

ApplicationLoggerItfNotSupported

Enumeration name:

ApplicationLoggerItfNotSupported

Enumeration value:

14

Description:

The application logger interface is not supported.

Cause

Solution

An error has been detected in the internal execution.

Contact your Schneider Electric service representative.

ApplicationLoggerNotSet

Enumeration name:

ApplicationLoggerNotSet

Enumeration value:

13

Description:

The application logger has not been set.

Cause

Solution

The global variable G_ifApplicationLogger has been changed.

Make sure not to write the variable G_ifApplicationLogger.

Output q_etDiag shows GD.ET_Diag.UnexpectedProgramBehavior

An error has been detected in the internal execution.

Contact your Schneider Electric service representative.

IdInvalid

Enumeration name:

IdInvalid

Enumeration value:

11

Description:

The Id is invalid.

Cause

Solution

At the input i_udiId, an invalid value has been transferred.

At the input i_udiId, a value between udiFirstLogEntryId and udiLastLogEntryId must be transferred.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The logger point interface is returned successfully.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

3

Description:

A feedback value was invalid.

Cause

Solution

An error has been detected in the internal execution.

Contact your Schneider Electric service representative.