Home› Programming
Discussion
Back to discussions page
Pablo
Posts: 5 Apprentice
Robotic |
167 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
9 comments |

How i can do a robot read g-code ? Example: If i already have a g-code of the 3d printer, has a type of I send this g-code for the robot can execute the moviments of printing ?
Tagged:
Best Answers
-
Sebastien Posts: 219 Handy
@Pablo
do you have documentation about your G-Code that you are trying to translate. Basically a documentation that would allow us to understand what is the structure of the G-Code. Once we have that, we can look at how you could translate!
You could also load the G-Code here with comments on each line! -
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
@Pablo you may want to check with robotmaster, they may offer a free or deeply discounted version to students, a lot of engineering software does.
Looking at your GCode what do you plan to do with the extrusion component "E" with the robot? You could write a simple script converter I'm sure that could convert G1 to a movel using the F as your velocity, you'd need to convert that to something the robot is capable of performing.
You will need to use a 3rd party translation software such as RobotMaster to read the G-Code into the robot to create robot motion at least with UR. Somehow you have to translate the G-Code such as G1 or G0 into what you want the robot to do such as movel, movej or movep
Here's some info from their website...
Convert CAD/CAM Data to 6-axis Robot Output
Use the graphical interface to fine-tune the parameters by which Robotmaster will translate the 2 to 5 axis CNC toolpath data into a 6-axis robot toolpath.
Convert CAD/CAM toolpaths to robot positions
servoj(get_inverse_kin(pose_trans(TOOL, p[X,Y,Z,0,0,0])),t=.008). (Check the URScript manual to verify that all the syntax is correct)
You would need to write a translation program to get all of this out of the G-Code file.
Good Luck!