@gerritjan1 Hi,
have a look at function block "ABSROT". It might help you solve your task. Just set the lolim and hilim parameters as a range of the counter output.
Let us know if you managed get the desired behaviour.
Cheers,
Tomas
Questions about REXYGEN Studio, REXYGEN HMI Designer, ...
Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?