MP_SR_actuator_Process

MP_SR_actuator_Process 1:

This function block is suitable for SR actuators. 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 second. bError is used to indicate an error in communication with the actuator. The type of the error can be read with iErrorId.

MP_SR_actuator_Process 2:

Restrictions

This function is called only if the corresponding “Configuration” function block is not executed.

MP_SR_actuator_Process 3: Inputs

VAR_INPUT
  MP_Address             : USINT := 1;
  bStart                 : BOOL;
  strDataKL6771          : DataKL6771;
  TMpolling              : TIME := t#10s;
  rSetpointRel_Write     : LREAL;
  nOverrideControl_Write : E_MP_SR_OverrideControl;
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.

rSetpointRel_Write

LREAL

Setpoint in % (0…100).

nOverrideControl_Write

E_MP_SR_OverrideControl

Override the setpoint with defined values.

MP_SR_actuator_Process 4: Outputs

VAR_OUTPUT
  bBusy               : BOOL;
  bError              : BOOL;
  iErrorId            : MP_Error;
  strMP_Serial_Number : MP_Serial_Number;
  rSetpointRel        : LREAL;
  rPositionRel        : LREAL;
  rPositionAbs        : LREAL;
  nOverrideControl    : E_MP_SR_OverrideControl;
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.

strMP_Serial_Number

MP_Serial_Number

Structure for the serial number.

rSetpointRel

LREAL

Setpoint in % (0…100).

rPositionRel

LREAL

Relative position with respect to the nominal range, in % (0…100).

rPositionAbs

LREAL

Absolute position refers to the actual position within the mechanical range. Rotation in ° (0…95) or linear in mm (0…600).

nOverrideControl

E_MP_SR_OverrideControl

Setpoint override.

Requirements

Development environment

PLC library to include

TwinCAT from v3.1.4024.77

Tc2_MPBus from 3.8.1.0