MP_EV

MP_EV 1:

This function block is used to control a control ball valve of series P6..W..EV-BAC. For more information please visit 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_EV 2: Inputs

VAR_INPUT
  MP_Address       : USINT := 1;
  bStart           : BOOL := TRUE;
  strDataKL6771    : DataKL6771;
  TMpolling        : TIME := t#10s;
  nOverrideControl : E_MPBus_Override := MPBus_Override_Auto;
  nRelSetpoint     : INT;
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.

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.

nOverrideControl

E_MPBus_Override

nOverrideControl: The relative setpoint nRelSetpoint is ignored in override mode. Overriding is disabled if the command is not repeated within 120 minutes.

nRelSetpoint

INT

The setpoint is interpreted either as position setpoint or as advance setpoint.

MP_EV 3: Outputs

VAR_OUTPUT
  bBusy                         : BOOL;
  bError                        : BOOL;
  iErrorId                      : MP_Error;
  nAbsPos                       : INT;
  rT1_SI                        : REAL;
  rT2_SI                        : REAL;
  rDELTA_T                      : REAL;
  rP_SI                         : REAL;
  nE_COOLING_SI                 : DINT;
  nE_HEATING_SI                 : DINT;
  nRelFlow                      : INT;
  rAbsFlow_SI                   : REAL;
  nRelPos                       : INT;
  nRelSetPointRead              : INT;
  bErrorStateT1                 : BOOL;
  bErrorStateT2                 : BOOL;
  bErrorStateFlowSensorErr      : BOOL;
  bErrorStateMechanicalOverload : BOOL;
  st_StateEV                    : St_StateEV;
  bPositionSetByHand            : BOOL;
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.

nAbsPos

INT

Absolute position in °

rT1_SI

REAL

Temperature 1 (remote) in °C

rT2_SI

REAL

Temperature 2 (embedded) in °C

rDELTA_T

REAL

Delta temperature in °C

rP_SI

REAL

Energy in kW

nE_COOLING_SI

DINT

Cooling energy in kWh

nE_HEATING_SI

DINT

Heating energy in kWh

nRelFlow

INT

Relative flow rate in %

rAbsFlow_SI

REAL

Absolute flow rate in l/min

nRelPos

INT

Relative position in %

nRelSetPointRead

INT

The setpoint is interpreted either as position setpoint or as advance setpoint (relative to Vmax) in %.

bErrorStateT1

BOOL

Error temperature sensor T1

bErrorStateT2

BOOL

Error temperature sensor T2.

bErrorStateFlowSensorErr

BOOL

Flow sensor is faulty.

bErrorStateMechanicalOverload

BOOL

Mechanical overload detected.

st_StateEV

St_StateEV

Only devices from 27 March 2014

bPositionSetByHand

BOOL

The actuator position was changed manually.

Requirements

Development environment

required TC3 PLC library

TwinCAT from v3.1.4020.14

Tc2_MPBus from 3.3.5.0