FB_BA_BV_Op_Val

FB_BA_BV_Op_Val 1:

The template is a switch within a template at plant level.

It is itself a shell that represents the aggregate level and sets the internal binary object at the functional level.

A label is predefined in FB_Init that describes the internal binary object as a "switch", the preselected function is "latching" (E_BA_ToggleMode.eSwitch).

FB_BA_BV_Op_Val 2:

The initialization of the template takes place within the method FB_Init.

Syntax

FUNCTION_BLOCK FB_BA_BV_OP_Val EXTENDS FB_BA_View
VAR_OUTPUT
  fPresentValue    : BOOL;
END_VAR
VAR_INPUT CONSTANT
  Val              : FB_BA_BV_Op;
END_VAR

FB_BA_BV_Op_Val 3: Outputs

Name

Type

Description

fPresentValue

REAL

Binary state of the switch.

FB_BA_BV_Op_Val 4: Inputs CONSTANT

Name

Type

Description

Val

FB_BA_BV_Op

Binary value object to represent the switch.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0