FB_MdClamp

FB_MdClamp 1:

This machine data component contains parameters that are specifically relevant for a clamp.

Syntax:

FUNCTION_BLOCK FB_MdClamp EXTENDS FB_MdBaseComponent

FB_MdClamp 2: Machine data

Index (Identifier)

Parameter

PLC storage location

0x0001 1011

LockVelocity

FB_ClampHmi

 

0x0001 1012

LockLimiting

0x0001 1013

LockDistance

0x0001 1020

UnlockPosition

0x0001 1021

UnlockVelocity

0x0001 1022

UnlockLimiting

0x0001 1010

LockPosition1

1Obsolete

FB_MdClamp 3: Properties

Name

Type

Access

Initial value

Description

Connected

BOOL

Get

FALSE

Component is connected to its dependencies (except for the MD container).

FB_MdBaseComponent

LinkedContainer

I_MdBaseContainer

Get

NULL

Points to the container to which the component was appended.

Tc3_PlasticFunctions.FB_MdComponent

Further characteristics

<>

<>

<>

Implemented by FB_MdComponent

FB_MdClamp 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

FB_MdClamp

Connect(ipClamp, ipClampHmi)

Connects the component with the necessary dependencies.

FB_MdBaseComponent

[PROTECTED] ConfigCompType(eCompType)

Used with inheriting classes to initialize the encoding offset after E_StandardCompType.

[PROTECTED] ConfigCompTypeEx()

Used with the inheriting class to initialize the encoding offset.

[PROTECTED] NextString(…)

Simplified method for reading a text-based machine data parameter. This method is used within the MdNextParameter(...) Callback method.

[PROTECTED] SetString(…)

Simplified method for writing a text-based machine data parameter. This method is used within the MdSetParameter(...) Callback method.

Tc3_PlasticFunctions.FB_MdComponent

Other methods

Implemented by FB_MdComponent.

FB_MdClamp 5: Event-driven methods (callback methods)

Name

Description

MdNextParameter(…)

Container call for saving the parameters in a file, implemented by FB_MdComponent.

MdSetParameter(…)

Container call for loading the parameters into the runtime, implemented by FB_MdComponent.

FB_MdClamp 6: Interfaces

Type

Description

I_MdComponent

Standard interface on FB_MdComponent

I_MdClamp

Standard interface on FB_MdClamp.

I_MdBaseComponent

Standard interface on FB_MdBaseComponent

Further interfaces

Implemented by FB_MdComponent

Prerequisites

Development environment

Target platform

PLC libraries to include

TwinCAT >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.10.2.0)