Project

General

Profile

LGC Documentation » History » Revision 2

Revision 1 (parag0n, 2013-01-09 12:57) → Revision 2/6 (parag0n, 2013-01-09 12:58)

h1. LGC Documentation 

 This page is intended to be full documentation of the LGC (laser g-code?) file format as used by LAOS.    All dimensions are in uM, so multiply your millimeter values by 1000.  

 An LGC file looks like this: 

 <pre> 
 0 0 0 
 7 100 10000 
 7 101 10000 
 0 1000 1000 
 1 1000 11000 
 1 11000 11000 
 1 11000 1000 
 1 1000 1000 
 </pre> 

 Each command line of an LGC file starts with a number, which is the command.    Depending on the command given, the file can then have a number of parameters, seperated by spaces to tell the command what to actually do. 

 h2. 0 - Move 

 <pre>0 1000 1000 
 0    X     Y     </pre> 

 The 0 Command moves the laser head to the coordinates specified with the laser turned off.    The command above will move the laser head to X=1mm, Y=1mm 

 h2. 1 - Cut 

 <pre>1 10000 10000 
 1    X     Y     </pre> 

 The 1 Command moves the laser head to the coordinates specified with the laser turned on.    The command will activate the laser, then will move the laser head to X=10mm, Y=10mm, cutting all the way 

 h2. 2 - Move Z 

 <pre>2 10000 
 2    Z</pre> 

 The 1 Command moves the laser head to the coordinates specified with the laser turned on.    The command will activate the laser, then will move the laser head to X=10mm, Y=10mm, cutting all the way