Jump to content

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...