DirectSOFT 6, D2-262 plc.
I have an H2-CTRIO2 counting the input from a quadrature encoder and writing to a V-memory location. Along with an HMI writing a preset to another V-memory location. I'm trying to use Comparative Boolean contacts that will compare the number of counts from the encoder to the preset and indicate when the encoder is Equal To Or Greater Than. Everything works unless the count from the encoder goes negative, then the contact flips. For example, if the preset is 6, the contact turns on the output when the encoder reaches 6 or higher. The output turns off when the count drops below 6, but then if the count goes negative the output turns on again. I have attached some screenshots.
What am I missing, and what can I use to compare 2 numbers that will still work with a negative count? Thanks in advance.
-Sarcio