Noob looking for help - after homing Z axis is still running into limit switches

More
17 Jun 2025 23:07 #330421 by Geshka
Hello gang.
This was probably munched to death already, still I am having problems with setting Z soft limits properly. The issue is that Z axis is not stopping on sift limits and still running into limit switches after successful homing. I am using shared home/limit switch on the top of Z and also on the bottom.  

File Attachment:

File Name: temp-mill.ini
File Size:3 KB
 

File Attachment:

File Name: temp-mill.hal
File Size:4 KB
Below is relevant part of the INI file.  Full INI and HAL files are attached.  What is my problem ?  
[AXIS_Z]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 50.0
MIN_LIMIT = -60.0
MAX_LIMIT = 5.0

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -60.0
MAX_LIMIT = 5.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 50.0
STEPGEN_MAXACCEL = 62.5
SCALE = 320.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 2.000000
HOME_SEARCH_VEL = 1.500000
HOME_LATCH_VEL = 0.312500
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
17 Jun 2025 23:17 #330423 by tommylight
- make sure the direction is correct, page down or Z- should jog down
- make sure the homing direction is correct, home_search_velocity will change direction by adding - in front of value
- make sure the scaling is correct
- make sure the actual limits switches are outside the soft limits by at least 1-3mm.

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

More
17 Jun 2025 23:30 #330424 by Geshka
Thanks Tommy. 

- make sure the direction is correct, page down or Z- should jog down
Verified - OK
- make sure the homing direction is correct, home_search_velocity will change direction by adding - in front of value
Verified  - Homing is correct 
- make sure the scaling is correct
Verified - OK
- make sure the actual limits switches are outside the soft limits by at least 1-3mm.
That is probably my confusion - how to do that? 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
18 Jun 2025 00:38 #330428 by tommylight
Easy, home the machine, jog the Z axis down till you hit the switch, check the position in DRO, add that value minus (well plus in this case) a mm or two in the ini file, close and run LinuxCNC again to check if it hits the switch again.
The following user(s) said Thank You: Geshka

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

Time to create page: 0.063 seconds
Powered by Kunena Forum