Page 1 of 1
ClearSoftLimitState
Posted:
Fri Feb 17, 2023 6:26 pm
by valhallaCNC
I have a plugin which has a MPG. Using it through a pokeys57e I/O , MPG works fine for all the axis and step size. Problem occurs when I hit a soft Limit. I OK the screen pop-up msg, MPG does not work again until I use Reset button on screen. Then it works fine. I have tried using UC100.ClearSoftLimitState it does not work. Am I missing something ?
Thanks
Re: ClearSoftLimitState
Posted:
Sat Mar 04, 2023 10:11 am
by Battwell
this is the same on whbob-4_ plugin from neuron
id love to see that fixed.
Re: ClearSoftLimitState
Posted:
Sat Mar 04, 2023 1:04 pm
by cncdrive
Dezsoe, please test this bug and give me feedback.
Re: ClearSoftLimitState
Posted:
Sat Mar 04, 2023 1:54 pm
by valhallaCNC
I did find a work-around for this. I added SetMotionProgressState at the beginning of the move (set to true). At the end of the move (set to false). MPG continues working after softlimit has been triggered. Not exactly sure what this function is, but it works.
Re: ClearSoftLimitState
Posted:
Sat Mar 04, 2023 2:24 pm
by cncdrive
You should set the motion state to true before you adding movement commands to the motion buffer (addlinearmove, addcircular move etc.) and set it false when you finished adding motion commands to the buffer.
This way the controller knows which one is the first and last motion command and it is nessessary for look ahead path optimisation and also to handle multiple neighbour arcs codes executions properly.
Re: ClearSoftLimitState
Posted:
Sun Mar 05, 2023 7:33 pm
by dezsoe
It's a bug and it happens using the UCR201 too.