Need help with Linux 2.5 on a CNC lathe

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
05 May 2025 21:00 #327788 by tommylight
Replied by tommylight on topic Need help with Linux 2.5 on a CNC lathe
Upload a screenshot and some pictures of the wiring here.
The following user(s) said Thank You: Groovecooper1

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

  • Groovecooper1
  • Groovecooper1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
05 May 2025 21:17 #327790 by Groovecooper1
Replied by Groovecooper1 on topic Need help with Linux 2.5 on a CNC lathe
Will do in the a.m. Thanks!

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

More
06 May 2025 11:36 #327842 by andypugh
Replied by andypugh on topic Need help with Linux 2.5 on a CNC lathe
Can you attach your HAL and INI files too?

Also, the results of the following command-line commands:

uname -a
lsb_release -a
linuxcnc_info &

(The last one will probably open a text editor to display the info)

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

  • Groovecooper1
  • Groovecooper1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
06 May 2025 15:01 #327858 by Groovecooper1
Replied by Groovecooper1 on topic Need help with Linux 2.5 on a CNC lathe
Been getting this error a lot, and again, the machine will not home.
Attachments:

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

More
06 May 2025 15:15 #327860 by andypugh
Replied by andypugh on topic Need help with Linux 2.5 on a CNC lathe
Is the Z limit switch also a home switch?

halshow (in Axis menu - Machine - Show Hal Configuration) will let you explore whether joint.2.*-lim-sw-in is not working properly.

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

  • Groovecooper1
  • Groovecooper1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
06 May 2025 16:20 #327866 by Groovecooper1
Replied by Groovecooper1 on topic Need help with Linux 2.5 on a CNC lathe
Hello, here’s the files you asked for thank you. 
Attachments:

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

  • Groovecooper1
  • Groovecooper1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
06 May 2025 20:58 #327890 by Groovecooper1
Replied by Groovecooper1 on topic Need help with Linux 2.5 on a CNC lathe
This is getting to be a 911 issue as I’ve got to get this machine running. I can’t move forward without it. I need to Groove the baseball bat to get them to the MLB, we’re gonna be grooving dolls down to drumsticks, etc. Absolutely appreciate your assistance. How do you find a CNC tech in the Chicagoland area that knows Linux 2.5? So far nobody.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 May 2025 21:02 #327892 by tommylight
Replied by tommylight on topic Need help with Linux 2.5 on a CNC lathe
Move the Z axis by hand towards the spindle a bit, then power on and try homing.
If that does not work, use a DVM to check the wiring from the Z axis switch to parallel port 0 (the built in parallel port in the motherboard, not the add on one)
The following user(s) said Thank You: Groovecooper1

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

More
13 May 2025 11:58 #328370 by andypugh
Replied by andypugh on topic Need help with Linux 2.5 on a CNC lathe
Sorry for the very late reply to what seems like an urgent issue.

It looks like this is not a conventional lathe?
Also, it seems that the config is doing wierd things to handle gantry homing?

eg
# we will need the inverse of the direction signals for our logic, so run it through a not gate
net ydir => not.2.in
net ydir-inv => not.2.out

# we need to determine if the home switch for each motor is tripped while the direction line is
# moving the motor towards the switch

# for both y-axis motors, we will prevent the step signal from passing to the motor
# if the motor is moving towards the switch and the switch is tripped
# so "or" the inverted direction signals and the inverted home switches
net ydir => and2.3.in0
net switches-y1 => and2.3.in1
net doh1 <= and2.3.out
net doh1 => not.3.in
net doh1-inv => not.3.out

net ydir => and2.4.in0
net switches-y2 => and2.4.in1
net doh2 <= and2.4.out
net doh2 => not.4.in
net doh2-inv => not.4.out

# if the step generator is trying to send a step (ystep signal) and either the motor is moving
# away from the switch or the switch is not tripped, then pass the step signal to the motor
net ystep => and2.1.in0
net doh1-inv => and2.1.in1
net ystep1 <= and2.1.out

net ystep => and2.2.in0
net doh2-inv => and2.2.in1
net ystep2 <= and2.2.out

But, if the home-button is greyed out then I suspect that it's nothing to do with all this.

Have you tried clicking the "ignore limits" checkbox?

I wonder if you can home the system through halui to bypass the GUI button (I wouldn't expect so...)
Open a terminal window and
halcmd setp halui.home-all 1
halcmd setp halui.home-all 0
and see if anything happens.

You could also try setting "NO_FORCE_HOMING" in the INI file so that you can run the system without homing it, as a workaround. (manually position all axes at home first...)
linuxcnc.org/docs/stable/html/config/ini...tml#sub:ini:sec:traj
The following user(s) said Thank You: Groovecooper1

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

  • Groovecooper1
  • Groovecooper1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
03 Jun 2025 17:19 #329621 by Groovecooper1
Replied by Groovecooper1 on topic Need help with Linux 2.5 on a CNC lathe
Hello got everything up and running the machine will home. I keep getting the same error and I’m not able to run a program. I am not skilled at writing G code, but hopefully this is a quick fix. Any assistance is greatly appreciated 
Attachments:

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

Time to create page: 0.093 seconds
Powered by Kunena Forum