FB_OcaSwitch

FB_OcaSwitch 1:

The function block FB_OcaSwitch extends the function block FB_OcaActuator with properties and methods and for handling OCA switch objects. These objects can have multiple switch positions. Individual positions can be enabled or disabled and given names.

FB_OcaSwitch 2:

No explicit call

Since there is no code in the body of the function block, it should not be called explicitly. Instead, use the corresponding methods of the function block.

Inheritance hierarchy

FB_OcaRoot

    FB_OcaWorker

        FB_OcaActuator

            FB_OcaSwitch

FB_OcaSwitch 3: Methods

Name

Definition location

Description

GetPosition

Local

This method is used to query the Position, PositionMAX, and PositionMIN properties of the OCA object.

SetPosition

Local

Use this method to set the switch position of an OCA object.

RNtfPosition

Local

This method reads incoming notifications

GetPositionEnabled

Local

Method for querying a switch position

SetPositionEnabled

Local

Method for enabling or disabling a switch position

GetPositionName

Local

Method for querying the name of a switch position

SetPositionName

Local

Use this method to assign a name to a switch position.

FB_OcaSwitch 4: Properties

Name

Type

Access

Definition location

Description

stPosition

ST_UINT16Property

Get

Local

Indicates the switch position of the OCA object.

stPositionMAX

ST_UINT16Property

Get

Local

Indicates the lowest switch position of the OCA object.

stPositionMIN

ST_UINT16Property

Get

Local

Indicates the highest switch position of the OCA object.

stPositionEnabled

ST_PositionEnabledProperty

Get

Local

Indicates whether a particular switch position is enabled or disabled.

stPositionName

ST_PositionNameProperty

Get

Local

Indicates the position name of a particular switch position.

FB_OcaSwitch 5:

AES70 standard

The names of variables and function blocks have been adapted to the AES70 standard where possible. Information about this communication protocol can be found at www.aes.org and www.ocaalliance.com.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.2 or higher

PC or CX (x64, x86, ARM)

Tc3_AES70