Wasn't sure the best place to post this Programmatic Timer/Delay question.
I need to create a Timer whose 'time' will change programmatically. I am having trouble coding this in RSLogix/Studio 5000.
I need to delay a little more every time 1 Product passes through up to a certain count then reset and start over.
Basically during a conveyor transition, via a pop=up conveyor, I don't want the product in the same place every time. I want each successive product to be in a little bit different spot, call it the Conveyor Land Point. The product will land a little further each product, then start back at the first land point
I have no code to share as all attempts were FAILs Inputs:
> Product Count (Count up or down counter)
> Product Count Cycle (Number, constant, set able, currently = 4)
> Delay Time Sequence Interval (Number, constant, set able, currently = 0.25 seconds) Outputs:
A sequencing delay, based on Product Count
> Delay Sequence: 1st delay 1 second. 2nd delay 2 seconds, ... up to Product Count Cycle (4) then reset back to 1. Program: (As I was thinking)
Set Product Count Cycle, Product Count Cycle = 4 (May change could be 3,4,5, or 6) (Might be hard code, might be an HMI input)
Set Delay Time Sequence = 0.25 seconds (May change could be 0.5, 0.75, 1.0 etc.) (Might be hard code, might be an HMI input)
Line start, Product Count at one (1)
Delay = Delay Time Sequence Interval * Product Count Cycle * Product Count
Product Count increments via PE
Hopefully I have not 'run' at the mouth, wanted to give as much info upfront I included a picture
Any thoughts, help would be great. thanks,