Project

General

Profile

LGC Documentation » History » Version 2

parag0n, 2013-01-09 12:58

1 1 parag0n
h1. LGC Documentation
2
3
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. 
4
5
An LGC file looks like this:
6
7
<pre>
8
0 0 0
9
7 100 10000
10
7 101 10000
11
0 1000 1000
12
1 1000 11000
13
1 11000 11000
14
1 11000 1000
15
1 1000 1000
16
</pre>
17
18
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.
19
20
h2. 0 - Move
21
22
<pre>0 1000 1000
23
0  X   Y   </pre>
24
25
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
26
27
h2. 1 - Cut
28
29
<pre>1 10000 10000
30
1  X   Y   </pre>
31
32
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
33 2 parag0n
34
h2. 2 - Move Z
35
36
<pre>2 10000
37
2  Z</pre>
38
39
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