FB_CP22xx_1025

FB_CP22xx_1025 1:

The class implements the I/O functions of the Beckhoff BlowMolding Panel CP2219-1025-0030.

Internal functions:

Syntax:

FUNCTION_BLOCK FB_CP22xx_1025 EXTENDS FB_Base

FB_CP22xx_1025 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_CP22xx_1025

Button1

I_ButtonRGB

Get

<Local>

Push button 1 (Start)

Button2

I_ButtonRGB

Get

<Local>

Push button 2 (stop)

Button3

I_ButtonRGB

Get

<Local>

Push button 3 (acknowledge)

EStop

I_Button

Get

<Local>

Emergency stop

Status

I_RGBLed

Get

<Local>

Status LED

Wheel

I_CP22xx_Wheel

Get

<Local>

Incremental encoder

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

Name

Description

Reset()

Resets the error state of the 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_CP22xx_1025 4: Cycle methods

Name

Description

Cyclic()

Cycle method - Call once per PLC cycle (default 10 ms).

FB_CP22xx_1025 5: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_CP22xx_1025

Standard interface on FB_CP22xx_1025.

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)