Need to turn 90 degs.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
The project is a Mandolin top and is 14.75 inches tall (Y) and only have 14 inchs of travel in Y. Thanks Carl
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
- Posts: 23225
- Thank you received: 4897
I have a very large gcode in a txt. file only. I need to turn the project 90 degs. so it will fit in my machine. Can EMC2 turn it?
The project is a Mandolin top and is 14.75 inches tall (Y) and only have 14 inchs of travel in Y. Thanks Carl
You could do a global search-and-replace swapping all X to (for example) && then all Y to X, then all && to Y.
Alternatively, G10 L2 R90 will probably do what you want:
www.linuxcnc.org/docview/html/gcode_main...:G10:-Set-Coordinate
Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
cwebs wrote:
I have a very large gcode in a txt. file only. I need to turn the project 90 degs. so it will fit in my machine. Can EMC2 turn it?
The project is a Mandolin top and is 14.75 inches tall (Y) and only have 14 inchs of travel in Y. Thanks Carl
You could do a global search-and-replace swapping all X to (for example) && then all Y to X, then all && to Y.
Alternatively, G10 L2 R90 will probably do what you want:
www.linuxcnc.org/docview/html/gcode_main...:G10:-Set-Coordinate
Thanks Andy, I will have to give the G10 L2 R90 a try. That would make life easyer. Thanks Carl
Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
andypugh wrote:
cwebs wrote:
I have a very large gcode in a txt. file only. I need to turn the project 90 degs. so it will fit in my machine. Can EMC2 turn it?
The project is a Mandolin top and is 14.75 inches tall (Y) and only have 14 inchs of travel in Y. Thanks Carl
You could do a global search-and-replace swapping all X to (for example) && then all Y to X, then all && to Y.
Alternatively, G10 L2 R90 will probably do what you want:
www.linuxcnc.org/docview/html/gcode_main...:G10:-Set-Coordinate
Thanks Andy, I will have to give the G10 L2 R90 a try. That would make life easyer. Thanks Carl
Gcode won't load with this G10 line. I have found some info on G68/G69 and when I can get to my machine I will try it.
Should this be supported in EMC?
knol.google.com/k/steve-paffel/cnc-coord...g68/2jsw1fntksfr1/5#
www.cnczone.com/forums/g-code_programing...9-g68_g69_codes.html
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
- Posts: 23225
- Thank you received: 4897
What does it say?[Gcode won't load with this G10 line.
No, the function in EMC2 G-code is handled by G10 L2.I have found some info on G68/G69 and when I can get to my machine I will try it.
Should this be supported in EMC?
www.linuxcnc.org/docview/html/gcode.html
Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
I still have to get to my EMC machine and see what happens. Carl
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
- Posts: 23225
- Thank you received: 4897
Yes, well, that will be because Mach3 and EMC2 are different. RS274 is a rather loose "standard"When I tried the G10, I tried to test it in Mach3 Sim
In Mach3 there is no R in a G10.
Both take a P word to specify which coordinate system is to be shifted. It might be that you need a P in both Mach3 and EMC2, or EMC2 might default to the current coordianate system if it is omitted, I am not sure.
Please Log in or Create an account to join the conversation.
- cwebs
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 2
When using Cambam to see the cut lines over half of them are missing. However in Mach3 and EMC2 all the cut lines are shown. Mach3 shows some rapid moves that go way off the project and I think that may be the "P" problem. However, I don't know what P is for. This file is a TXT file and I don't know how to clean up the moves that don't need to be there. Text file is all I have. No DXF or anything else. Carl
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
- Posts: 23225
- Thank you received: 4897
Which says you probably want G10 L2 P0 R90linuxcnc.org/docview/2.5/html/gcode/gcod...em_a_id_sec_g10_l2_a
You could, however, set up G55 (for example) to be your rotated coordinate system, and leave it rotated permanently.
Please Log in or Create an account to join the conversation.