FB_BaseCamsHmi

FB_BaseCamsHmi 1:

This base class (FB) is a TF8550 CamControl based cam switch list. It represents a common basis for the internal cam switch list of an FB_PtpMotionHmi and a stand-alone FB_CamsHmi instance.

FB_BaseCamsHmi 2:

Class is abstract

Since the class is defined as ABSTRACT, the class cannot be instantiated and must be implemented using inheritance.

Syntax:

FUNCTION_BLOCK ABSTRACT FB_BaseCamsHmi EXTENDS FB_BaseHmi

FB_BaseCamsHmi 3: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_BaseCamsHmi

ActiveOnOverflow

BOOL

Get, Set

TRUE

If TRUE, the cam switches remain active, even if the CurrentValue runs over them. This applies to all cam switches that reach up to the Min/MaxValues.

CurrentValue

LREAL

Get, Set

0.0

Actual value for evaluating the cam switch states.

ValueMax

LREAL

Get, Set

0.0

Maximum value to be displayed and evaluated on the scale.

ValueMin

LREAL

Get, Set

0.0

Minimum value to be displayed and evaluated on the scale.

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

Name

Description

Reset()

Resets the error state of the class.

FB_BaseCamsHmi

Cam(x)

Returns a single cam switch via I_CamSwitchHmi interface.

Copy(iCopy)

Copies the values of the transferred cam switches to this instance.

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

Type

Description

I_Base

Standard interface on FB_Base.

I_CamsHmi

Standard interface for TF8550 CamControl based cams.

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)