FB_OcaGain

FB_OcaGain 1:

The function block FB_OcaGain provides properties and methods for handling OCA objects for gain adjustment.

FB_OcaGain 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_OcaGain

FB_OcaGain 3: Methods

Name

Definition location

Description

GetGain

Local

Used to query the properties Gain, GainMAX and GainMIN of the OCA object.

If the query was successful, the result is output in the properties stGain, stGainMAX and stGainMIN.

SetGain

Local

Use this method to set the gain of an OCA object in dB.

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

RNtfGain

Local

If the OCA object was prompted to notify changes (using the Subscription method), this method is used to read incoming notifications.

FB_OcaGain 4: Properties

Name

Type

Access

Definition location

Description

stGain

ST_FLOAT32Property

Get

Local

Gain in dB

stGainMAX

ST_FLOAT32Property

Get

Local

Maximum gain value in dB

stGainMIN

ST_FLOAT32Property

Get

Local

Minimum gain value in dB

FB_OcaGain 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_OcaGain