6/10/2014 11:29 AM | |
Posts: 5225 Rating: (1198) |
Hi there. Is it a action that you wish to delay using an encoder as your "timer"? w |
6/10/2014 1:10 PM | |
Posts: 13 Rating: (3) |
@William B. Same, same but different - as good friend of mine would say. Your example is exactly that I want to do. There are two functions: 1. Marks (pushers) on conveyor are passing before sensor. On each pusher I need to trigger some action but delayed for some time, so I do not need to measure pulse duration. I can reconstruct pushers with pulses with fixed duration some time later (delayed). 2. As you put it, on some other place i need to measure product passing time, and then shift if and reconstruct exactly some time later. If delay is less then product passing time this can be done with TON - TOF pair. But if delay is greater than passing time I need to measure time and then reconstruct it after delay. Problem I proposed is generalization of these two scenarios so I can use one function throughout program. I apologize if something is "lost in translation" as English is not my native language. I hope I can explain problem in enough detail so we can came to good solution. So general problem would be: If I have repetitive pulses of variable duration and fixed period (or to be precise period of which I know minimal time), how I can shift this pulses for time which is constant and known in advance. This delay is fraction of (minimal) period - I do not need to remember more than one time in some buffer, as this is only needed if delay is greater than period. I need pulses to be the same as they come, only delayed. Simple as that |
Last edited by: drgry at: 6/10/2014 1:27 PM |
|
Follow us on