FB_CsvBase
The base class for CSV-based classes.
Class is abstract Since the class is defined as |
Syntax:
FUNCTION_BLOCK ABSTRACT FB_CsvBase EXTENDS FB_Base
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_CsvBase | ||||
Busy | BOOL | Get | FALSE | The function is currently being executed. |
ErrorId | UDINT | Get | FALSE | ADS error code of the error that has occurred. |
FileMode | Get, Set | eModeTextAppend | Mode in which the CSV files are used. | |
FileName | Get, Set | ‘.csv‘ | File name in the Plastic Base Application Standard directory. | |
NetId | Get, Set | [0,0,0,0,0,0] | AMS (ADS) network ID. | |
NetIdString | Get, Set | ‘0.0.0.0.0.0‘ | AMS (ADS) network ID. | |
Timeout | LREAL | Get, Set | 0.0 [s] | Time-out period of the system response of this function. |
FB_Base | ||||
BaseState | Get | eNotHandled | Initialization state of the class instance. | |
Error | BOOL | Get | FALSE | Class is in an error state. |
ResultMessage | Get | - | Access to the class-internal EventLogger. | |
[ | STRING | Get | <SourceName> |
|
Methods
Name | Description |
---|---|
Reset() | Resets the error state of the class. |
FB_Base | |
SetHMI( | General assignment method for an FB_BaseHmi extending class. |
[ | Extracts the first part of the instance path as an object namespace. |
[ | Extracts the last part of the instance path as the object name. |
Cycle methods
Name | Description |
---|---|
Cyclic() | Cycle method - 1 time per cycle (default 10 ms). |
Procedure controlling methods (FB_AdaptableSequence)
Type | Description |
---|---|
Procedure for processing CSV commands. |
Possible events
ID | Description | Alarm/Message |
---|---|---|
8001 | CSV object is in error state | Alarm |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_CsvBase | Standard interface on FB_CsvBase. |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.7.0) |