FB_MdContainer
This class is able to write data from a list of components to a file. The file format is binary and secured via a CRC checksum. This automatically makes it more difficult for unauthorized users to manipulate this file.
Syntax:
FUNCTION_BLOCK FB_MdContainer
Properties
Name | Type | Access | Description |
---|---|---|---|
Busy | BOOL | Get | The container is busy reading or writing. |
Done | BOOL | Get | Reading or writing has been successfully completed. |
Error | BOOL | Get | An error has occurred while reading or writing. |
Load | BOOL | Get, Set | Command to read the file. |
Name | STRING | Get, Set | Name of the machine data container. |
Path | Get, Set | Path under which the machine data is to be saved. | |
Save | BOOL | Get, Set | Command for writing the file. |
FilePath1 | STRING | Get, Set | Path under which the machine data is to be saved. |
1Obsolete
Methods
Name | Description |
---|---|
AddComponent() | Adds another component to the container. |
ClearChain() | Deletes the list of all components. |
Cyclic() | Cycle method |
Interfaces
Type | Description |
---|---|
I_MdContainer | Standard interface on FB_MdContainer. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86) | Tc3_PlasticFunctions (>= v12.6.1.0) |