Register Help Remember Me? . .

# Thread: Setting up soft limits in UCCNC .. "Logic"

1. Hi folks .
Trying to get used to UCCNC
Am trying to get my head around Soft limits and having some difficulty.. Not really intuitive could we say?
So taking things one step at a time lets look at a single axis, for which of course we will choose X

So I have entered the settings for the home switches and they work, home and display resets to zero. so I am fine so far .
I select to use soft limits in general config
My thinking is that I want "soft limits" to define a work area in x positve which is bounded by the lower limit ( say 10) and an upper of say 350. I figured that the software would then stop any motion at 10 and prevent the machine hitting the home limit switch.
So I set lower limit to 10, upper to 350 but now when I home , the table goes all the way to the switch and DRO resets to 10 ??? says soft limit is reached (when actually the home switch has been reached) and a "write offset on homing" appears as 10. So what is the logic in this ??
I have read the manual , which isn't giving me clarity other than i need to set numbers for the soft limits.
I have sought for video tutorials but so far haven't found any which clearly explain what is going on here

I am not getting my head around it . I need to get this clear in my mind before I move on to Z axis and begin to regale you all with the issues setting the soft limits on there.

2. Just set lower limits to 0

3. I'm not at my machine at the moment, and barely remember this - but can you not set the axis to, after homing, traverse to a fixed offset (within the working envelope, and within the desired soft limit). E.g. home to zero, move to 12, with a soft-limit of 10?

EDIT: I'm thinking of what I do with my Lathe which is LinuxCNC, rather than UCCNC, so the above might be a red-herring of the grandest order. Take with a pinch of salt.
Last edited by Doddy; 28-07-2020 at 12:33 PM.

4. Originally Posted by ngwagwa
Just set lower limits to 0
OKay ngwagwa and thanks for response , but that doesnt really clarify in my mind what soft limits are trying to achieve . it sounds like a fudge to overcome the problem

5. And Doddy

I presume I can do that by calling up an offset in the code , but am wanting to understand the process too.
Having declared soft limits , am I then homing to the soft limit and writing off 10 mm of my table

6. [QUOTE=Doddy;119103]I'm not at my machine at the moment, and barely remember this - but can you not set the axis to, after homing, traverse to a fixed offset (within the working envelope, and within the desired soft limit). E.g. home to zero, move to 12, with a soft-limit of 10?

Just tried that Doddy and when the machine backs off after going home it only goes to the softlimit value - so would work if back off and softlimit was set the same.

John. Softlimits prevent machine going past the limits to prevent a crash and (on my set up at least) home switches don't limit movement when jogging.

If you look in configuration - Axis Setup for each axis there is a back off units box - set this value and when homing the axis will move back by te set value - make sure you set it positive or negative s required.

Softlimits will reduce the size of the working area - I have X backoff as -3 and softlimits at 0 so I don't lose anything.
Hope this explains it ?

7. So are we saying that the ONLY reason for softlimits is to prevent the machine traversing beyond the home switches and crashing into endstops ( and I guess killing the traverse if we try to go beyond the positive limit, regardless of whether switches are fitted there) . in which case it seems to make sense to have a soft limit of zero and maybe an arbitrary back-off of say 5 , (and I guess that wound be +5 to bring it back within the working area)

So then I guess that I choose an offset in my G code routine to bring the tool to a new start position on my workpiece , Is that so ?

8. Originally Posted by John11668
So are we saying that the ONLY reason for softlimits is to prevent the machine traversing beyond the home switches and crashing into endstops ( and I guess killing the traverse if we try to go beyond the positive limit, regardless of whether switches are fitted there) . in which case it seems to make sense to have a soft limit of zero and maybe an arbitrary back-off of say 5 , (and I guess that wound be +5 to bring it back within the working area)

So then I guess that I choose an offset in my G code routine to bring the tool to a new start position on my workpiece , Is that so ?

Correct re purpose of softlimits ie prevents crashes at end of travel.

Whatever back off you set you don't need to alter the gcode as Zero is still zero. So to clarify on my machine with a back off of minus 5mm after machine has been homed the DRO will display -5mm when displaying machine co-ordinates.

9. Originally Posted by ngwagwa
Correct re purpose of softlimits ie prevents crashes at end of travel.

Whatever back off you set you don't need to alter the gcode as Zero is still zero. So to clarify on my machine with a back off of minus 5mm after machine has been homed the DRO will display -5mm when displaying machine co-ordinates.
But doesnt a backoff of -5 take you beyond the home limit presuming you are homing in negative direction from an x positive position on the table .??

10. Originally Posted by John11668
But doesnt a backoff of -5 take you beyond the home limit presuming you are homing in negative direction from an x positive position on the table .??
As I said earlier make sure you have the right direction for the back off - my home is far right so moves postive in X to get home, therefore I back off negative.Big noise and you got it wrong!

Page 1 of 4 123 ... Last

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•