FB_BA_LightActrAnalog

FB_BA_LightActrAnalog 1:

The function block FB_BA_LightActrAnalog is used to control an analog light actuator.
The output is in 0...100% and converted accordingly in 0...32767 (positive integer range). The function block is thus suitable for use with the dimmer terminals (e.g. KL2751, KL2761).

Function

If the function block is not enabled (bEn = FALSE ) the outputs fActlLgtVal = 0 and iActlLgtVal = 0.
In the enabled state the light brightness value of the input telegram (stLightingCmd.fLgtVal) is passed directly to the output fActlLgtVal. The same value multiplied by 327.65 is given to the output iActlLgtVal.

FB_BA_LightActrAnalog 2: Inputs

VAR_INPUT
  bEn              : BOOL;
  stLightingCmd    : ST_BA_Lighting;
END_VAR

Name

Type

Description

bEn

BOOL

Enabling the function block and activation of the function.

stLightingCmd

ST_BA_Lighting

Light control telegram

FB_BA_LightActrAnalog 3: Outputs

VAR_OUTPUT
  iActlLgtVal     : INT;
  fActlLgtVal     : REAL;;
END_VAR

Name

Type

Description

iActlLgtVal

INT

Current light value in positive integer range (0...32767).

fActlLgtVal

REAL

Current light value in percent [%].

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0