FB_MotionHmi

FB_MotionHmi 1:

HMI class parallel to the standard class FB_Motion for motion objects

Syntax:

FUNCTION_BLOCK FB_MotionHmi EXTENDS FB_BaseMdHmi

FB_MotionHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

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_MotionHmi 3: Local HMI variables

Name

Data type

Description

fbParamHandle

FB_MdHandleHmi

Handling interface for loading and saving machine data.

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_MotionHmi 4: 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

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

Type

Description

I_Base

Standard interface on FB_Base.

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