prevent jog limit error

More
04 Aug 2025 13:50 #332821 by konrad
prevent jog limit error was created by konrad
Hi,

sorry this this probably a very basic problem but I couldn't find a solution myself: I can jog the machine out of the axis until the limit switch triggers. I have shared home/ limit switches and my understanding was that after homing the machine would know where it is and prevent jogging until the limit is triggered.

I suspect my Home / Home offset /  min limit is the likely cause but as I said I cant figure it out

Currently I tried 
HOME = 5.0
HOME_OFFSET = 0.000000
MIN_LIMIT = -1.0

I also tried 
HOME = 0
HOME_OFFSET = -0.800000
MIN_LIMIT = -1.0

but both still do not prevent me from jogging the axis until i get an limit error at which point I have to restart the machine and manually move the axis free.

Thanks!!
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Aug 2025 16:12 #332826 by langdons
Replied by langdons on topic prevent jog limit error
Try creating a new config with the GUI.

It fixed it for me.

The default values are the default for a reason.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
04 Aug 2025 17:15 #332828 by tommylight
Replied by tommylight on topic prevent jog limit error
We need more info about the machine, size on all axis, gear ratio, final drive, where are the switches mounted and what type, etc.
Is the scaling correct?
etc etc.

Please Log in or Create an account to join the conversation.

More
05 Aug 2025 15:24 #332899 by konrad
Replied by konrad on topic prevent jog limit error
I made the config with PnCconf and only slightly changed to to account for probe basic interface.
the inductive endstops are mounted on the traveling part of the axis and there are metal stops at each end of the travel.

the machine has the following specs:
Machine Specs:
X460, Y750mm, Z160
20mm linear rails
10mm pitch ballscrews, 20mm diameter
Construction: aluminum profiles bolted to 12mm steel plates, welded gantry sides
Motors: Y-axis 6.8Nm stepper, Z + X-axis 3Nm stepper
Drives: DM556 V1 48v
Spindle: 24K RPM 2.2kW ER20
inductive endstops
good latency values mostly sub 3000ns servo
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Aug 2025 20:15 #332917 by rodw
Replied by rodw on topic prevent jog limit error
If you have a shared home/limit switch you need to add a HOME_OFFSET to move off the switch during homing. During normal operation including jogging, the limit switch should never be triggered unless Oh Sh#t happens.
The following user(s) said Thank You: konrad

Please Log in or Create an account to join the conversation.

More
06 Aug 2025 07:59 #332941 by konrad
Replied by konrad on topic prevent jog limit error
thanks, yeah I think that is the problem. Sorry again to ask: Should this value be positive or negative in my case, where the machines homes on the min X/ Y side (and switch is on the moving gantry) --

I assumed negative as the HOME_OFFSET specifies the position of the limit switch in relation to the actual home position. Is that correct?

Please Log in or Create an account to join the conversation.

More
06 Aug 2025 08:23 #332943 by rodw
Replied by rodw on topic prevent jog limit error
Slow your velocities down and see.
I think the sign is the opposite of LATCH_VELOCITY

One of my machines:

MIN_LIMIT = -106
MAX_LIMIT = 0.01
HOME                    = 0
HOME_OFFSET                = 1
HOME_SEQUENCE            = 0
HOME_SEARCH_VEL            = 5
HOME_LATCH_VEL            = -2
HOME_IGNORE_LIMITS    = yes
HOME_USE_INDEX = NO
The following user(s) said Thank You: konrad

Please Log in or Create an account to join the conversation.

More
06 Aug 2025 14:53 #332968 by konrad
Replied by konrad on topic prevent jog limit error
I got it: the problem was that the [AXIS_X] section had the same settings as the [JOINT_0] section, basically setting the allowed range for the axis to the same range as the physical reachable positions. My corrected .ini values are now:

[AXIS_X]
MIN_LIMIT = 0
MAX_LIMIT = 455.0

[JOINT_0]
HOME = 0
MIN_LIMIT = -1
MAX_LIMIT = 455.3
HOME_OFFSET = -0.5

 
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum