FB_ClampHmi

FB_ClampHmi 1:

HMI parallel class of FB_Clamp class.

FB_ClampHmi 2:

Clamp locking only active with NC transformer axes

The use of a lock segment is only inserted with an NC transformer axis! For hydraulic axes, the normal clamping of the FB_PtpMotion class is used.

Syntax:

FUNCTION_BLOCK FB_ClampHmi EXTENDS FB_PtpMotionHmi

FB_ClampHmi 3: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_ClampHmi

LockLimiting

LREAL

Get, Set

100.0 [%]

Limitation of the locking

LockPosition

LREAL

Get, Set

3.5

Locking position

Notice The sign is interpreted inverted.

LockVelocity

LREAL

Get, Set

5.0

Velocity at which the system moves to the locking position after the last PTP point.

ManualCloseOpen

I_ManualFunctionHmi

Get

<Local>

HMI for the implementation of a manual function.

UnlockLimiting

LREAL

Get, Set

100.0 [%]

Unlocking limitation

UnlockPosition

LREAL

Get, Set

0.0

Unlocking position from which the regular PTP segments take over.

UnlockVelocity

LREAL

Get, Set

1.0

Velocity at which the system is moved to the unlocking position.

FB_PtpMotionHmi

ActiveMove

INT

Get, Set

0

Index of the active cluster.

ActiveSegment

INT

Get, Set

0

Index of the active segment.

AxisMove

REFERENCE TO FB_AxisMoveHmi

Get

<Local>

Motion configuration object.

EnableRecipe

BOOL

Get, Set

FALSE

Enables recipe handling via I_Recipe.

FB_AxisHmi

AxisHomingAbsSwitch

REFERENCE TO FB_HomingAbsoluteSwitchHmi

Get

<Local>

Parameter set for homing via absolute switch.

AxisHomingBlock

REFERENCE TO FB_HomingBlockHmi

Get

<Local>

Parameter set for homing via end stop.

AxisHomingBlockDetect

REFERENCE TO FB_HomingBlockDetectHmi

Get

<Local>

Parameter set for calibrating an end stop position.

AxisHomingBusy

BOOL

Get, (Set)

FALSE

Homing or calibration is active (axis is in homing state).

AxisHomingFinish

REFERENCE TO FB_HomingFinishHmi

Get

<Local>

Parameter set for completing homing.

AxisHomingSetup

REFERENCE TO FB_HomingSetupHmi

Get

<Local>

Parameter set for general settings and homing commands.

AxisIsHomed

BOOL

Get, (Set)

FALSE

Axis was successfully homed.

EncoderZeroShift

LREAL

Get, (Set)

0.0

Zero offset shift of the axis.

LimitingReference

LREAL

Get

100.0 [%]

Reference value (maximum) for commanded limiting values (pressure or torque limit).

MaxAcceleration

LREAL

Get

0.0

Maximum acceleration of the axis.

MaxDeceleration

LREAL

Get

0.0

Maximum deceleration of the axis.

MaxJerk

LREAL

Get

0.0

Maximum jerk of the axis.

MaxPosition

LREAL

Get

0.0

Maximum position of the axis.

MaxVelocity

LREAL

Get

0.0

Maximum velocity of the axis.

MinPostion

LREAL

Get

0.0

Minimum position of the axis.

MinVelocity

LREAL

Get

0.0

Minimum velocity of the axis.

SetPosition

LREAL

Get, Set

0.0

Position used when calling FB_Axis.SetPosition().

UnitGroup

STRING(64)

Get, Set

‘Length‘

Physical quantity with which the axis is parameterized and operated.

FB_MotionHmi

ActPosition

LREAL

Get

0.0

Current position of the connected motion object

ActVelocity

LREAL

Get

0.0

Current velocity of the connected motion object

JogLimitingNegative

LREAL

Get, Set

0.0

Limitation of the jog command via the FB_Motion.JogNegative() method
Ignored for operation with an actuator.

JogLimitingPositive

LREAL

Get, Set

0.0

Limitation of the jog command via the FB_Motion.JogPositive() method
Ignored for operation with an actuator.

JogVelocityNegative

LREAL

Get, Set

0.0

Velocity of the jog command via the FB_Motion.JogNegative() method
Ignored for operation with an actuator.

JogVelocityPositive

LREAL

Get, Set

0.0

Velocity of the jog command via the FB_Motion.JogNegative() method
Ignored for operation with an actuator.

ManualPower

I_ManualFunctionHmi

Get, Set

<Local>

Interface for a manual function to switch on the motion object.

Specific

REFERENCE TO FB_MotionSpecificHmi

Get

<Local>

Access to the technology-specific functions

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'.

FB_ClampHmi 4: Local HMI variables

Name

Data type

Description

fbParamHandle

FB_MdHandleHmi

Handling interface for loading and saving machine data.

FB_ClampHmi

fbManualCloseOpen

FB_ManualFunctionHmi

HMI for the implementation of a manual function.

fbParamClamp

FB_MdClampHmi

Entries in the HMI parameter list under Clamp.

FB_PtpMotionHmi

aRecipe

ARRAY[] OF FB_MoveClusterRecipe

Structured recipe values for the motion configuration.

fbAxisMove

FB_AxisMoveHmi

Motion configuration object.

fbParamPtpMotion

FB_MdPtpMotionHmi

Entries in the HMI parameter list under Linear motion.

FB_AxisHmi

fbAxisHomingAbsSwitch

FB_HomingAbsoluteSwitchHmi

Parameter set for homing via absolute switch.

fbAxisHomingBlock

FB_HomingBlockHmi

Parameter set for homing via end stop.

fbAxisHomingBlockDetect

FB_HomingBlockDetectHmi

Parameter set for calibrating an end stop position.

fbAxisHomingFinish

FB_HomingFinishHmi

Parameter set for completing homing.

fbAxisHomingSetup

FB_HomingSetupHmi

Parameter set for general settings and homing commands.

fbParamAxis

FB_MdAxisHmi

Entries in the HMI parameter list under Axis.

fbParamHoming

FB_MdHomingHmi

Entries in the HMI parameter list under Homing.

FB_MotionHmi

fbManualPower

FB_ManualFunctionHmi

Interface for a manual function to switch on the motion object.

fbSpecific

FB_MotionSpecificHmi

Technology-specific functions of the motion object.

FB_ClampHmi 5: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_PtpMotionHmi

Moves(x)

Returns an interface to the x-th Move-Cluster.

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

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_ClampHmi 6:

Exceptions avoidance

The list access functions (e.g. Channels(x), Groups(x), etc...) return a pseudo variable if the requested index is invalid. In addition, a message is thrown in the EventLogger.

FB_ClampHmi 7: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_ClampHmi

Standard interface on FB_ClampHmi.

I_PtpMotionHmi

Standard interface on FB_PtpMotionHmi.

I_Recipe

Interface for managing structured recipe values.

I_AxisHmi

Standard interface on FB_AxisHmi.

I_MotionHmi

Standard interface on FB_MotionHmi.

I_BaseMdHmi

Standard interface on FB_BaseMdHmi.

I_BaseHmi

Standard interface on FB_BaseHmi.

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 (>= v12.8.1.0)