GetGain

GetGain 1:

The GetGain method is used to query the Gain, GainMAX and GainMIN properties of the OCA object. If the query was successful, the result is output in the properties stGain, stGainMAX and stGainMIN.

GetGain 2:

Cyclic method call

Since several PLC cycles may pass between sending and the response from the device, this method should be executed cyclically.

Syntax

VAR_INPUT
   pLink    : POINTER TO ST_Link;
   bExecute : BOOL;
END_VAR

GetGain 3: Inputs

Name

Type

Description

pLink

POINTER TO ST_Link

Pointer for establishing a connection between OCA objects and the OCA device

bExecute

BOOL

The method is executed with a positive edge at the bExecute input.