MP_RoomSensor

MP_RoomSensor 1:

This function block is used to read out room sensors of types 22Rxx-19-1 that were produced before May 2022 (as of May 2022, see MP_OperatingUnit).
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.

MP_RoomSensor 2: Inputs

VAR_INPUT
  MP_Address       : USINT := 1;
  bStart           : BOOL;
  bReadDISensor    : BOOL;
  strDataKL6771    : DataKL6771;
  TMpolling        : TIME := t#10s;
END_VAR

Name

Type

Description

MP_Address

USINT

MP-Bus address of the slave.

bStart

BOOL

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.

bReadDISensor

BOOL

If TRUE, the DI sensor is read and the result is available in bDigitalInput.

strDataKL6771

DataKL6771

The data structure with which the KL6771() function block must be linked.

TMpolling

TIME

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

MP_RoomSensor 3: Outputs

VAR_OUTPUT
  bBusy                : BOOL;
  bError               : BOOL;
  iErrorId             : MP_Error;
  rSensTemp            : LREAL;
  rDewPointTemp        : LREAL;
  rHumid               : LREAL;
  uiCo2                : UINT;
  stUnit               : STRING;
  bDigitalInput        : BOOL;
  bSensorError         : BOOL;
  st_SensorType        : STRING;
END_VAR

Name

Type

Description

bBusy

BOOL

This bit is set for as long as the function block is active.

bError

BOOL

This output goes TRUE as soon as an error occurs. This error is described via the iErrorId variable.

iErrorId

MP_ERROR

This output outputs an error code in the event of an error. bError goes TRUE at the same time.

rSensTemp

LREAL

Sensor temperature in °C or °F.

rDewPointTemp

LREAL

Temperature of the calculated dew point in °C or °F.

rHumid

LREAL

Humidity in percent (% 0.01).

uiCo2.

UINT

CO2 content in ppm.

stUnit

STRING

C = °C or F = °F, ? = not read.

bDigitalInput

BOOL

DI sensor read if bReadDISensor is TRUE.

bSensorError

BOOL

One of the sensors has an error.

st_SensorType

STRING

Sensor type. '?' = not read / type / 'unknown' = number unknown.

Requirements

Development environment

required TC3 PLC library

TwinCAT from v3.1.4024.10

Tc2_MPBus from 3.4.12.0