FB_MdContainer

FB_MdContainer 1:

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

FB_MdContainer 2: 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

T_MaxString

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

FB_MdContainer 3: Methods

Name

Description

AddComponent()

Adds another component to the container.

ClearChain()

Deletes the list of all components.

Cyclic()

Cycle method

FB_MdContainer 4: 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)