FB_MoveSegRecipe

FB_MoveSegRecipe 1:

Recipe management class of a PTP segment.

Syntax:

FUNCTION_BLOCK FB_MoveSegRecipe EXTENDS FB_Recipe

FB_MoveSegRecipe 2: Local HMI variables

Name

Data type

Description

Acceleration

LREAL

Acceleration of the segment.

Deceleration

LREAL

Deceleration of the segment.

InUse

BOOL

Segment is used.

Jerk

LREAL

Jerk of the segment.

Limiting

LREAL

Limitation (torque/pressure) of the segment.

Position

LREAL

Target position of the segment.

Segfunction

INT

ID of the segment function.

Velocity

LREAL

Velocity of the segment.

FB_MoveSegRecipe 3: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_Recipe

EnableRecipe

BOOL

Get

FALSE

Enables the handling of this recipe management class.

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_MoveSegRecipe 4: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_MoveSegRecipe

Init(iSegment)

Initialization with the interface to a segment.

FB_Recipe

Lock()

Locks the recipe variables

  • The next execution of .Update() writes the recipe values to the PLC.
  • Can be called/executed from the HMI.

Reset()

Resets the lock state.

Update()

[ABSTRACT] Updates the recipe variables to the current PLC value.

  • Can be called/executed from the HMI.

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_MoveSegRecipe 5: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_Recipe

Standard interface on FB_Recipe.

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)