Search the Community
Showing results for tags 'increment'.
Found 2 results
I am looking for some sort of rotary input device which could be used for fine adjustment. Ideally it would have to two output pins, if turned clockwise it would send pulses on one of the pins and when turned counterclockwise it would sent pulses on the other pin. These could be connected to two inputs on PLC and a value in a given variable could be incremented and decremented depending on the direction of rotation. Almost like using potentiometer with analog signal. I guess if I can not find anything I could use incremental encoder and look at the phase of the output to decide which way it is being turned but hopefully simpler and maybe more cost effective solution is out there? Thanks.
I want to build a logic in ladder diagram in RSLogix 5000 v16/v17 where an analog output is intially set to 10%. Two analog inputs are continuously being read and being compared to some respective threshold values, and if any of these two inputs are less than their respective threshold values, the PLC has to increment the analog output by 2% every 5 seconds. The effect of the analog output increment is reflected on this two analog inputs. If both the inputs reached their respective threshold values, turn on an LED lamp. Let me make it simple to understand: Let A = analog input1 B = analog input 2, C = analog output initially C = 10 after 5 seconds if A < 22 OR B < 36, then increment C by 2% if A < 22, B = 36, then increment C by 2% if A = 22, B < 36, then increment C by 2% and if A = 22 or greater and B = 36 or greater, turn on LED lamp do this (increase C by 2 %) every 5 seconds until both the inputs are equal or greater than their threshold values, i.e. A = 22, B = 36. The analog output must be set at increased value until next increment is given I've tried this using timer, timer done bit, timing bit, enable bit all, but did not success. The PLC doesn't increment after 1st increment, my logic is faulty. Any help would be appreciated. Thanks :)