Hello Guest it is October 18, 2019, 10:58:59 PM

Author Topic: G-Code scaling program, mm to Inches and back  (Read 87120 times)

0 Members and 1 Guest are viewing this topic.

Offline cue

*
  •  1 1
    • View Profile
Re: G-Code scaling program, mm to Inches and back
« Reply #30 on: January 08, 2013, 09:14:37 AM »
I have problem using the wizards cannot find the code after making it in the wizard?
Thanks
Re: G-Code scaling program, mm to Inches and back
« Reply #31 on: January 29, 2013, 05:45:03 AM »
Any way to get it to do .nc Mach3 files?

Offline Graham Waterworth

*
  • *
  •  1,889 1,889
  • Yorkshire Dales, England
    • View Profile
Re: G-Code scaling program, mm to Inches and back
« Reply #32 on: January 29, 2013, 06:49:40 AM »
Change the extension from .NC to .TAP

Graham
Without engineers the world stops
Re: G-Code scaling program, mm to Inches and back
« Reply #33 on: February 21, 2013, 10:08:05 AM »
Thanks for this great utility Graham

Question:
After converting from mm to inches, the G code no longer has a space between each command
It makes it difficult to read the code in a text editor

before
G1 X86.747 Y101.111 Z0.2 F1500.0 A0.081

and after
G1X3.4152Y3.9807F59.0551A.0032

Is there a way to have the space between code in the output file?

Thanks,
Doug

Offline Graham Waterworth

*
  • *
  •  1,889 1,889
  • Yorkshire Dales, England
    • View Profile
Re: G-Code scaling program, mm to Inches and back
« Reply #34 on: February 21, 2013, 02:10:50 PM »
Hi Doug,

this version of the program is now fixed and will not change, there are new G-Code utilities on there way that are compatible with Mach3 and 4 and these have many enhancements including code spacing.

Regards
Graham
 
Without engineers the world stops
Re: G-Code scaling program, mm to Inches and back
« Reply #35 on: February 21, 2013, 04:41:20 PM »
In the example above, posted by EL34, the "A" axis degree value gets scaled as if it were a linear dimension. This is wrong, as you know angular degrees are still just "Degrees" in Metric.

Hopefully, in the upcoming scaling program this will be fixed, without having to go into the Mach3 program, and re-scale the "A" axis  back into the original degrees when converting a program. In my opinion, this messing with Angular values does not work.

I recently tried using the converter program on a Metric program which was a 4-axis sculpture, and initially failed to notice the angular error, partly because all the letters and numbers are posted without spaces, making it very hard to see.

The screen view was just a crazy squished mess. I finally realized the "A" dimensions were the problem.

My second attempt was to re-scale the "A" degrees back to the original value, using the Mach3 scale option window.

I ultimately ended up scaling the X and Z axis in the Mach3 scale window,  (the original program Y was on centerline and remained 0.00), and leaving the "A" axis as originally posted.

When the "A" axis was re-scaled in Mach3, and the X and Z were converted from Metric to Inch by the conversion program, the values for the A axis on the G-code window were still showing a goofy value, which made it difficult seeing where the A axis really was.  It also seemed to not run correctly, i.e. A rapid moves etc.

When I scaled the Metric program in the Mach3 window adjacent to the DRO, and left the original A axis values alone, the program ran like a clock.
Re: G-Code scaling program, mm to Inches and back
« Reply #36 on: February 21, 2013, 06:26:15 PM »
I write in vb.net and so I was just gonna do my own conversion program until I saw this post

It just a simple parsing routine on all the code and then replace G21 with G20
Looks like I still have to write my own

It's very simple to add a space after Gcode command and I am surprised no one commented on it before me.

As it is, the converted Gcode is totally unreadable to me
Sortoflikeabunchofwordsonapagewithnospacebetweenthem



Quote
this version of the program is now fixed and will not change, there are new G-Code utilities on there way that are compatible with Mach3 and 4 and these have many enhancements including code spacing.
Graham,
Do you have a link to one?
I searched but did not come up with anything
« Last Edit: February 21, 2013, 06:29:18 PM by EL34 »

Offline Graham Waterworth

*
  • *
  •  1,889 1,889
  • Yorkshire Dales, England
    • View Profile
Re: G-Code scaling program, mm to Inches and back
« Reply #37 on: February 22, 2013, 09:16:18 AM »
Good luck with your program.

Graham
Without engineers the world stops
Re: G-Code scaling program, mm to Inches and back
« Reply #38 on: April 10, 2013, 09:49:49 AM »
hi evryone

im trying to show you a screenshot of my question bat when i insert image  i get this ??? img /img

please help
« Last Edit: April 10, 2013, 09:56:22 AM by zoheirlabibes »
Re: G-Code scaling program, mm to Inches and back
« Reply #39 on: April 10, 2013, 09:51:55 AM »
So do lots of other people
It's a problem with IE

Firefox and Chrome do not have this issue
I cannot see the forum images in IE10 but they show up fine in Firefox and Chrome