MP_EV_Parameter

MP_EV_Parameter 1:

This function block is used to parameterize drives.

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 drive. The type of the error can be read with iErrorID.

MP_EV_Parameter 2: Inputs

VAR_INPUT
  MP_Address       : USINT := 1;
  bStart           : BOOL;
  strDataKL6771    : DataKL6771;
  dwPassword       : DWORD;
  nControlMode     : E_MPBus_ControlMode := MPBus_ControlMode_Disable;
  nDetaTLimitation : E_MPBus_DeltaTLimitation := MPBus_DeltaTLimitation_Disable;
  rSetPoint        : REAL := 0.0;
  rSpFlow_DeltaT_Si: REAL := 0.0;
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.

dwPassword

DWORD

The actuator password is usually 0x0000.

nControlMode

E_MPBus_ControlMode

Defines the control mode

nDetaTLimitation

E_MPBus_DeltaTLimitation

dT limitation

rSetPoint

REAL

dT limit value.

rSpFlow_DeltaT_Si

REAL

Flow rate at saturation.

MP_EV_Parameter 3: Outputs

VAR_OUTPUT
  bBusy                  : BOOL;
  bError                 : BOOL;
  iErrorId               : MP_Error;
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.

Requirements

Development environment

required TC3 PLC library

TwinCAT from v3.1.4020.32

Tc2_MPBus from 3.4.6.0