FB_RobotTSeries - RegisterLoggerPoint (Method)

Overview

Type:

Method

Available as of:

V2.0.0.0

Versions:

Current version

This chapter provides information on:

Task

By calling this method, the FB_RobotTSeries is being registered to the Application Logger.

Description

The FB_RobotTSeries is registered to the global Application Logger.

Further information can be found under Using the Application Logger in this help.

Interface

Input

Data type

Description

i_ifParent

APL.IF_LoggerPoint

Parent logger point under which the FB_RobotTSeries is registered.

i_sName

STRING[80]

Define the name of the FB_RobotTSeries logger point, that is shown in the Application Logger.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output for the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

LoggerPointAlreadyRegistered

84

The LoggerPoint is already registered.

OK

Ok

0

Successful

ExecutionAborted

MaxNumberOfLoggerPointsExceeded

85

The maximum number of logger points is exceeded.

ExecutionAborted

ServiceNotRegistered

86

The service is not registered.

InputParameterInvalid

ParentInvalid

87

The parent is invalid.

InputParameterInvalid

ParentNotRegistered

88

The parent is not registered.

UnexpectedProgramBehavior

UnexpectedFeedback

9

The Feedback is incorrect.

LoggerPointAlreadyRegistered

Enumeration name:

LoggerPointAlreadyRegistered

Enumeration value:

84

Description:

The LoggerPoint is already registered.

Registering the function block FB_RobotTSeries as logger point to the Application Logger was successful.

The logger point is already registered in the Application Logger.

MaxNumberOfLoggerPointsExceeded

Enumeration name:

MaxNumberOfLoggerPointsExceeded

Enumeration value:

85

Description:

The maximum number of logger points is exceeded.

Issue

Cause

Solution

Registering the function block FB_RobotTSeries as logger point to the Application Logger was unsuccessful.

There are already Gc_udiMaxNumberOfLoggerPoints logger points registered in the Application Logger (the Application Logger itself is also a logger point).

The global parameter Gc_udiMaxNumberOfLoggerPoints has to be set to a greater value to register all logger points of the project.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Successful

Registering the function block FB_RobotTSeries as logger point to the Application Logger was successful.

ParentInvalid

Enumeration name:

ParentInvalid

Enumeration value:

87

Description:

The parent is invalid.

Issue

Cause

Solution

Registering the function block FB_RobotTSeries as logger point to the Application Logger was unsuccessful.

An invalid object has been transferred at the input i_ifParent.

Ensure that at the input i_ifParent an object of the type APL.FB_LoggerPoint or APL.IF_ApplicationLogger is transferred.

ParentNotRegistered

Enumeration name:

ParentNotRegistered

Enumeration value:

88

Description:

The parent is not registered.

Issue

Cause

Solution

Registering the function block FB_RobotTSeries as logger point to the Application Logger was unsuccessful.

The logger point transferred at the input i_ifParent is not registered in the Application Logger.

The logger point transferred at the input i_ifParent must be registered in the Application Logger first.

ServiceNotRegistered

Enumeration name:

ServiceNotRegistered

Enumeration value:

86

Description:

The service is not registered.

Issue

Cause

Solution

Registering the function block FB_RobotTSeries as logger point to the Application Logger was unsuccessful.

The Application Logger communication service is not registered.

The communication service of the Application Logger has to be registered first.

The method APL.IF_ApplicationLogger.RegisterCommunicationService has to be called successfully once, before a logger point can be registered in the Application Logger.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

9

Description:

The Feedback is incorrect.

Registering the function block FB_RobotTSeries as logger point to the Application Logger was unsuccessful.