FB_MovabililtyCheckHmi

FB_MovabililtyCheckHmi 1:

HMI class for setting the movability check of an FB_MeteringScrew. The movability check is used to ensure that the viscosity of the heated plastic is already low enough to allow the screw to rotate slowly with low torque.

WARNING

Configuration of an axis limitation required!

The limiting of the axis must be configured correctly for the movability check to function properly! Otherwise, the test will not be carried out with the limited torque of the screw and the system may be damaged!

Syntax:

FUNCTION_BLOCK FB_MovabilityCheckHmi EXTENDS FB_BaseHmi

FB_MovabililtyCheckHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_MovabililtyCheckHmi

Checked

BOOL

Get, Set

FALSE

TRUE as soon as a movability check has been successfully performed.

Duration

I_TimerHmi

Get

<Local>
(10.0 [s])

Duration of the test run, after which movability is determined.

Failed

BOOL

Get, Set

FALSE

TRUE if the last test run failed.

Limiting

LREAL

Get, Set

20.0 [%]

Pressure/torque limit that must not be reached during the test.

Velocity

LREAL

Get, Set

10.0 [°/s]

Velocity at which the screw should be rotated during the test.

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_MovabililtyCheckHmi 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

FB_Base

GetHMI()

Returns the assigned HMI object.

Notice The method is not implemented in the FB_Base class. If the method is not overwritten by inheritance, a pseudo variable is always returned.

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class as a local HMI.

Notice The method is not implemented in the FB_Base class. If the method is not overridden by inheritance, it always fails.

[PROTECTED] _IsMyself(iCmp)

Identifies whether the transferred object corresponds to its own instance.

[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_MovabililtyCheckHmi 4: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_MovabililtyCheckHmi

Standard interfaces on FB_MovabilityCheckHmi

I_BaseHmi

Standard interface on FB_BaseHmi.

I_BaseDev

Covers all methods and properties of the base class.

I_Comparable

Enables comparisons via _IsMyself() or F_IsSameInstance().

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.19
TwinCAT 4024 >= v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.14.0.0)