BAC_Cont4Stp_01

Functional description

The template determines the resulting switching stages of a multi-level unit, depending on the input signal.
Four switch-on thresholds and a hysteresis can be parameterized.

Interface

BAC_Cont4Stp_01 1:

Diagram 01

Direction of action Cont4Stp_bActn = FALSE = reverse = heating

BAC_Cont4Stp_01 2:

DspStp

Cont4Stp_udiStp

SwiOn

SwiOff

Cont4Stp_udiRemTiDylOn

Cont4Stp_udiRemTiDylOff

bQ01

bQ02

bQ03

bQ04

0

0

SwiPnt01

SwiPnt01 - Hys

DlyOn

0

FALSE

FALSE

FALSE

FALSE

1

>= 1

SwiPnt02

SwiPnt01 - Hys

DlyOn

DlyOff

TRUE

FALSE

FALSE

FALSE

2

>= 2

SwiPnt03

SwiPnt02 - Hys

DlyOn

DlyOff

TRUE

TRUE

FALSE

FALSE

3

>= 3

SwiPnt04

SwiPnt03 - Hys

DlyOn

DlyOff

TRUE

TRUE

TRUE

FALSE

4

>= 4

SwiPnt04

SwiPnt04 - Hys

0

DlyOff

TRUE

TRUE

TRUE

TRUE

Diagram 02

Direction of action Cont4Stp_bActn =TRUE = direct = cooling

BAC_Cont4Stp_01 3:

DspStp

Cont4Stp_udiStp

SwiOn

SwiOff

Cont4Stp_udiRemTiDylOn

Cont4Stp_udiRemTiDylOff

bQ01

bQ02

bQ03

bQ04

0

0

SwiPnt01

SwiPnt01 + Hys

DlyOn

0

FALSE

FALSE

FALSE

FALSE

1

>= 1

SwiPnt02

SwiPnt01 +Hys

DlyOn

DlyOff

TRUE

FALSE

FALSE

FALSE

2

>= 2

SwiPnt03

SwiPnt02 + Hys

DlyOn

DlyOff

TRUE

TRUE

FALSE

FALSE

3

>= 3

SwiPnt04

SwiPnt03 + Hys

DlyOn

DlyOff

TRUE

TRUE

TRUE

FALSE

4

4

SwiPnt04

SwiPnt04 + Hys

0

DlyOff

TRUE

TRUE

TRUE

TRUE

Diagram 03

Timing of the switch-on and switch-off delays

At time t1 rX changes from £SwiPnt01 to SwiPnt04

At time t2 rX changes from SwiPnt04 to £SwiPnt01Hys

BAC_Cont4Stp_01 4:

Inputs/outputs

VAR_INPUT

bEn      : BOOL;
rX       : REAL;

bEn: General enable of the function block. If bEn is FALSE, all outputs are set to 0.

rX: Input value, from which the switching state is derived.

VAR_OUTPUT

bQ01       : BOOL;
bQ02       : BOOL;
bQ03       : BOOL;
bQ04       : BOOL;

bQ01: Shows status level 01
TRUE = ON; FALSE = OFF
udiStp >= 1

bQ02: Shows status level 02
TRUE = ON; FALSE = OFF
udiStp >= 2

bQ03: Shows status level 03
TRUE = ON; FALSE = OFF
udiStp >= 3

bQ04: Shows status level 04
TRUE = ON; FALSE = OFF
udiStp >= 4

VAR CONSTANT

PLT_NUM    : BYTE := 1;

PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.

Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have the same plant number!

The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.

Program description

Instance

Type

Task

En

FB_BACnetBV1204

General enable of the function block. If bEn is FALSE, all outputs are set to 0

X

FB_BACnetAVSetpoint

Input value, from which the switching state is derived

Hys

FB_BACnetAVSetpoint

Input absolute value hysteresis

DlyOn

FB_BACnetAVSetpoint

Start-up delay of the stages in seconds

DlyOff

FB_BACnetAVSetpoint

Switch-off delay of the stages in seconds

SwiPnt01

FB_BACnetAVSetpoint

Input switch-on point step 01, internally limited to between 0 and 100 in the template

SwiPnt02

FB_BACnetAVSetpoint

Input switch-on point step 02, internally limited to between 0 and 100 in the template

SwiPnt03

FB_BACnetAVSetpoint

Input switch-on point step 03, internally limited to between 0 and 100 in the template

SwiPnt04

FB_BACnetAVSetpoint

Input switch-on point step 04, internally limited to between 0 and 100 in the template

Cont4Stp

FB_BA_Cont4Stp01

The function block Cont4Stp is the core of the step switch template.

DspStp

FB_BACnetMVDisplay

Display active step

SwiOn

FB_BACnetAVDisplay

Display active switch-on point

SwiOff

FB_BACnetAVDisplay

Display active switch-off point

 

LIMIT, LIMIT, LIMIT, LIMIT

Limitation of the switch-on points step 1 - 4 to 0 - 100

Versionshistorie

Versionsnummer

Bemerkungen

1.0.1

First release