Fan1Speed ​​(FB)

FUNCTION_BLOCK Fan1Speed

Short Description

Control of a single-stage fan
Additional functions: air deficiency monitoring, operation monitoring, repair switch, manual override, status display
Typical application: Control of a room exhaust fan

Portrayal

../_images/Fan1Speed_FB.png

Interfaces

Inputs

Name

Datatype

Range

Init-Value

Function

XEn

BOOL    

Requirement of the fan

xFb BOOL    

Operating message of the fan

xPFb BOOL    

Report of the air shortage situation

xMSwitch BOOL    

Message from the repair switch

xAlarmIn BOOL    

Fault message of the fan

eAOO HVACTYPES.eManBin HVACTYPES.eManBin.Auto, HVACTYPES.eManBin.ManOff, HVACTYPES.eManBin.ManOn HVACTYPES.eManBin.Auto

Operating mode of manual override - hardware

xQuit BOOL   FALSE

Resetting the fault messages (monitoring of operation, air-shortage monitoring)

outputs

Name

Datatype

Range

Init-Value

Function

xHB BOOL    

Release - fan after manual override

xAB BOOL    

Release - fan before manual override

xAlarmFb BOOL    

Fault message of the operation monitoring

xAlarmPFb BOOL    

Fault message of the air deficiency monitoring

dtLastFb DATE_AND_TIME    

Date / time of the last operation of the fan

udiOperatingHours UDINT    

Operating hours of the circulation pump

udiCountFb UDINT    

Number of activations of the circulating pump

xAlarm BOOL    

collective fault message

sAlarm STRING    

Message texts for faults

sStatus STRING    

Message texts for the operating status

Setpoints / parameters

Name

Datatype

Range

Init-Value

Function

udiPFbControlTime UDINT 1 bis 3600s 30s

Message delay of the air deficiency monitoring

xAlarmControl BOOL   FALSE

Influence of xAlarm on xAB

udiFbControlTime UDINT 0 ... 300s 60s

Message delay of the operation monitoring

xFbControl BOOL   TRUE

Enabling / disabling operation monitoring

eManModeB eMANBIN eMANBIN.Auto, eMANBIN.ManOff, eMANBIN.ManOn eMANBIN.Auto

Operating mode of manual override for the digital output xHB

Functional Description

General

This function block controls a single-stage fan.
Essentially the following function blocks are used:

AirShortage

ManBin

OperatingHours

Release - fan before manual override xAB

The release - fan before manual override xAB is influenced by the request of the fan xEn, the collective fault message xAlarm ,
the message of the repair switch xMSwitch, the parameter xAlarmControl and the air deficiency monitoring.

The release - fan before manual override xAB is active (= TRUE), if the following conditions exist simultaneously:

case.

xEn = TRUE (request active)
xAlarm = FALSE (collective fault message not active)
xMSwitch = TRUE (motor protection switch not tripped)
xAlarmControl = FALSE (collective fault message and air deficiency monitoring not taken into account)

Case 2:

xEn = TRUE (request active)
xAlarm = FALSE (collective fault message not active)
xMSwitch = TRUE (motor protection switch not tripped)
xAlarmControl = TRUE (collective error message and air deficiency monitoring considered)
Air-shortage = FALSE (air-shortage not active)

In all other situations, the release - fan before manual override xAB is not active (= FALSE).

Release - fan after manual override xHB

The release - fan before manual override xHB corresponds to the release - fan before manual override xAB,
additionally extended by a manual override module.
xAB eManModeB xHB

Note

FALSE eMANBIN.Auto FALSE

Manual override module in automatic operation

TRUE eMANBIN.Auto TRUE

Manual override module in automatic operation

X eMANBIN.ManOn TRUE

Manual override module in manual operation On

X eMANBIN.ManOff FALSE

Manual override module in manual operation Off

Legend: X = any

Message from the maintenance switch xMSwitch

xMSwitch = TRUE: Maintenance switch was not triggered (normal state)
xMSwitch = FALSE: Maintenance switch was triggered (error state)

Operating hours and power-on operations

The number of operating hours and the switch-on processes are recorded (= counting process active) if the operating message
of the fan xFb is active and at the same time the collective fault message xAlarm is not active (= FALSE).
The results are available at the counter outputs udiOperatingHours and udiCountFb.

Date / time of the last operation of the fan dtLastFb

At the output dtLastFb the current date / time is available during the counting process.
On the output dtLastFb outside the counting process, the date / time is available at the end of the last counting process.
At the output dtLastFb, the initialization value DT # 1970-1-1-0.0.0 is shown before the first counting process.

Operation monitoring

The operation monitoring can be enabled by the setpoint / parameter xFbControl (= TRUE) or disabled (= FALSE).

If monitoring is disabled, the fault message of the operation monitoring xAlarmFb is always disabled (= FALSE).
If monitoring is enabled, the fault message of the operation monitoring xAlarmFb is activated (= TRUE) if
at the same time during a minimum period of time udiFbControlTime the following conditions are given:

