MP_OperatingUnit

This function block is used to read room sensors of types P-22Rxx-1900x-1. It is compatible with 22Rxx-19-1 room sensors produced as of May 2022 (before May 2022, see MP_RoomSensor).
For more information, see www.belimo.com.
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 function 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 s. bError is used to indicate an error in communication with the actuator. The type of the error can be read with iErrorId.
VAR_INPUT
MP_Address : USINT := 1;
bStart : 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.
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;
bSensorFaultTemp : BOOL;
bSensorFaultHumidity : BOOL;
bSensorFaultCO2 : BOOL;
fSensTemp : LREAL;
fHumid : LREAL;
uiCO2 : UINT;
nAirQualityStatus : E_MP_AirQualityStatus;
bSensorError : BOOL;
fDewPoint : LREAL;
fVentilationStage : LREAL;
nSystemOperationMode : E_MP_SystemOperationMode;
bVentilationStageControlMode : BOOL;
bTempSetpointType : BOOL;
fSetTemp : LREAL;
stSensorType : STRING;
bBusy: this bit is set for as long as the function block is active.
bError: the output becomes TRUE as soon as an error occurs. This error is described via the iErrorId variable.
iErrorId: this output outputs an error code in the event of an error (see MP_ERROR). bError goes TRUE at the same time.
bSensorFaultTemp: temperature sensor has a fault.
bSensorFaultHumidity: humidity sensor has a fault.
bSensorFaultCO2: CO2 sensor has a fault.
fSensTemp: room temperature in °C or °F (0..50 or 32..122).
fHumid: relative humidity in % (0..100).
uiCO2: CO2 value in ppm (0..2000).
nAirQualityStatus: air quality status (see E_MP_AirQualityStatus).
bSensorError: one of the sensors has a fault.
fDewPoint: dew point temperature in °C (-50..50).
fVentilationStage: ventilation stage in % (0..100).
nSystemOperationMode: operation mode of the system (see E_MP_SystemOperationMode).
bVentilationStageControlMode: FALSE = manual; TRUE = automatic.
bTempSetpointType: FALSE = absolute; TRUE = relative.
fSetTemp: bTempSetpointType FALSE = setpoint room temperature in °C; bTempSetpointType TRUE = setpoint relative room temperature in °C.
stSensorType: DSensortyp. '?' = not read; 'unknown' = number unknown.