FB_TcEventBase

FB_TcEventBase 1:

This function block contains the basic implementation.

Syntax

Definition:

FUNCTION_BLOCK FB_TcEventBase

FB_TcEventBase 2: Methods

Name

Definition location

Description

EqualsTo

Local

Compares the event with another instance.

EqualsToEventClass

Local

Compares the event class of the event with another event class.

EqualsToEventEntry

Local

Compares the event definition of the event with another event definition.

EqualsToEventEntryEx

Local

Compares the event definition of the event with another event definition.

GetJsonAttribute

Local

Returns the Json attribute.

Release

Local

Releases the instance created by the EventLogger again.

RequestEventClassName

Local

Requests the name of the event class.

RequestEventText

Local

Returns the text for the event.

FB_TcEventBase 3: Properties

Name

Type

Access

Description

eSeverity

TcEventSeverity

Get

Returns the severity.

EventClass

GUID

Get

Returns the GUID of the event class.

ipArguments

I_TcArguments

Get

Returns the interface pointer for the arguments.

ipSourceInfo

I_TcSourceInfo

Get

The SourceInfo is created internally as the default behavior. It then contains the symbol name of the function block that instances FB_TcMessage as SourceName and the object ID of the PLC instance as SourceID.

If the instance of FB_TcMessage is hidden with the attribute "hide", no symbol name can be created internally for the default behavior.

nEventId

UDINT

Get

Returns the ID of the event.

nUniqueId

UDINT

Get

Returns the unique ID of the event.

stEventEntry

TcEventEntry

Get

Returns the event definition.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.20

PC or CX (x64, x86, ARM)

Tc3_EventLogger