punching machine
- szatri
- Offline
- Junior Member
- Posts: 29
- Thank you received: 1
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.
- szatri
- Offline
- Junior Member
- Posts: 29
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23162
- Thank you received: 4860
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.
- szatri
- Offline
- Junior Member
- Posts: 29
- Thank you received: 1
That's the ideaYou might want to use feed-hold to pause the axis motion except when the spindle is at the top of the stroke.
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)Do you expect to have a separate G-code line for every punched hole?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23162
- Thank you received: 4860
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.
- szatri
- Offline
- Junior Member
- Posts: 29
- Thank you received: 1
the head is a manual changeDo you have a multi-tool head?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19459
- Thank you received: 6529
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.
- szatri
- Offline
- Junior Member
- Posts: 29
- Thank you received: 1
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.
[/code]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]
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.
- andypugh
- Offline
- Moderator
- Posts: 23162
- Thank you received: 4860
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.