Soft Limit LEDs

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

Soft Limit LEDs

Postby eabrust » Wed Dec 29, 2021 10:09 pm

Hi Balazs, happy almost New Years :)

I'm trying to read when soft limits become hit in a plugin, I believe I should be looking at LED 268 (soft limit active).

The only issue is it seems that LED 268 is on always once soft limits are enabled settings. According to the LED list, LED 67 should be the 'soft limits enabled' indicator.


Is this a bug, or am I referencing the incorrect LED to see when soft limits are reached?

regards,
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Soft Limit LEDs

Postby ger21 » Wed Dec 29, 2021 10:48 pm

I would say it's a bug. The docs say 268 should only come on when an active is in softlimits, but I see it on as soon as you enable softlimits as well.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Soft Limit LEDs

Postby cseyler » Sun Jan 02, 2022 9:14 pm

actually, the led softlimit is turned on when :
for each axes
pos <= softlimit- or pos>= softlimit+

so, if you set a softlimit - to 0 , and you are able to achieve '0' as position, the softlimit is turned on.

For my side , I would prefer a range < and > instead of <= and >=
cseyler
 
Posts: 71
Joined: Tue May 25, 2021 11:27 am

Re: Soft Limit LEDs

Postby eabrust » Sun Jan 02, 2022 11:24 pm

What version works for you cseyler?

Agree that is how it is supposed to work. In checking on 2113, 2114, and 2115, the LED for soft limits is on when ever enabled, even if soft limits are not hit or 'active'. The axes jog and stop at the 'end stops' properly, just the LED is not following the state of if soft limit is 'active'. I need the LED status to follow.



Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Soft Limit LEDs

Postby eabrust » Mon Jan 03, 2022 2:51 am

Never mind on the soft limit LED question, I found my 'issues' causing it on two different machines for two different reasons. This was after seeing it work properly on a third machine which is a simple 3 axis setup w/ UC100.

problem Machine 1) Running slaved X/A axis on gantry. the fact that A axis does not report position on the DRO, but respects the soft limit values set on X was the problem. I had to open my soft limit range on the negative side on X axis by a few thousandths to get LED to clear because of the A axis. It seems like the slaved axis should be excluded from triggering the soft limit, given its DROs give no feedback.

problem Machine 2) The soft limit LED was triggered by a rotary axis, I wound up putting a huge soft limit span to allow several rotations either direction.

I still see the soft limit 'always on' in demo mode in the office though, which I assume may just be a nuance of demo mode... But really it was my office computer that sparked the original question :lol:

regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Soft Limit LEDs

Postby cncdrive » Mon Jan 03, 2022 4:50 am

Hi Eric,

I've just tested this issue a few hours ago and just wanted to write that the softlimits seems to work fine at me. :)
But yes, you are right, the slave axis also triggers the softlimit eventhough it should not, this is a to be fixes issue, however you can resolve it also yourself simply with setting softlimits for the slave axis over the position DRO value of the slave axis.

And I will test the softlimits in demo mode later, I tested with UC100 and UC400ETH only yet.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Soft Limit LEDs

Postby cseyler » Mon Jan 03, 2022 10:08 pm

Definitly a bug that occurs when a slave axis is enabled :

It can be reproduced even on DEMO mode
set soft limit to axes X, Y and Z between 0 and someting (for ex 100)

g0 x1 y1 z1

Enable softlimit -> the softlimit led is good

Set the the Y axis with a slave (for example B)
The Y axis parameter are automatically copied to the B axis (including the softlimit)
But it seems that the B position is not updated (as its master axis) and stay to zero (and then, trig the softlimit condition)

It is impossible to set a "fake" softlimit for the b axis itself (the "apply" settings copy back the master value)
cseyler
 
Posts: 71
Joined: Tue May 25, 2021 11:27 am


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 24 guests