MP_EV
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.
VAR_INPUT
MP_Address : USINT := 1;
bStart : BOOL;
strDataKL6771 : DataKL6771;
TMpolling : TIME := t#10s;
nOverrideControl : E_MPBus_Override := MPBus_Override_Auto;
nRelSetpoint : INT;
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.
nOverrideControl: the relative setpoint nRelSetpoint is ignored in override mode (see E_MPBus_Override). Overriding is disabled if the command is not repeated within 120 minutes.
nRelSetpoint: the set value is interpreted either as position setpoint or as advance setpoint.
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;
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.
nAbsPos: Absolute position in °.
rT1_SI: Temperature 1 (remote) in °C.
rT2_SI: Temperature 2 (embedded) in °C.
rDELTA_T: Delta temperature in °C.
rP_SI: Power in kW.
nE_COOLING_SI: Cooling energy in kWh.
nE_HEATING_SI: Heating energy in kWh.
nRelFlow: Relative flow in %.
rAbsFlow_SI: Absolute flow in l/min.
nRelPos: Relative position in %.
nRelSetPointRead: The setpoint is interpreted either as position setpoint or as flow setpoint (related to Vmax) in %.
bErrorStateT1: Failure temperature sensor T1.
bErrorStateT2: Failure temperature sensor T2.
bErrorStateFlowSensorErr: Failure flow sensor.
bErrorStateMechanicalOverload: Mechanical overload detected.
st_StateEV: Only devices from 27.03.2014 (see St_StateEV).
bPositionSetByHand: The position of the drive has been changed manually.