MPL_DamperLinearActuator
This function block is used to control and monitor a drive of a damper and of a globe valve.
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 drive. The type of the error can be read with iErrorID.
SetPoint is used to adjust the position of the damper from 0..100%. The current position of the drive can be read through ActValue.
Inputs
VAR_INPUT
MP_Address : USINT := 1;
bStart : BOOL;
SetPoint : USINT;
strDataKL6771 : DataKL6771;
TMpolling : TIME := t#10s;
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. |
SetPoint | USINT | 0...100 % set damper position of the actuator. |
strDataKL6771 | 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. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
ActValue : WORD;
iErrorID : MP_ERROR;
bError : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | This bit is set for as long as the function block is active. |
ActValue | WORD | Contains the current position (0...100 %) of the actuator. |
iErrorID | This output outputs an error code in the event of an error. bError goes TRUE at the same time. | |
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the iErrorID variable. |
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_MPBus from 3.3.5.0 |