# BD\_SENSORS\_DCT\_531

## `BD_SENSORS_DCT_531` (FB)

FUNCTION\_BLOCK BD\_SENSORS\_DCT\_531

InOut:

| Scope       | Name                    | Type               | Initial    | Comment                                                                                                                                                                   |
| ----------- | ----------------------- | ------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`             | TRUE       | Enable / disable communication ( TRUE = enabled )                                                                                                                         |
| Input       | `byUnitId`              | `BYTE`             | 0          | Address of the device                                                                                                                                                     |
| Input       | `xUpdateActual`         | `BOOL`             | FALSE      | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                                 |
| Input       | `xUpdateInfo`           | `BOOL`             | FALSE      | <p>Update of device information (on every<br>rising edge)</p>                                                                                                             |
| Inout       | `ModbusClient`          | `ModbusClientBase` |            | Client of the device                                                                                                                                                      |
| Output      | `rPressureUnit`         | `REAL`             |            | Current pressure actual value in the unit of measure                                                                                                                      |
| Output      | `rPressureMinUnit`      | `REAL`             |            | <p>Minimum value - pressure actual value in the unit of measure (<br>measurement value memory )</p>                                                                       |
| Output      | `rPressureMaxUnit`      | `REAL`             |            | <p>Maximum value - pressure actual value in the unit of measure (<br>measurement value memory )</p>                                                                       |
| Output      | `rPressureRangeMinUnit` | `REAL`             |            | Minimum value - measuring range in the unit of measure                                                                                                                    |
| Output      | `rPressureRangeMaxUnit` | `REAL`             |            | Maximum value - measuring range in the unit of measure                                                                                                                    |
| Output      | `sUnit`                 | `STRING`           |            | Unit of measure                                                                                                                                                           |
| Output      | `xSensorOffsetInDevice` | `BOOL`             |            | <p>Indicator whether the calibration of the sensors must be<br>performed in the device (TRUE = calibration in device required, FALSE = calibration in<br>FB required)</p> |
| Output      | `dwSerialNum`           | `DWORD`            |            | Device serial number                                                                                                                                                      |
| Output      | `xAlarm`                | `BOOL`             | FALSE      | General fault ( TRUE = fault )                                                                                                                                            |
| Output      | `xAlarmCom`             | `BOOL`             | FALSE      | General fault - communication ( TRUE = fault )                                                                                                                            |
| Output      | `eErrorCodeCom`         | ModbusErrorCode    |            | Error code - communication ( 0 = no error )                                                                                                                               |
| Output      | `xBusy`                 | `BOOL`             |            | Communication indicator ( TRUE = communication )                                                                                                                          |
| Input Const | `rPressureOffset`       | `REAL`             | 0.0        | <p>Constant measurement offset for the transmitted pressure -<br>actual value</p>                                                                                         |
| Input Const | `diAdrOffset`           | `DINT`             | 0          | <p>Offset for calculating Modbus addresses (from the Modbus<br>registers) (permissible range: -1, 0, +1)</p>                                                              |
| Input Const | `tTimeUpdateInfo`       | `TIME`             | TIME#0ms   | <p>Update interval for the processes influenced by the input<br>‘xUpdateInfo’</p>                                                                                         |
| Input Const | `tTimeUpdateActual`     | `TIME`             | TIME#3s0ms | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>                                                                                          |
