FB_BA_MotMdltExt

FB_BA_MotMdltExt 1:

The template is used to control a speed-controlled motor. It consists essentially of the base class FB_BA_MotMdlt.

The difference to the template FB_BA_MotMdlt is the AV object Sp with the associated MAX selection. A minimum control value for the motor could thus be specified via the Sp object.

FB_BA_MotMdltExt 2:

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

Block diagram

FB_BA_MotMdltExt 3:

Syntax

FUNCTION_BLOCK FB_BA_MotCtlExt EXTENDS FB_BA_MotMdlt
VAR_INPUT CONSTANT
  Sp    : FB_BA_AV_Op;
END_VAR

FB_BA_MotMdltExt 4: Inputs CONSTANT

Name

Type

Description

Sp

FB_BA_AV_Op

The AV object can be used to specify the minimum control value for the motor.

A MAX selection then uses either this setpoint or the value from the input fValPgm of the base class FB_BA_MotMdlt.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.2.1.0