First off the controls being used are an AB L1 Processor RSLogix 5000 V20, Connected to a PowerFlex 525 drive and an absolute encoder to trigger different outputs. I wanted to see if anyone has any good ideas on how i would compensate for the lag time on an air cylinder as the system gets faster or slower. In the past i have added count positions on the output flag (EX: 15 cycles per minute = position of 60, And at 30 cycles per min = a position of 50). Problem is i have to add and cannot subtract because i may get negative numbers and than the output will for sure not fire. Which means i have to set the system up at full speed then add counts as the system gets slower. Is there any ideas on how i would not have to compensate for many ranges of speeds with lots of math rungs added to my logic?