# KP\_MD15\_MOD\_N\_HE\_FULL

## `KP_MD15_MOD_N_HE_FULL` (FB)

FUNCTION\_BLOCK KP\_MD15\_MOD\_N\_HE\_FULL

InOut:

| Scope       | Name                | Type                                  | Initial                                             | Comment                                                                                                                                                                                                                                                                                                                                                        |
| ----------- | ------------------- | ------------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`               | `BOOL`                                | TRUE                                                | Enable / disable communication ( TRUE = enabled )                                                                                                                                                                                                                                                                                                              |
| Input       | `byUnitId`          | `BYTE`                                | 0                                                   | Device address (1…247, default = factory setting)                                                                                                                                                                                                                                                                                                              |
| Input       | `xUpdateActual`     | `BOOL`                                | FALSE                                               | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                                                                                                                                                                                                                      |
| Input       | `xUpdateInfo`       | `BOOL`                                | FALSE                                               | <p>Update of the information ( on every rising<br>edge )</p>                                                                                                                                                                                                                                                                                                   |
| Input       | `xUpdateSetp`       | `BOOL`                                | FALSE                                               | <p>Update of setpoint values (on every rising edge<br>)</p>                                                                                                                                                                                                                                                                                                    |
| Input       | `xResError`         | `BOOL`                                | FALSE                                               | Reinitialization of the outputs ‘eErrorCodeCom’ and ‘sErrorCodeDev’ to the error-free state (on each rising edge)                                                                                                                                                                                                                                              |
| Input       | `rSetpPos`          | `REAL`                                | 0.0                                                 | Setpoint - position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                             |
| Inout       | `ModbusClient`      | `ModbusClientBase`                    |                                                     | Client of the device                                                                                                                                                                                                                                                                                                                                           |
| Output      | `sSerialNumber`     | `STRING`                              |                                                     | Device serial number                                                                                                                                                                                                                                                                                                                                           |
| Output      | `wFirmwareVer`      | `WORD`                                |                                                     | Firmware version of the device                                                                                                                                                                                                                                                                                                                                 |
| Output      | `wHardwareVer`      | `WORD`                                |                                                     | Hardware version of the device                                                                                                                                                                                                                                                                                                                                 |
| Output      | `rSetpPositionFb`   | `REAL`                                |                                                     | Setpoint - position in % (0.0 - 100.0 %) (0.0% = spindle extended) — feedback                                                                                                                                                                                                                                                                                  |
| Output      | `rPosition`         | `REAL`                                |                                                     | Current position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                                |
| Output      | `eCommandFb`        | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE   |                                                     | Current drive status — feedback                                                                                                                                                                                                                                                                                                                                |
| Output      | `eOpModeFb`         | KP\_MD15\_MOD\_N\_HE\_OP\_MODE        |                                                     | Current operating mode of the drive — feedback                                                                                                                                                                                                                                                                                                                 |
| 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      | `sErrorCodeDev`     | `STRING`                              |                                                     | String with the numbers of the active device errors (bit 0 = number 1, bit 1 = number 2, etc.)                                                                                                                                                                                                                                                                 |
| Output      | `xBusy`             | `BOOL`                                |                                                     | Communication indicator ( TRUE = communication )                                                                                                                                                                                                                                                                                                               |
| Input Const | `rMaxPos`           | `REAL`                                | 100.0                                               | Current absolute maximum position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                               |
| Input Const | `rMinPos`           | `REAL`                                | 0.0                                                 | Current absolute minimum position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                               |
| Input Const | `eOpMode`           | KP\_MD15\_MOD\_N\_HE\_OP\_MODE        | KP\_MD15\_MOD\_N\_HE\_OP\_MODE.SETPOINT             | <p>Current operating mode<br>0 = Control by setpoint<br>1 = Open<br>2 = Closed<br>3 = Parameter ‘rMinPos’<br>5 = Parameter ‘rMaxPos’<br>6 = Room temperature control loop</p>                                                                                                                                                                                  |
| Input Const | `rBusFailPos`       | `REAL`                                | 100.0                                               | Current position in % (0.0 - 100.0 %) (0.0% = spindle extended) in case of a bus failure (120 s)                                                                                                                                                                                                                                                               |
| Input Const | `eBusFailMode`      | KP\_MD15\_MOD\_N\_HE\_BUS\_FAIL\_MODE | KP\_MD15\_MOD\_N\_HE\_BUS\_FAIL\_MODE.NO\_DETECTION | <p>Current operating mode in case of a bus failure<br>0 = no monitoring<br>1 = Closed after 120s without communication<br>2 = Open after 120s without communication<br>3 = Parameter ‘rBusFailPos’ after 120s without communication</p>                                                                                                                        |
| Input Const | `eCommand`          | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE   | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE.NORMAL\_MODE    | <p>Current drive status<br>0 = Normal operation<br>1 = Adaption / Initialization<br>2 = Test run = Manual flushing function (one-time full opening)<br>3 = Synchronization = Manual synchronization of the end position<br>4 = Reset errors = reset all errors in register 318<br>5 = Baud rate change = adoption of the parameters in registers 105 - 107</p> |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                | TIME#45s0ms                                         | <p>Update interval for operations influenced by the input<br>'xUpdateSetp'</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>                                                                                                                                                                                                                                                                               |
