- Posts: 25
- Thank you received: 0
Punch Press Gcode
9 years 5 months ago #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 to join the conversation.
9 years 5 months ago #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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
9 years 5 months ago #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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
9 years 5 months ago #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
Please Log in to join the conversation.
9 years 5 months ago #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 to join the conversation.
9 years 5 months ago #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
tommylight wrote: 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 to join the conversation.
9 years 5 months ago #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
AElmasry wrote: 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 to join the conversation.
9 years 4 months ago #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 to join the conversation.
9 years 4 months ago #94037
by andypugh
Replied by andypugh on topic Punch Press Gcode
Try "REMAP" instead?
Please Log in to join the conversation.
Time to create page: 0.207 seconds
