ToolAdaption

ToolAdaption 1:

This Corefunction is used to convert between axis coordinates and tool working position. An offset and an optional inversion are taken into account.

ToolAdaption 2:

Syntax:

FUNCTION_BLOCK FB_ToolAdaptionDefault EXTENDS FB_Corefunction

ToolAdaption 3: Properties

Name

Type

Access

Description

InitState

BOOL

Get, Set

The core function is not completely and successfully initialized.

FB_ToolAdaptionDefault

Inverting

BOOL

Get, Set

A TRUE here signals a reversal of direction between axis and tool movement.

Offset

LREAL

Get, Set

The difference between axis and tool position.

FB_Corefunction

FailedState

BOOL

Get, Set

If IsActivated is TRUE at the same time: Signals the failure of an accepted command.

If IsActivated is FALSE at the same time: Signals the rejection of a command.

HasFeedback

BOOL

Get

The core function has responded to a pending command.

IsActivated

BOOL

Get

The core function has an accepted command pending.

IsLocalCmd

BOOL

Get

Signals that the axis is assigned with a command of this core function.

ReadyState

BOOL

Get, Set

The Corefunction is ready for operation, but is not commandable at this time.

Possible reasons are:
- The axis is not enabled.
- Another Corefunction is active.
- The Corefunction does not support any commands.

ToolAdaption 4: Methods

Name

Description

[INTERN] Cyclic()

This method is called cyclically by the axis.

FB_ToolAdaptionDefault

AxisPosition()

The axis position is determined for a given tool position.

AxisVelocity()

The axis velocity is determined for a given tool velocity.

ToolPosition()

The tool position is determined for a given axis position.

ToolVelocity()

The tool velocity is determined for a given axis velocity.

ToolAdaption 5: Interfaces

Type

Description

I_Corefunction

Standard interface on FB_Corefunction.

I_ToolAdaption

Standard interface on FB_ToolAdaptionDefault.

I_CorefunctionFeedback

Standard interface on FB_CorefunctionFeedback.

Example:

iAxisBase.ToolAdaption.Inverting := FALSE;
iAxisBase.ToolAdaption.Offset := 100.0;

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