4
« on: January 18, 2012, 09:03:53 AM »
I have a little problem that might be simple for someone. I've generated with VBscript a text file containing some GCode as it follows:
G00 A0. B0.
A0.7562497658762
B21.764485993774
M99
When I load this text file, there is nothing in the Gcode MDI. Here is how I generate the text file:
Dim fs,f As Object
Set fs =CreateObject("Scripting.FileSystemObject")
Set f=fs.CreateTextFile("c:\mach3\GCode\result_orient_shim.txt",2,true)
f.writeline("G00 A0.B0.")
f.writeline("A"&teta)
f.writeline("B"&zeta)
f.writeline("M99")
f.close
Set f=Nothing
Set fs=Nothing
Is there something wrong with my textfile!?!?