FB_TableGeneratorAsciiFile
Implements a file read mechanism for a user-defined table (e.g. for use as a transformation table).
Formatting the file:
Drive Load
0.0 100.0
1.0 110.0
2.0 121.0
3.0 131.0
4.0 142.0
…
Limited number of points The number of points that can be loaded with this class is limited by the parameter |
Syntax:
FUNCTION_BLOCK FB_TableGeneratorAsciiFile EXTENDS FB_FileTableGenerator
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
FilePath | STRING | Get, Set | ‘‘ | File path on the target system to the stored description file. |
FB_FileTableGenerator | ||||
DriveHighEnd | LREAL | Get | 0.0 | Read highest point of the drive side. Can be used in equidistant mode to define the drive points. |
DriveLowEnd | LREAL | Get | 0.0 | Read lowest point of the drive side. Can be used in equidistant mode to define the drive points. |
LoadHighEnd | LREAL | Get | 0.0 | Read highest point of the load side. |
LoadLowEnd | LREAL | Get | 0.0 | Read lowest point of the load side. |
Tc3_PlasticFunctions.FB_TrafoTableGenerator | ||||
<> | <> | <> | Implemented by FB_TrafoTableGenerator |
Methods
Name | Description |
---|---|
DefineTable() | Starts reading the table from the file. The function runs asynchronously and must be called several times. As soon as the file has been successfully loaded, a |
FB_FileTableGenerator | |
Reset() | Resets the started, completed or failed reading mechanism. |
Procedure controlling methods (FB_AdaptableSequence)
Type | Description |
---|---|
Procedure for processing the file loading mechanism (extended) |
Possible events
ID | Description | Alarm/Message |
---|---|---|
8002 | Table could not be read. | Alarm |
Interfaces
Type | Description |
---|---|
I_FileTableGenerator | Standard interface on FB_FileTableGenerator. |
I_TableGeneratorAsciiFile | Standard interface on FB_TableGeneratorAsciiFile |
Implemented by FB_TrafoTableGenerator. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.8.1.0) |