xHB and xFb = unequal (enable state and operating state do not match)
eAOO = HVACTYPES.eManBin.Auto (manual override - hardware in automatic mode)
xFbControl = TRUE ( Betriebsüberwachung ist freigegeben )

The fault message of the operation monitoring xAlarmFb is reset (= FALSE), if at least one of the following
conditions is met:

eAOO = HVACTYPES.eManBin.Auto (downshift into automatic mode of manual override - hardware)
xQuit = TRUE (resetting the fault messages is active)
xFbControl = FALSE (operation monitoring disabled)

Air-shortage monitoring

It serves to detect a air-shortage by evaluating the signals at the inputs
Notification of the air shortage situation * xPFb * and the operating message of the fan xFb.

The output - Fault message xAlarmPFb is activated (xAlarmPFb = TRUE) if conditions 1 and 2 below are fulfilled at the same time.

Condition 1: The input for the differential pressure switch xPFb is permanently in the state FALSE (= air-shortage situation) at least during the waiting time udiPFbControlTime.

Condition 2: The operating message for the fan xFb is permanently in the TRUE state (= fan in operation) at least during the waiting time udiPFControlTime.


The output - Fault message xAlarmPFb is deactivated in the following cases (xAlarmPFb = FALSE):

Case 1: Conditions 1 and / or 2 are not fulfilled and the resetting of the fault message xQuit is active (= TRUE).

fault display

If required, the following fault texts are output at the sAlarm output (1 = highest priority)

1:

‘Fan Fault Hardware’ (xAlarmIn = TRUE)

2:

‘Fan fault operation monitoring’ (xAlarmFb = TRUE)

3:

Fan fault air-shortage (air-shortage fault = TRUE)

4:

‘Fan fault meintenance switch’ (xMSwitch = FALSE)

5:

‘’ (no fault active)

Collective fault message xAlarm

The collective fault message is activated (= TRUE) if at least one of the following conditions is fulfilled.

xAlarmIn = TRUE (fault message of the fan is active)
xAlarmFB = TRUE (error from the operation monitoring)
Air-shortage= TRUE (error from the air-shortage monitoring)
xMSwitch = FALSE (maintenance switch was triggered)

In all other cases, the group fault is not active (= FALSE).

Status display

If required, the following status texts are output on the sStatus outpu(1 = highest priority)

1:

‘Content of sAlarm‘ (sAlarm not equal to ‘’)

2:

‘On via automatic’ (eAOO = HVACTYPES.eManBin.Auto and eManModeB = eMANBIN.Auto and xFb = TRUE)

3:

‘Off via automatic’ (* eAOO * = HVACTYPES.eManBin.Auto and eManModeB = eMANBIN.Auto and xFb = FALSE)

4:

‘On via manual Software’ (* eAOO * = HVACTYPES.eManBin.Auto and eManModeB not equal to eMANBIN.Auto and xFb = TRUE)

5:

‘Off via manual Software’ (eAOO = HVACTYPES.eManBin.Auto and eManModeB not equal to eMANBIN.Auto and xFb = FALSE

6:

‘On via manual hardware’ (eAOO = not equal to HVACTYPES.eManBin.Auto and xFb = TRUE)

7:

‘Off via manual hardware’ (eAOO = not equal to HVACTYPES.eManBin.Auto and xFb = FALSE)

Visualization




Information

Element

Authors

Date

Version

Notes

Function

Alexander Halter 10.2017 1.0

Initial-version

Programming

Adam Bartod 10.2017 1.0

Initial-version

Test Alexander Halter 10.2017 1.0

Initial-version

Documentation

Jochen Reu 11.2017 1.0

Initial-version

Codesys

InOut:
Scope Name Type Initial Comment
Input xEn BOOL  

Requirement of the fan

xFb BOOL  

Operating message of the fan

xPFb BOOL  

Report of the air shortage situation

xMSwitch BOOL  

Message from the repair switch

xAlarmIn BOOL  

Fault message of the fan

eAOO eManBin HVACTYPES.eManBin.Auto

Operating mode of manual override - hardware

xQuit BOOL FALSE

Resetting the fault messages (monitoring of operation, air-shortage monitoring)

Output xHB BOOL  

Release - fan after manual override

xAB BOOL  

Release - fan before manual override

xAlarmFb BOOL  

Fault message of the operation monitoring

xAlarmPFb BOOL  

Fault message of the air deficiency monitoring

dtLastFb DT  

Date / time of the last operation of the fan

udiOperatingHours UDINT  

Operating hours of the circulation pump

udiCountFb UDINT  

Number of activations of the fan

xAlarm BOOL  

collective fault

sAlarm STRING  

Message texts for faults

sStatus STRING  

Message texts for the operating status

Input udiPFbControlTime UDINT 30

Message delay of the air deficiency monitoring

xAlarmControl BOOL FALSE

Influence of xAlarm on xAB

udiFbControlTime UDINT 60

Message delay of the operation monitoring

xFbControl BOOL TRUE

Enabling / disabling operation monitoring

eManModeB eMANBIN eMANBIN.Auto

Operating mode of manual override for the digital output xHB