Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Larsaf on January 05, 2017, 07:22:23 AM
-
Hello,
my CAM can export its tool table as a .csv file. Is there a way to import this into Mach4? This could not only save a lot of typing but it also prevents from typing errors.
best regards from Germany
Klaus
-
G10. Look at the Milling Manual in the docs folder to get the syntax. Some CAM programs will export the tool table into a G code file that includes G10. Then the G code program is simply run once to set the tool table.
If your CAM program can only output the .CSV file, then you could write a "translator" in LUA script to go from the .CSV contents to G code with G10.
The other way would be to read the .CSV file in a LUA script and use the API to modify the tool table.
Steve
-
Hi Steve,
thank you for your reply. I'm using VisualCAM and besides it's native format it can only export to .csv so I will have to take a look at LUA.
best regards from Germany
Klaus