### ABSROT – Processing data from absolute position sensor

Function Description
The ABSROT function block is intended for processing the data from absolute position sensor on rotary equipment, e.g. a shaft. The absolute sensor has a typical range of 5${}^{\circ }$ to 355${}^{\circ }$ (or -175${}^{\circ }$ to +175${}^{\circ }$) but in some cases it is necessary to control the rotation over a range of more than one revolution. The function block assumes a continuous position signal, therefore the transition from 355${}^{\circ }$ to 5${}^{\circ }$ in the input signal means that one revolution has been completed and the angle is in fact 365${}^{\circ }$.

In the case of long-term unidirectional operation the precision of the estimated position y deteriorates due to the precision of the double data type. For that case the R1 input is available to reset the position y to the base range of the sensor. If the RESR flag is set to $\mathtt{\text{RESR}}=\mathtt{\text{on}}$, the irev revolutions counter is also reset by the R1 input. In all cases it is necessary to reset all accompanying signals (e.g. the sp input of the corresponding controller).

The MPI output indicates that the absolute sensor reading is near to the middle of the range, which may be the appropriate time to reset the block. On the other hand, the OLI output indicates that the sensor reached the so-called dead-angle where it cannot report valid data.

Inputs

 u Signal from the absolute position sensor Double (F64) R1 Block reset Bool

Outputs

 y Position output Double (F64) irev Number of finished revolutions Long (I32) MPI Mid-point indicator Bool OLI Off-limits indicator Bool

Parameters

 lolim Lower limit of the sensor reading  $\odot$-3.14159265 Double (F64) hilim Upper limit of the sensor reading  $\odot$3.14159265 Double(F64) tol Tolerance for the mid-point indicator  $\odot$0.5 Double (F64) hys Hysteresis for the mid-point indicator Double (F64) RESR Flag for resetting the revolutions counter Bool off .. Reset only the estimated position y on ... Reset also the irev revolutions counter

2020 © REX Controls s.r.o., www.rexygen.com