MP_Smoker
This function block is used to control and monitor a fire damper.
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, maximum 30 s. bError is used to indicate an error in communication with the drive. The type of the error can be read with iErrorID.
A rising edge at bReset clears any pending error messages from the drive. A telegram is thus sent to the drive that acknowledges the errors in the drive.
If they persist, they remain set. This applies to all bErr_* error bits.
bOpen_Close is used to open or close the fire damper. TRUE causes the fire damper to open, while FALSE closes it. bOpen indicates that the damper is open, bClosed indicates that it is closed. If both bits are FALSE, the drive is currently opening or closing.
A rising edge at bTest initiates a test run on the fire damper. Errors that have been set can be cleared with this if they are no longer present.
Inputs
VAR_INPUT
MP_Address : USINT := 1;
bStart : BOOL := TRUE;
bTest : BOOL;
bOpen_Close : BOOL;
bReset : BOOL;
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. |
bTest | BOOL | A positive edge starts the test run at a fire damper. |
bOpen_Close | BOOL | TRUE opens a damper, while FALSE closes a damper. |
bReset | BOOL | A positive edge resets the actuator's error messages. |
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;
bError : BOOL;
iErrorId : MP_Error;
bOpen : BOOL;
bClosed : BOOL;
bErr_MecTrv : BOOL;
bErr_MecOvld : BOOL;
bErr_EmFlt : BOOL;
bErr_DmpTrv : BOOL;
bErr_DctAlm : BOOL;
bErr_SmAlm : BOOL;
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 | This output outputs an error code in the event of an error. bError goes TRUE at the same time. | |
bOpen | BOOL | Fire damper is open. |
bClosed: | BOOL | Fire damper is closed. |
bErr_MecTrv | BOOL | Actuator error, "Positioning angle exceeded"; the actuator has passed more than 10° beyond the adaptation position. |
bErr_MecOvld | BOOL | Actuator error, "Overload"; the set position could not be reached. |
bErr_EmFlt | BOOL | Actuator error, "Safety-relevant error"; ambient temperature above 72 °C or motor temperature above 85 °C. Error can only be reset at the factory. |
bErr_DmpTrv | BOOL | Actuator error "Damper test error" is canceled if the test run is OK. |
bErr_DctAlm | BOOL | Actuator error, "Channel temperature too high"; the actuator is swinging backwards and forwards. |
bErr_SmAlm | BOOL | Actuator error, "Smoke alarm" |
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_MPBus from 3.3.5.0 |