MP_Window

MP_Window 1:

This function block is used to control and monitor a window ventilation system (FLS).

MP_Address is used to specify the MP-Bus device with which the function block is to communicate. bStart activates communication with the MP-Bus device. bBusy indicates that the block is active. If bStart remains TRUE, the device is addressed cyclically with a period specified by the time in TMPolling. The time should be set longer than 1 second. bError is used to indicate an error in communication with the FLS. The type of the error can be read with iErrorId.

ManuelMode can be used to activate or deactivate manual operation. The type of ventilation can be specified through WindowSettings.

VAR_INPUT

MP_Address         : USINT := 1;
bStart             : BOOL;
WindowSettings     : Data_Window;
ManuelMode         : BOOL;
strDataKL6771      : DataKL6771;
TMpolling          : TIME := t#10s;

MP_Address: MP-Bus address of the slave.

bStart: a positive edge starts the function block. If this remains continuously TRUE, the function block will be activated cyclically with a period specified by the time in TMPolling.

WindowSettings: nominal ventilation settings (see Data_Window).

ManuelMode: FALSE: manual operation allowed. TRUE: manual operation disabled.

strDataKL6771: the data structure with which the KL6771 function block must be linked (see DataKL6771).

TMpolling: the time for which the function block should address the actuator. Default 10 s, minimum time 1 s.

VAR_OUTPUT

bBusy              : BOOL;
bError             : BOOL;
iErrorId           : MP_Error;
WindowState        : Data_Window;
Window_Mech_Error  : BOOL;
Memory_Error       : BOOL;

bBusy: This bit is set for as long as the block is active.

bError: The output becomes TRUE as soon as an error occurs. The error is described via the variable iErrorId.

iErrorId: The output issues an error code when an error occurs (see MP_ERROR). Simultaneously bError is TRUE.

WindowState: Current value of the parameters (see Data_Window).

Window_Mech_Error: The window or drive is blocked.

Memory_Error: The drive has a memory error. Reprogram or replace.