MP_JR_Actuator_Configuration

MP_JR_Actuator_Configuration 1:

This function block is used to configure the rotary actuators for butterfly valves JR. Further information can be found at 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. bError is used to indicate an error in communication with the actuator. The type of the error can be read with iErrorId.

MP_JR_Actuator_Configuration 2: Inputs

VAR_INPUT
  MP_Address                   : USINT := 1;
  bStart                       : BOOL;
  bRead_Write                  : BOOL;
  strDataKL6771                : DataKL6771;
  nSensor1Type_Write           : E_MP_EV_V4_Sensor1Type;
  nSensor2Type_Write           : E_MP_EV_V4_Sensor1Type;
  nSensor1PassiveType_Write    : E_MP_EV_V4_Sensor1PassiveType;
  nSensor2PassiveType_Write    : E_MP_EV_V4_Sensor1PassiveType;
  nBusFailAction_Write         : E_MP_EV_V4_BusFailAction;
  bSetpointSource_Write        : BOOL;
  nCommunicationWatchdog_Write : UINT := 120;
  rMaximumLimit_Write          : LREAL;
END_VAR

Name

Type

Description

MP_Address

USINT

MP-Bus address of the slave.

bStart

BOOL

A positive edge starts the function block.

bRead_Write

BOOL

If FALSE then READ only; if TRUE then READ and WRITE.

strDataKL6771

DataKL6771

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

nSensor1Type_Write

E_MP_EV_V4_Sensor1Type

Sensor 1 Type

nSensor2Type_Write

E_MP_EV_V4_Sensor1Type

Sensor 2 Type

nSensor1PassiveType_Write

E_MP_EV_V4_Sensor1PassiveType

Only available if nSensor1Type_Write <> MPBus_EV_SensorPassive_None.

nSensor2PassiveType_Write

E_MP_EV_V4_Sensor1PassiveType

Only available if nSensor2Type_Write <> MPBus_EV_SensorPassive_None.

nBusFailAction_Write

E_MP_EV_V4_BusFailAction

Bus failure action.

bSetpointSource_Write

BOOL

TRUE = bus; FALSE = analog

nCommunicationWatchdog_Write

UINT

Communication monitoring in s (5...3600).

rMaximumLimit_Write

LREAL

Maximum limit in % (30..100).

MP_JR_Actuator_Configuration 3: Outputs

VAR_OUTPUT
  bBusy                  : BOOL;
  bError                 : BOOL;
  iErrorId               : MP_Error;
  nBusFailAction         : E_MP_EV_V4_BusFailAction;
  nCommunicationWatchdog : UINT;
  bSetpointSource        : BOOL;
  rMaximumLimit          : LREAL;
  nSensor1Type           : E_MP_EV_V4_Sensor1Type;
  nSensor2Type           : E_MP_EV_V4_Sensor1Type;
  nSensor1PassiveType    : E_MP_EV_V4_Sensor1PassiveType;
  nSensor2PassiveType    : E_MP_EV_V4_Sensor1PassiveType;
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.

nBusFailAction

E_MP_EV_V4_BusFailAction

Bus failure action.

nCommunicationWatchdog

UINT

Communication monitoring in sec (5...3600).

bSetpointSource

BOOL

TRUE = bus; FALSE = analog

rMaximumLimit

LREAL

Maximum limit in s (30..100).

nSensor1Type

E_MP_EV_V4_Sensor1Type

Sensor 1 Type

nSensor2Type

E_MP_EV_V4_Sensor1Type

Sensor 2 Type

nSensor1PassiveType

E_MP_EV_V4_Sensor1PassiveType

Only available if nSensor1Type_Write <> MPBus_EV_SensorPassive_None.

nSensor2PassiveType

E_MP_EV_V4_Sensor1Type

Only available if nSensor2Type_Write <> MPBus_EV_SensorPassive_None.

Prerequisites

Development Environment

PLC library to include

TwinCAT from v3.1.4024.66

Tc2_MPBus from 3.7.1.0