punching machine

More
21 Dec 2023 09:57 #288743 by szatri
punching machine was created by szatri
Hello, I have an old punching machine to run, I need help with the hall configuration and the subsequent use of the program so that I can make it using a simple coordinate program (ngcgui subs with drilling for a milling machine are best for this purpose) but there is an axis there that I don't have in the machine. It seems to me that all you need to do is not connect the Z axis from the control board and perform automatic homing when you press the "homing all" button (but I don't know if the other two axes go to the limit switches).
Maybe my reasoning for this action (drilling) is wrong, or maybe it just needs to be modified.
My assumptions for control:
Input signals:
1 x axis homing, then y axis homing (under one signal pin)
2 sheet metal limit switch (the idea is that if the sheet slides out of the holder, the program will stop (motion blocked if there is no signal)
3 piston limit switch, upper position (passes)
4 piston limit switch, lower position (work)
5 e-stops
Output signals:
1 axis x (allow movement when there is a signal from limit switch 3)
2nd axis (allow movement when there is a signal from limit switch 3)
3 piston movement down (continuous constant signal until limit switch signal 4 is obtained) (relay control)
4 upward movement of the piston (continuous constant signal until limit switch signal 3 is obtained) (relay control)

Please analyze my assumptions to see if it makes sense. Maybe there are some configuration examples somewhere.
Sorry for the language, translator. Regards

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

More
22 Dec 2023 12:40 #288821 by szatri
Replied by szatri on topic punching machine
Or maybe it is possible to make a simple configuration for 2 axes and use the M100 function in the program, which will trigger a high state on output port 1 and maintain this state until the signal from limit switch 1 appears. After detecting the signal from limit switch 1, a signal will be given on the output port 2 until the signal of limit switch 2 appears. And then the next program will be continued?

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

More
23 Dec 2023 10:33 #288884 by andypugh
Replied by andypugh on topic punching machine
You might want to use feed-hold to pause the axis motion except when the spindle is at the top of the stroke.

Do you expect to have a separate G-code line for every punched hole? (That's probably the easy way, but the ability to cut slots with one command might be nice)

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

More
23 Dec 2023 11:42 #288896 by szatri
Replied by szatri on topic punching machine

You might want to use feed-hold to pause the axis motion except when the spindle is at the top of the stroke.
 

That's the idea

Do you expect to have a separate G-code line for every punched hole?

I don't mind having each hole in a separate line of code, I hope they can be generated using a simple ngcgui algorithm (e.g. drilling on a milling machine)

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

More
23 Dec 2023 17:15 #288931 by andypugh
Replied by andypugh on topic punching machine
You might also need to program (G64) exact-stop mode. But otherwise it should be fairly simple.

Do you have a multi-tool head? It is probably possible to use the T command to do the punching, and to select the right tool to punch with.

(T is easy to re-map, but you might be able to do it all in HAL)

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

More
23 Dec 2023 20:46 #288944 by szatri
Replied by szatri on topic punching machine

Do you have a multi-tool head? 

the head is a manual change

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
25 Dec 2023 14:53 #289030 by tommylight
Replied by tommylight on topic punching machine
There is a member of this forum (with "atila" in the user name) that has a working punch press with LinuxCNC for several years now, but he will not help anyone ever, nor uplpad the configuration files.
There are several topic asking for help about this.
Yet, that same user is here asking for help all the time.
You can find a video of it on youtube, has the same user name there.

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

More
26 Dec 2023 10:30 #289080 by szatri
Replied by szatri on topic punching machine

BigJohnT post=16332 userid=405
Seems like you have a lot of fun ahead of you.

To connect a motion digital output to a parallel port pin you will have to modify a .hal file. If you use Stepconf Wizard to create your configuration then do the modifications in custom.hal. To "connect" motion digital output pin 0 to the parallel port pin 17 you could create a line like the following.

net digital-out-0 motion.digital-out-00 => parport.0.pin-17-out


Now to use the digital out pin you need the following in your g code file


[code]M64 P0 (turn on digital out pin 0)
G4 P10 (pause for 10 seconds, just so you can see the pin turn on)
M65 P0 (turn off digital out pin 0)


Notice after reading the manual for digital I/O pins [url=http://linuxcnc.org/docview/2.5/html/gcode/m-code.html#_m62_to_m65_output_control_a_id_sec_m62_m65_a]here that the above code will not work for M62/M63.

John[/url]
[/code]


I found a way to use the m64 code. My problem is to stop the z axis movement until it is canceled by m65. I would like m65 to be called automatically after applying the limit switch signal (upper position of the piston) and allowing the program to continue with g codes

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

More
20 Jan 2024 09:34 #291172 by andypugh
Replied by andypugh on topic punching machine
Did you get any further with this?
I think that the punch movement should probably not be interpreted as a Z move, as you want to avoid having the controller blend those moves.
Also look at "exact stop mode" as the G64 setting.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum