FB_TcSourceInfo

FB_TcSourceInfo 1:

The source information of an event can be defined with this function block.

Syntax

Definition:

FUNCTION_BLOCK FB_TcSourceInfo IMPLEMENTS I_TcSourceInfo

FB_TcSourceInfo 2: Interfaces

Type

Description

I_TcSourceInfo

Provides read methods and read properties of a source information.

FB_TcSourceInfo 3: Methods

Name

Definition location

Description

Clear

Local

Resets the source information.

ExtendName

Local

Appends the transferred string to the name.

ResetToDefault

Local

Sets the properties to default values.

sName is initialized with the symbol name of the instanced function block.

nId is initialized with the object ID of the PLC instance.

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

EqualsTo

I_TcSourceInfo

Compares an instance with another instance.

FB_TcSourceInfo 4: Properties

Name

Type

Access

Definition location

Description

guid

GUID

Get

I_TcSourceInfo

Returns the GUID of the source information.

guid

GUID

SET

Local

Sets the GUID as source information.

nId

UDINT

Get

I_TcSourceInfo

Returns the ID of the source information.

nId

UDINT

SET

Local

Sets the ID of the source information.

sName

STRING(ParameterList.cSourceNameSize-1)

Get

I_TcSourceInfo

Returns the name of the source information.

sName

STRING(ParameterList.cSourceNameSize-1)

SET

Local

Sets the name of the source information

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.20

PC or CX (x64, x86, ARM)

Tc3_EventLogger