FB_BA_ActuatorCmdTLog

FB_BA_ActuatorCmdTLog 1:

The FB_BA_ActuatorCmdTLog template is used to control binary aggregates. It essentially consists of a BO object for controlling an aggregate and the function block PlantLock, which collects all safety-relevant faults.

The switching command of the BO object is recorded by a trend object.

Each template is available in 2 different configurations regarding the connection to the I/O process level, see I/O mapping. This documentation refers to the RAW variant.

FB_BA_ActuatorCmdTLog 2:

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

Block diagram

FB_BA_ActuatorCmdTLog 3:

Syntax

FUNCTION_BLOCK FB_BA_ActuatorCmd EXTENDS FB_BA_View
VAR_OUTPUT
  stCmd                  : ST_BA_Binary;
END_VAR
VAR_OUTPUT
  bCmd                   : BOOL;
  bDst                   : BOOL;
  eActivePrio            : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT
  Cmd                    : FB_BA_BO_Raw;
  TLogCmd                : FB_BA_Trend;
  PlantLock              : FB_BA_PlantLock;
END_VAR
VAR
  bPrioSfty              : BOOL;
  bPrioCrit              : BOOL;
  TrigTLogCmd            : FB_BA_RFTrig;
END_VAR

FB_BA_ActuatorCmdTLog 4: Outputs

Name

Type

Description

stCmd

ST_BA_Binary

The enables and switching values of the priorities are transmitted to the template via the stCmd command structure. The command with the highest priority is output to the binary output object Cmd.

bCmd

BOOL

Current value of the binary output object.

bDst

BOOL

The variable is an evaluation of the lock priorities "Safety" and "Critical" of the project structure and indicates a triggered event.

eActivePrio

E_BA_Priority

Display of the active priority.

FB_BA_ActuatorCmdTLog 5: Inputs CONSTANT

Name

Type

Description

Cmd

FB_BA_BO_Raw

The binary output object is used to output a switching command and transmit it to the I/O level.

TLogCmd

FB_BA_Trend

Trend logging of the control value of the Cmd object.

PlantLock

FB_BA_PlantLock

PlantLock collects all event-capable objects on this and lower levels of the project structure. The events of the objects often signal a relevant malfunction, which requires targeted switching operations to be performed on aggregates or plants.

Variables

Name

Type

Description

bPrioSfty

BOOL

The variable is an evaluation of the "Safety" lock priority of the project structure.

bPrioCrit

BOOL

The variable is an evaluation of the "Critical" lock priority of the project structure.

TrigTLogCmd

FB_BA_RFTrig

The function block generates a pulse from the output signal of the binary output object Cmd when the value changes.