FB_Wtc

FB_Wtc 1:

Implements wall thickness control for the extruded hose in blow molding applications.

Syntax:

FUNCTION_BLOCK FB_Wtc EXTENDS FB_Axis

FB_Wtc 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_Axis

Axis

I_AxisBase

Get

-

Interface to the assigned TF8560 axis.

Homing

I_Homing

Get

-

Homing functions

BaseAxisInterfaces1

I_AxisBase

Get

NULL

Alias of Axis.

FB_Motion

Motion

I_MotionBase

Get

NULL

Interface to the assigned TF8560 motion object.

ErrorAlarmTL

TcEventSeverity

Get, Set

Error (3)

Severity of the alarm that the axis triggers in the error state.

Specific

I_MotionSpecific

Get

-

Technology-specific functions/values

FB_BaseMd

MachineData

I_MdBaseContainer

Get

-

Interface for machine data handling.

FB_Base

BaseState

E_BaseState

Get

eNotHandled

Initialization state of the class instance.

Error

BOOL

Get

FALSE

Class is in an error state.

ResultMessage

I_AppMessage

Get

-

Access to the class-internal EventLogger.

[PROTECTED] _Name

STRING

Get

<SourceName>

.Name without leading 'fb'.

1 Is obsolete

FB_Wtc 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_Wtc

CamIn(bCmd)

Loads the current curve and starts camming.

DieWaitPosition(bCmd)

Commands the WTC to the waiting position.

Power(bCmd)

Activates the axis including the connection to the cam plate.

SetMaster(iMaster)

Sets the current master to be used by the WTC.

Notice If the WTC is not in the idle state, the new master is considered requested and is only assigned when idle.

Testposition(bCmd)

Commands the WTC to the test position.

FB_Axis

SetPosition(bCommand)

Setting the axis position with the FB_AxisHmi.Setpoistion.

SetAxisRef()1

Assignment method for the TF8560 axis.

Alternative: .SetMotionRef().

FB_Motion

CheckAxisState()

Checks the current state of the axis.

FeedEnable(bFeedEnableP, bFeedEnableN)

Enable of a direction of movement.

JogNegative(bCommand)

Starts/stops a jog movement in negative direction.

JogPositive(bCommand)

Starts/stops a jog movement in positive direction.

Power(bCommand)

Switching on the drive control.

SetMotionRef(iMotion)

Assignment method for the TF8560 motion object.

FB_BaseMd

[PROTECTED] AddMdComp()

Adds a component of type I_MdComponent to the machine data container.

FB_Base

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class.

Notice This method always fails in the FB_Base implementation. Overwriting is therefore absolutely necessary.

[PROTECTED] _QueryNamespace()

Extracts the first part of the instance path as an object namespace.

[PROTECTED] _QueryObjectName()

Extracts the last part of the instance path as the object name.

FB_Wtc 4: Procedure controlling methods (FB_AdaptableSequence)

Name

Description

WtcStates()

Procedure for executing commands and coupling and decoupling from the cam plate.

FB_Wtc 5: Possible events

ID

Description

Alarm/Message

11

Object error state

Alarm

21

Command rejected

Alarm

100x

Axis switch on/off failed.

Message

300x

Failed to switch on/off the cam plate.

Message

10

Axis Errors

Alarm

20

Axis command rejected

Alarm

FB_Wtc 6: Machine data

Component

Description

Index range

Number of instances

FB_MdFileInfo

File information

0x0000 Fxxx

1

FB_MdWtc

Parameters for WTC applications

0x0001 3xxx

1

FB_MdWtcTimer

Parameter for a WTC timer, only if SetMaster() was executed with a FB_WtcTimer

0x0001 31xx

1 (0)

FB_MdAxis

General axis parameters

0x0000 0xxx
0x0000 1xxx

1

FB_MdNc

NC specific parameters, only if Specific.Nc.IsNc = TRUE

0x0000 22xx

1 (0)

FB_MdTrafo

Transformation-specific parameters, only if Specific.Trafo.IsTrafo = TRUE

0x0000 23xx

1 (0)

FB_MdHoming

Parameters for homing the axis

0x0000 3xxx

1

FB_Wtc 7: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_Wtc

Standard interface on FB_Wtc.

I_Axis

Standard interface on FB_Axis.

I_Motion

Standard interface on FB_Motion

I_TwoTaskInterface

Runtime interface for two PLC tasks.

I_BaseMd

Standard interface on FB_BaseMd.

I_BaseEmpty

For extension without standard interface.

I_BaseDev

Covers all methods and properties of the base class.

Requirements

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 (>= v3.12.7.0)