ClearSoftLimitState

If you think you've found a bug post it here.

ClearSoftLimitState

Postby valhallaCNC » Fri Feb 17, 2023 6:26 pm

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
valhallaCNC
 
Posts: 65
Joined: Wed Jun 30, 2021 8:04 pm

Re: ClearSoftLimitState

Postby Battwell » Sat Mar 04, 2023 10:11 am

this is the same on whbob-4_ plugin from neuron
id love to see that fixed.
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 833
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: ClearSoftLimitState

Postby cncdrive » Sat Mar 04, 2023 1:04 pm

Dezsoe, please test this bug and give me feedback.
cncdrive
Site Admin
 
Posts: 4750
Joined: Tue Aug 12, 2014 11:17 pm

Re: ClearSoftLimitState

Postby valhallaCNC » Sat Mar 04, 2023 1:54 pm

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.
valhallaCNC
 
Posts: 65
Joined: Wed Jun 30, 2021 8:04 pm

Re: ClearSoftLimitState

Postby cncdrive » Sat Mar 04, 2023 2:24 pm

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.
cncdrive
Site Admin
 
Posts: 4750
Joined: Tue Aug 12, 2014 11:17 pm

Re: ClearSoftLimitState

Postby dezsoe » Sun Mar 05, 2023 7:33 pm

It's a bug and it happens using the UCR201 too.
dezsoe
 
Posts: 2081
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 7 guests