FB_ReceiveVisionData - RegisterLoggerPoint (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

This chapter provides information on:

oTask

oDescription

oInterface

oDiagnostic Messages

Task

Register the function block to the Application Logger.

Description

With the method RegisterLoggerPoint, the function block FB_ReceiveVisionData can be registered to the Application Logger.

Interface

Input

Data type

Description

i_ifParent

APL.IF_LoggerPoint

Parent logger point under which the FB_ReceiveVisionData is registered.

I_sName

STRING[80]

The name of the FB_ReceiveVisionData logger point that is shown in the Application Logger is declared here.

Output

Data type

Description

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 = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

LoggerPointAlreadyRegistered

36

The logger point is already registered.

ExecutionAborted

ServiceNotRegistered

7

The service is not registered.

InputParameterInvalid

MaxNumberOfLoggerPointsExeeded

3

The maximum number of logger points was exceeded.

ParentInvalid

1

The parent is invalid.

ParentNotRegistered

2

The parent is not registered.

UnexpectedProgramBehavior

UnexpectedFeedback

4

A feedback value was unexpected.

LoggerPointAlreadyRegistered

Enumeration name:

LoggerPointAlreadyRegistered

Enumeration value:

36

Description:

Logger point is already registered.

Status message: The logger point of the function block is already registered in the Application Logger.

MaxNumberOfLoggerPointsExeeded

Enumeration name:

MaxNumberOfLoggerPointsExceeded

Enumeration value:

3

Description:

The maximum number of logger points was exceeded.

Issue

Cause

Solution

The maximum number of logger points has been exceeded.

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

There are already Gc_udiMaxNumberOfLoggerPoints logger points registered in the Application Logger.

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

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Status message: Registration of the function block was successful.

ParentInvalid

Enumeration name:

ParentInvalid

Enumeration value:

1

Description:

The parent is invalid.

Issue

Cause

Solution

The parent is invalid. Registering the function block as logger point to the Application Logger was not successful.

An invalid object was transferred at the input i_ifParent.

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

ParentNotRegistered

Enumeration name:

ParentNotRegistered

Enumeration value:

2

Description:

The parent is not registered.

Issue

Cause

Solution

The parent is not registered. Registering the function block as logger point to the Application Logger was not successful.

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:

7

Description:

The service is not registered.

Issue

Cause

Solution

The service is not registered. Registering the function block as logger point to the Application Logger was not successful.

The Application Logger communication service is not registered.

The communication service of the Application Logger has to be registered first. The interface 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:

4

Description:

Internal error detected.

Issue

Cause

Solution

Feedback was invalid.

Receiving data was not successful, the server was shut down.

Restart the server.