FB_MdComponent

FB_MdComponent 1:

The class represents the basis of a machine data component.

FB_MdComponent 2:

Class is Abstract

Since the class is defined as ABSTRACT, the class cannot be instantiated and must be implemented using inheritance.

Syntax:

FUNCTION_BLOCK ABSTRACT FB_MdComponent

FB_MdComponent 3: Properties

Name

Type

Access

Description

ComponentIndex

USINT

Get, Set

Index of the instance of the component. Identifies a component if there are several components of the same type in a container.

ComponentType

USINT

Get, Set

Index of the component type.

Connected

BOOL

Get

Component is connected to the container.

CrcChecked

BOOL

Get, Set

CRC checksum has been checked.

EndMark

BOOL

Get, Set

Is set when the component has accepted the last parameter.

MdNextComponent

I_MdComponent

Get

Interface to the next component.

FB_MdComponent 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

ClearChain()

Resets the interface to the next component and calls its ClearChain() method.

FB_MdComponent 5: Event-driven methods (callback methods)

Name

Description

MdNextParameter()

Gets parameters from the application.

MdSetParameter()

Passes parameters to the application.

FB_MdComponent 6: Interfaces

Type

Description

I_MdContainer

Standard interface on FB_MdContainer.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticFunctions v3.12.4.26 or higher