| cmdWINDOW | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | ||||||
| address | 5 | cmdWINDOW | OFFSET | INPUT | MINTHR | MAXTHR |
| OFFSET - | Reflex vector offset |
| INPUT - | Input parameter |
| MINTHR - | Minimum threshold |
| MAXTHR - | Maximum threshold |
Description:
This command compares an input parameter to a minimum and maximum threshold. There is no reply packet. It generates a raw input based on the result:
OFFSET+0 -- in window ((INPUT < MINTHR) and (INPUT > MAXTHR))
OFFSET+1 -- below minimum (INPUT < MINTHR)
OFFSET+2 -- above maximum (INPUT > MAXTHR)
OFFSET+3 -- none of the above
When MINTHR is less than MAXTHR, the command acts as a dual comparator with hysteresis. There is a null zone between the two thresholds where the result is "none of the above". The "in window" case is not possible. If MINTHR=MAXTHR, an input that equals MINTHR and MAXTHR will be in the null zone.
When MINTHR is greater than MAXTHR, the command acts as a window comparator. The "none of the above" case is not possible.