Hello Guest it is April 25, 2024, 09:13:51 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - linuxfan

Pages: 1
1
Mach4 General Discussion / Mach4 MPG axis stop after inc steps overflow
« on: February 23, 2019, 05:09:22 PM »
I am using pokeys57E to drive lathe on m4, and it works great. However I can't figure out how to achieve that axis stops after one would stop rotating MPG.
When inc steps are small, it is ok, but when 1mm per step is choosed, inc overlow happens if you turn mpg too fast. So machine wants to execute all commanded steps, and it runs even when mpg is not turned anymore. What I would like is, that when mpg encoder is not turned, motion of axis stops not matter if all steps were not executed.
I assign mpg to axes with mcMpgSetAxis on startup script, and I use fast enc. 1 and fast enc 2 on pokeys, as this is cyclic lathe.
I have looked at function mcJogIncStop and it seems it has something to do with what I want to achive, but if I put it in PLC loop script, it will stop axis right away, but steps aren't working properly, so 0.01mm inc won't actually make machine step 0.01mm etc.. Could someone advise what would be the correct approach to this?
Thanks

Pages: 1