FB_ReceiveVisionData - RegisterLoggerPoint (Method)
Type: |
Method |
Available as of: |
V1.0.0.0 |
This chapter provides information on:
oTask
Register the function block to the Application Logger.
With the method RegisterLoggerPoint, the function block FB_ReceiveVisionData can be registered to the Application Logger.
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 |
General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
q_etDiag |
q_etDiagExt |
Enumeration value of q_etDiagExt |
Description |
---|---|---|---|
Ok |
0 |
Ok |
|
36 |
The logger point is already registered. |
||
ExecutionAborted |
7 |
The service is not registered. |
|
InputParameterInvalid |
3 |
The maximum number of logger points was exceeded. |
|
1 |
The parent is invalid. |
||
2 |
The parent is not registered. |
||
UnexpectedProgramBehavior |
4 |
A feedback value was unexpected. |
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. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Status message: Registration of the function block was successful.
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. |
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. |
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. |
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. |