# IMI\_TA\_SLIDER\_160

## `IMI_TA_SLIDER_160` (FB)

FUNCTION\_BLOCK IMI\_TA\_SLIDER\_160

InOut:

| Scope       | Name                    | Type                               | Initial                                            | Comment                                                                                                                                                       |
| ----------- | ----------------------- | ---------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                             | TRUE                                               | Enable / disable of communication ( TRUE = enabled )                                                                                                          |
| Input       | `byUnitId`              | `BYTE`                             | 1                                                  | Address of the device (1…247, default = factory setting)                                                                                                      |
| Input       | `xUpdateActual`         | `BOOL`                             | FALSE                                              | <p>Update of actual values ( on each rising edge<br>)</p>                                                                                                     |
| Input       | `xUpdateSetp`           | `BOOL`                             | FALSE                                              | <p>Update of setpoints ( on each rising edge<br>)</p>                                                                                                         |
| Input       | `xResError`             | `BOOL`                             | FALSE                                              | <p>Reinitialization of the outputs ‘eErrorCodeCom’ and<br>‘xErrorCodeDev’ to the error-free state (on every<br>rising edge)</p>                               |
| Input       | `rSetpPosition`         | `REAL`                             | 0.0                                                | Setpoint - position in % (0.0 - 100.0 %) (Default: 0.0% = spindle extended, configuration via app)                                                            |
| Input       | `xForceCalib`           | `BOOL`                             | FALSE                                              | Triggering of a calibration process (on each rising edge)                                                                                                     |
| Input       | `xRelayState_Mod`       | `BOOL`                             | FALSE                                              | Setting the state of the relay via Modbus (TRUE = activation) (configuration via app)                                                                         |
| Input       | `xInputState_Mod`       | `BOOL`                             | FALSE                                              | Setting the state of the digital input via Modbus (TRUE = active) (configuration via app)                                                                     |
| Inout       | `ModbusClient`          | `ModbusClientBase`                 |                                                    | Client of the device                                                                                                                                          |
| Output      | `rSetpPositionFb`       | `REAL`                             |                                                    | Feedback - setpoint - position in % (0.0 - 100.0 %) (Default: 0.0% = spindle extended, configuration via app)                                                 |
| Output      | `rVolumeFlow`           | `REAL`                             |                                                    | Current volume flow in the selected unit (parameter 'eFlowUnit') (available depending on device type)                                                         |
| Output      | `stSerialNumber`        | `STRING`                           |                                                    | Device serial number                                                                                                                                          |
| Output      | `rPosition`             | `REAL`                             |                                                    | Current position in % (0.0 - 100.0 %) (Default: 0.0% = spindle extended)                                                                                      |
| Output      | `rCalibStroke`          | `REAL`                             |                                                    | Measured total stroke during the calibration process (in micrometers, 1000 micrometers = 1 mm, maximum 6300 micrometers)                                      |
| Output      | `eMotorStatus`          | TA\_SLIDER\_160\_MOTOR\_STATUS     |                                                    | Current status of the drive                                                                                                                                   |
| Output      | `dwSecSinceReset`       | `DWORD`                            |                                                    | Number of seconds since the last restart ( = power return 24VAC/DC )                                                                                          |
| Output      | `xInputState`           | `BOOL`                             |                                                    | Current state of the external binary input                                                                                                                    |
| Output      | `xRelayState`           | `BOOL`                             |                                                    | Current state of the relay                                                                                                                                    |
| Output      | `eCharacteristic`       | TA\_SLIDER\_160\_CHARACTERISTIC    |                                                    | Current characteristic of the control signal (stroke = f(rSetpPosition), configuration via app)                                                               |
| Output      | `eSetpSource`           | TA\_SLIDER\_160\_SETP\_SOURCE      |                                                    | Current source for the setpoint position (configuration via app)                                                                                              |
| Output      | `stValveName`           | `STRING`                           | ‘’                                                 | Name of the valve (configuration via app, readable only via 'xUpdateActual', function to set in the app still missing - as of 30.09.2021)                     |
| Output      | `stObjectName`          | `STRING`                           | ‘’                                                 | Name of the object (configuration via app, readable only via 'xUpdateActual')                                                                                 |
| Output      | `stLocalName`           | `STRING`                           | ‘’                                                 | Location of the valve (configuration via app, readable only via 'xUpdateActual', function to set in the app still missing - as of 30.09.2021)                 |
| Output      | `rTemperature1`         | `REAL`                             |                                                    | Current temperature from sensor 1 in the selected unit (parameter 'eTemperatureUnit') (PT1000)                                                                |
| Output      | `rTemperature2`         | `REAL`                             |                                                    | Current temperature from sensor 2 in the selected unit (parameter 'eTemperatureUnit') (PT1000)                                                                |
| Output      | `xSensorOffsetInDevice` | `BOOL`                             |                                                    | <p>Indicates whether sensor calibration must be performed in the device<br>(TRUE = calibration required in device, FALSE = calibration in<br>FB required)</p> |
| Output      | `xAlarm`                | `BOOL`                             | FALSE                                              | Collective fault ( TRUE = fault )                                                                                                                             |
| Output      | `xAlarmCom`             | `BOOL`                             | FALSE                                              | Collective fault - communication ( TRUE = fault )                                                                                                             |
| Output      | `eErrorCodeCom`         | ModbusErrorCode                    |                                                    | Error code - communication ( 0 = no error )                                                                                                                   |
| Output      | `stErrorCodeDev`        | `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 | `rTemperatur2Offset`    | `REAL`                             | 0.0                                                | Constant measurement offset for the transmitted temperature - actual value 2                                                                                  |
| Input Const | `rTemperatur1Offset`    | `REAL`                             | 0.0                                                | Constant measurement offset for the transmitted temperature - actual value 1                                                                                  |
| Input Const | `eFlowUnit`             | TA\_SLIDER\_160\_FLOW\_UNIT        | TA\_SLIDER\_160\_FLOW\_UNIT.LITER\_PER\_HOUR       | Influence: Outputs: rTemperature1 Unit for the flow measurement values                                                                                        |
| Input Const | `eTemperatureUnit`      | TA\_SLIDER\_160\_TEMPERATURE\_UNIT | TA\_SLIDER\_160\_TEMPERATURE\_UNIT.DEGREE\_CELSIUS | Unit for the temperature measurement values                                                                                                                   |
| Input Const | `tTimeUpdateSetp`       | `TIME`                             | TIME#45s0ms                                        | <p>Update interval for the processes affected by the input<br>‘xUpdateSetp’</p>                                                                               |
| Input Const | `tTimeUpdateActual`     | `TIME`                             | TIME#3s0ms                                         | <p>Update interval for the processes affected by the input<br>‘xUpdateActual’</p>                                                                             |
