Punch Press Gcode
29 May 2017 23:29 #93824
by AElmasry
Punch Press Gcode was created by AElmasry
Hi everybody,
I almost finished retrofitting a Turret punch press but I have a problem with it's gcode.
Example of the gcode I use now :
G01 X500 Y500
M64 P01
M66 P01 L3
M65 P01
The above Mcodes send the punch order to classic ladder and return the feed back to go to the next line of code.
how can I reprogram the G01 to include the whole order because it's not reasonable for the operator to write all of these codes or even copy and paste it.
I almost finished retrofitting a Turret punch press but I have a problem with it's gcode.
Example of the gcode I use now :
G01 X500 Y500
M64 P01
M66 P01 L3
M65 P01
The above Mcodes send the punch order to classic ladder and return the feed back to go to the next line of code.
how can I reprogram the G01 to include the whole order because it's not reasonable for the operator to write all of these codes or even copy and paste it.
Please Log in or Create an account to join the conversation.
30 May 2017 15:45 #93846
by andypugh
Replied by andypugh on topic Punch Press Gcode
I don't think that it is possible to re-map the G01 command (which in cases like this is somewhat unfortunate)
linuxcnc.org/docs/2.7/html/remap/remap.h...remap:existing-codes
If you can use something other than G1 then the task is relatively easy.
linuxcnc.org/docs/2.7/html/remap/remap.h...remap:existing-codes
If you can use something other than G1 then the task is relatively easy.
The following user(s) said Thank You: AElmasry
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
30 May 2017 17:34 #93851
by tommylight
Replied by tommylight on topic Punch Press Gcode
Here is a video of one in action running Linuxcnc
There are links on the description, but not much info.
There are links on the description, but not much info.
The following user(s) said Thank You: AElmasry
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
30 May 2017 17:38 - 30 May 2017 17:41 #93852
by tommylight
Replied by tommylight on topic Punch Press Gcode
I thought i saw him on this forum, and he was
forum.linuxcnc.org/show-your-stuff/31759...n-360-lathe-retrofit
All his posts
www.google.com/#q=HalaszAttila+site:linuxcnc.org
forum.linuxcnc.org/show-your-stuff/31759...n-360-lathe-retrofit
All his posts
www.google.com/#q=HalaszAttila+site:linuxcnc.org
Last edit: 30 May 2017 17:41 by tommylight.
Please Log in or Create an account to join the conversation.
30 May 2017 18:22 #93853
by AElmasry
Replied by AElmasry on topic Punch Press Gcode
Thanks andypugh
It's not necessary to use G01, Any available linear motion code will be good.
But I can't get how to do remapping
I need help to remap any available linear motion gcode with my Mcodes.
Thanks in advance.
It's not necessary to use G01, Any available linear motion code will be good.
But I can't get how to do remapping
I need help to remap any available linear motion gcode with my Mcodes.
Thanks in advance.
Please Log in or Create an account to join the conversation.
30 May 2017 18:29 #93854
by AElmasry
Thanks tommylight
It's the same machine I work on
Trumph TC180 Turret punch
I will upload a video for it once I finish it lb ☺️
Replied by AElmasry on topic Punch Press Gcode
Here is a video of one in action running Linuxcnc
There are links on the description, but not much info.
Thanks tommylight
It's the same machine I work on
Trumph TC180 Turret punch
I will upload a video for it once I finish it lb ☺️
Please Log in or Create an account to join the conversation.
31 May 2017 11:51 #93874
by andypugh
Have a look at the minimal section,
linuxcnc.org/docs/2.7/html/remap/remap.h...s_including_tt_m6_tt
You need to add a line to the INI file to say what the new G-code is, and then need to create a G-code file containing a subroutine of the same name.
Replied by andypugh on topic Punch Press Gcode
But I can't get how to do remapping
Have a look at the minimal section,
linuxcnc.org/docs/2.7/html/remap/remap.h...s_including_tt_m6_tt
You need to add a line to the INI file to say what the new G-code is, and then need to create a G-code file containing a subroutine of the same name.
Please Log in or Create an account to join the conversation.
03 Jun 2017 13:55 #94033
by AElmasry
Replied by AElmasry on topic Punch Press Gcode
I tried the following :
In ini file [RS274NGC] section
Remap=G11 argspec=xy ngc=G11
I made a file in nc_files G11. ngc contain the following :
O<G11> sub
G1
M64 P1
M66 P0 L3 Q100
M64 P1
O<G11> endsub
I got unknown g code when executed G11.
I tried it on m code M11
O<M11> sub
M64 P1
M66 P0 L3 Q100
M64 P1
O<M11> endsub
I got EOF <path if my ngc file>
Seeking o-word: o<m11> fromline: 0
I tried to put the above subroutine inside my ngc file but the program stop at M11 line
Any idea how to do the remapping in my case?
In ini file [RS274NGC] section
Remap=G11 argspec=xy ngc=G11
I made a file in nc_files G11. ngc contain the following :
O<G11> sub
G1
M64 P1
M66 P0 L3 Q100
M64 P1
O<G11> endsub
I got unknown g code when executed G11.
I tried it on m code M11
O<M11> sub
M64 P1
M66 P0 L3 Q100
M64 P1
O<M11> endsub
I got EOF <path if my ngc file>
Seeking o-word: o<m11> fromline: 0
I tried to put the above subroutine inside my ngc file but the program stop at M11 line
Any idea how to do the remapping in my case?
Please Log in or Create an account to join the conversation.
03 Jun 2017 19:27 #94037
by andypugh
Replied by andypugh on topic Punch Press Gcode
Try "REMAP" instead?
Please Log in or Create an account to join the conversation.
03 Jun 2017 20:05 #94039
by AElmasry
The same result
Replied by AElmasry on topic Punch Press Gcode
Try "REMAP" instead?
The same result
Please Log in or Create an account to join the conversation.
Time to create page: 0.168 seconds