FB_BA_BV_ErrorState

FB_BA_BV_ErrorState 1:

The template is an error state message within a template at system 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 an "error".

FB_BA_BV_ErrorState 2:

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

Block diagram

FB_BA_BV_ErrorState 3:

Syntax

FUNCTION_BLOCK FB_BA_BV_ErrorState EXTENDS FB_BA_View
VAR_INPUT
  bValPgm       : BOOL;
END_VAR
VAR_INPUT CONSTANT
  ErrorState    : FB_BA_BV;
END_VAR
VAR_OUTPUT
  bBV_Event     : BOOL;
END_VAR

FB_BA_BV_ErrorState 4: VAR_INPUT CONSTANT

Name

Type

Description

bValPgm

BOOL

(Error) input from the program.

FB_BA_BV_ErrorState 5: VAR_INPUT CONSTANT

Name

Type

Description

ErrorState

FB_BA_BV

Binary value object for displaying the error message.

FB_BA_BV_ErrorState 6: Outputs

Name

Type

Description

bBVEvent

BOOL

Binary state of the message.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.56

TF8040 | TwinCAT Building Automation from V5.8.0.0