TMC4AI2 diagnostic doesn't work with customized range
Analog Input Diagnostics of TMC4AI2 are hard coded in the firmware of the cartrigde.
The diagnostics of the Out of range works correctly with the default value of inputs range ONLY
0 - 10000 for 0V -> 10V
4000 - 20000 for 4-20mA
Example:
If we use customized input range as 400 - 2000 for 4-20mA, the diagnostics will show an out of range becuse and the range is less than 4000.
(It will be the same for the over range (Out of range diagnostic) if we use a range >20000)
To avoid bad diagnostic bahavior, we have to keep the default value of the inputs range