Gal.I Posted July 20, 2012 Report Share Posted July 20, 2012 I'm trying to create a series of pulses with high timing precision (2.5ms accuracy) Using the internal timer function (10ms resolution) I got something to work but the timing of the actual pulses is not what I was hoping for Set Actual 10ms 34-37 20ms 34-55 30ms 51-55 40ms 51-72 50ms 69-72 So the timing is offset by ~20ms and has high jitter in even timer setting (the timer is 10ms resolution) The jitter looks like the pulses are either short by 10ms or off by 10ms but not the correct pulse length Any ideas ? I've changed the ladder a bit and that got me shorter "On" time but still the same issue with even timer setting and the "Off" time does not reach the same low limit (even with the same settting as the "On: time) Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted July 24, 2012 MVP 2014 Report Share Posted July 24, 2012 I would try the 2.509ms Interrupt function. Search "interrupt" in the helpfile. You will never get what you want using the basic scan time of the PLC and the internal timers. You already know the internal timers are liited to 10ms resolution. The jitter you see is almost certinaly due to the scan time, which can be at least 10ms for a simple program. The timer output is only evaluated once per scan. Link to comment Share on other sites More sharing options...
Gal.I Posted July 27, 2012 Author Report Share Posted July 27, 2012 Thanks for the reply. I've tried using the interrupt function (see nets) but the outcome was worst from stability (jitter) viewpoint Did I do something wrong in my nets ? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted July 28, 2012 MVP 2023 Report Share Posted July 28, 2012 You didn't tell us about your hardware configuration, but your output address (O34) indicates that you are trying to get high speed from an output on an expansion I/O module so I'm guessing you have an M91. This will not work. Search the Help for "immediate" and then look at "Immediate: Read Inputs...". You'll see that based on your model number there are system bits you can set to immediately write certain outputs on the main board. Joe T. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now