I’m working with an Opto Groov controller with a Digital Input with Quadrature module attached to it. I have the feature set to Counter and would like to be able to Set the value of that counter via the built-in groovManage API but when I look under the Digital section, I see there’s a method for clearing the feature value which will set it to 0 but I don’t see anywhere I can set it to an actual specified value. Is this possible or do I need to use something else?
I’m wondering what the end goal is here… .Lets just say you can do it… Lets say you can set the the counter to be 100 via the API, then what?
What code is going to check if the encoder has sent 100 pulses or 102?
The reason you cant set the counter value via the API is that there is no point.
Nothing in the API or the digital input module can do the 'if this then that' when the count is reached.
If you are using Python, then that code can get the current count and do the ‘compare and control’ logic. Same with Node-RED. Same in PAC Control. Same in CODESYS.
In all cases the code base knows what count its trying to control to, not the digital input module.
I guess that brings me back to the original question. Can you share what the code is trying to do to control the device that is generating the movement that the quad module is counting?