Mabrill Posted October 20, 2010 Report Share Posted October 20, 2010 We have a problem with a PTO we use this to control a servomotor, in a bag maker machine, but when we use a sensor to stop it the PTO this take a little time to stop, then the machine stop few centimeters after the signal has been received. And when we increment the frecuency (speed) the distance of stop becomes higher. Somebody have any solution? Quote Link to comment Share on other sites More sharing options...
Emil Posted October 21, 2010 Report Share Posted October 21, 2010 Hi, The result you receive is normal. PLC checks the input at the beginning of the scan and operates PTO/HSO Run bit at the end. In this case you have reaction up to 2 controller's scans. How you can improve the sitation? You can connect the sensor to HSC Input and set this input as HSC Reload with target 0. Then, you need ot define an interrupt subroutine related to this HSC Reload. In this interrupt subroutine (see Help for details) you will Reset PTO/HSO Run bit and will set another one MB/XB. You will divide your application to relativelly short subroutines. In your Main routine, before calling the next sub, you will perform a simple net - N.O. contact of the bit you set in interrupt sub - reset this bit and jump to End. With this procedure, performed properly, you will decrease delay from two scan times (I guess about 5-15 ms) to less than 1 ms. Quote Link to comment Share on other sites More sharing options...
Mabrill Posted November 9, 2010 Author Report Share Posted November 9, 2010 Hi Emil I have used the tips that you tell me but the problem is the same i see a delay of 20ms. I have used the HSC interrupt and the immediate write to physical output but yet we have a delay so big. I use a V130-33-TR34. How we can improve this? Quote Link to comment Share on other sites More sharing options...
Emil Posted November 9, 2010 Report Share Posted November 9, 2010 Please attach your project. I want to take a look on it. What is the PTO frequency when the signal from sensor comes? What is the ration pulse/lenght? Are you sure it's not a matter of mechanichal glitch? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.