FB_TcSourceInfo
![FB_TcSourceInfo 1:](Images/png/5031416971__Web.png)
The source information of an event can be defined with this function block.
Syntax
Definition:
FUNCTION_BLOCK FB_TcSourceInfo IMPLEMENTS I_TcSourceInfo
Interfaces
Type | Description |
---|---|
Provides read methods and read properties of a source information. |
Methods
Name | Definition location | Description |
---|---|---|
Local | Resets the source information. | |
Local | Appends the transferred string to the name. | |
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. | |
Compares an instance with another instance. |
Properties
Name | Type | Access | Definition location | Description |
---|---|---|---|---|
guid | GUID | Get | Returns the GUID of the source information. | |
guid | GUID | SET | Local | Sets the GUID as source information. |
nId | UDINT | Get | Returns the ID of the source information. | |
nId | UDINT | SET | Local | Sets the ID of the source information. |
sName | STRING(ParameterList.cSourceNameSize-1) | Get | 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 |