Page 1 of 1

Soft Limit LEDs

PostPosted: Wed Dec 29, 2021 10:09 pm
by eabrust
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

Re: Soft Limit LEDs

PostPosted: Wed Dec 29, 2021 10:48 pm
by ger21
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.

Re: Soft Limit LEDs

PostPosted: Sun Jan 02, 2022 9:14 pm
by cseyler
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 >=

Re: Soft Limit LEDs

PostPosted: Sun Jan 02, 2022 11:24 pm
by eabrust
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

Re: Soft Limit LEDs

PostPosted: Mon Jan 03, 2022 2:51 am
by eabrust
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

Re: Soft Limit LEDs

PostPosted: Mon Jan 03, 2022 4:50 am
by cncdrive
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.

Re: Soft Limit LEDs

PostPosted: Mon Jan 03, 2022 10:08 pm
by cseyler
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)