FB_LoggerPoint - General Information

Overview

Type:

Function block

Available as of:

V1.0.4.0

Inherits from:

Implements:

oIF_LoggerPoint

Task

Send logger messages to the application logger.

Description

An instance of this function block has to be registered to the global application logger by calling the method FB_LoggerPoint.RegisterLoggerPoint. Afterwards messages can be sent via the method FB_LoggerPoint.AddLogEntry.

Methods

Name

Description

AddLogEntry

Send a logger message to the application logger.

RegisterLoggerPoint

Register the logger point to the application logger.

Properties

Name

Data type

Accessing

Description

etLogLevel

ET_LogLevel

Read/write

Only messages that have a higher priority than this logger level are sent to the application logger. The logger level can be changed via EcoStruxure Machine Expert.

NOTE: The priority of AddLogEntry.i_etlogLevel must be higher than this priority.

sName

STRING[80]

Read

Name of the logger point that was given during the call of RegisterLoggerPoint. The information is linked to every logger message sent via this logger point.

sSource

STRING[40]

Read

Source of the logger point that was given during the call of RegisterLoggerPoint. The information is linked to every logger message sent via this logger point.

sType

STRING[80]

Read

Type of the logger point that was given during the call of RegisterLoggerPoint. The information is linked to every logger message sent via this logger point.

udiId

UDINT

Read

Id of the logger point that was given by the application logger during the call of RegisterLoggerPoint.

udiParentId

UDINT

Read

Id of the parent logger point that was given during the call of RegisterLoggerPoint.