FB_RobotSCARA - RegisterLoggerPoint (Method)

Overview

Type:

Method

Available as of:

V.2.16.2.0

Versions:

Current version

This chapter provides information on:

Task

Registers the FB_RobotSCARA to the Application Logger.

Description

The FB_RobotSCARA is registered to the global Application Logger.

For more information, refer to Using the Application Logger.

Interface

Input

Data type

Description

i_ifParent

APL.IF_LoggerPoint

Parent logger point under which the FB_RobotSCARA is registered.

i_sName

STRING[80]

Defines the name of the FB_RobotSCARA logger point that is displayed 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_RobotSCARA as a 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_RobotSCARA as a alogger point to the Application Logger was unsuccessful.

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

The global parameter Gc_udiMaxNumberOfLoggerPoints must be increased to register the logger points of the project.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Successful

Registering the function block FB_RobotSCARA as a 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_RobotSCARA as a logger point to the Application Logger was unsuccessful.

An invalid object is transferred at the input i_ifParent.

Transfer an object of the type APL.FB_LoggerPoint or APL.IF_ApplicationLogger at the input i_ifParent.

ParentNotRegistered

Enumeration name:

ParentNotRegistered

Enumeration value:

88

Description:

The parent is not registered.

Issue

Cause

Solution

Registering the function block FB_RobotSCARA as a 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_RobotSCARA as a logger point to the Application Logger was unsuccessful.

The Application Logger communication service is not registered.

The communication service of the Application Logger must be registered first.

The method APL.IF_ApplicationLogger.RegisterCommunicationService must 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_RobotSCARA as a logger point to the Application Logger was not successful.