convert cartesian XY G code to polar coordinates G code for a scara kinetic art

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Mooselake » Sat Mar 27, 2021 7:23 pm

It would be nice if this old version of SMF had a like button, but it doesn't.  Consider the missing button clicked!

Kirk

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Dan Mauch » Wed Mar 24, 2021 6:04 pm

Yes and I also have a scara project that will follow.
Dan

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Mooselake » Tue Mar 23, 2021 8:39 pm

Was that for your sand plotter?

Kirk

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Dan Mauch » Tue Mar 23, 2021 7:35 pm

  Thanks! That was exactly what I needed. It converts cartesian G code to polar g code. I test ran it yesterday and it works great. Since there wasn't a narrative with the link you provided I thought I would go ahead and post the application in formation.

"You must have python 3 installed. You also need the ?pathlib? library. Type ?pip install pathlib? in your python scripts folder to get that. The easiest way to run it, is to put the file you want to convert in the folder with the python script. To convert a file called test.gcode you type ?python PolarPreProcessor.py test.gcode. It will print done when complete and you will now have a new gcode file called test_polar.gcode. If python is not in your path, you will need to put the location info in front, like c:python3python PolarPreProcessor.py test.gcode."

Dan Mauch

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Dan Mauch » Sat Feb 13, 2021 5:56 pm

  A friend of mine converted a cartessian G code to polar. He says it was pretty simple. He created a couple macro's to pull upo the code into a spreadsheet, do the conversion and then revert the format back to a polar text file. Best of all he said that if I needed to convert many files he woul;d write a program to do that. But before I have him do that I want to get the scara running with the new harmonoic drive Y axis.
Dan mauch

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Mooselake » Fri Feb 12, 2021 12:56 pm

Something like this perhaps?

Kirk

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Hessel Oosten » Fri Feb 12, 2021 10:46 am

Dan,

As Art already mentioned such a program would be a real BEAST....  ;)

Isn't it possible for you to set your G-code X and Y coordinates in 2 columns/rows in Excel and put the formulas beside it ?

=SQRT((B1*B1)+(B2*B2))    (Pythagoras; distance)

=ATAN(B2/B1)*57.2958    (Cartesian to Polar; angle)

Hessel

Re: convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by ArtF » Fri Feb 12, 2021 4:23 am

havent seen such a beast...

convert cartesian XY G code to polar coordinates G code for a scara kinetic art

by Dan Mauch » Mon Feb 01, 2021 8:44 pm

Has anyone created a excel spreadsheet or know of a program that will take XY g code and convert it to polar coordinate g code using G 16. I\m building a scar robotic arm and need such a program.

Dan Mauch

Top