FB_OcaWorker

FB_OcaWorker 1:

The function block FB_OcaWorker extends the function block FB_OcaRoot with properties and methods for handling the OCA objects.

FB_OcaWorker 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_OcaWorker 3: Methods

Name

Definition location

Description

GetEnabled /SetEnabled

Local

Method for querying or setting the Enabled property of the OCA object.

If the query was successful, the result is output in the property stEnabled.

GetLabel /SetLabel /RNtfLabel

Local

This method is used to query whether the OCA object can be locked.

If the query was successful, the result is output in the property stLockable.

LockUnlock

Local

Method for unlocking or locking an OCA object.

If the method was executed successfully, the result is output in the property stObjectLocked.

GetRole

Local

OCA objects can have a text label to make their meaning easier to recognize.

If the method call was successful, the result is output in the property stRole.

Subscription

Local

You can use this method to request OCA objects, generate notifications for value changes, or set up sending.

If the method was executed successfully, the result is output in the property stSubscribed.

FB_OcaWorker 4: Properties

Name

Type

Access

Definition location

Description

stEnabled

ST_BooleanProperty

Get

Local

Indicates whether the OCA object in the corresponding OCA device is enabled.

stLabel

ST_StringProperty

Get

Local

OCA objects can have a description text that is stored in this property to facilitate recognition.

stLatency

ST_FLOAT32Property

Get

Local

Processing latency of the OCA object

stOwner

ST_UINT32Property

Get

Local

OCA object number of the higher-level object

FB_OcaWorker 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

See also: Example for using the function block FB_OcaWorker