Laser Manual: Difference between revisions

Jump to navigation Jump to search
Line 83: Line 83:
'''Warning:''' you cannot use the "touch off" feature of EMC with a Graster job, it will not work and bad stuff will probably happen. ''Before starting a job, make sure the coordinate system is reset by going to'' Machine -> Zero Coordinate System -> P1 ''(the first option)''.
'''Warning:''' you cannot use the "touch off" feature of EMC with a Graster job, it will not work and bad stuff will probably happen. ''Before starting a job, make sure the coordinate system is reset by going to'' Machine -> Zero Coordinate System -> P1 ''(the first option)''.


Graster is already installed on the laser PC in the bathroom and you should use it there, if possible, because it is still a bit tricky to install.
Graster is already installed on the laser PC you should use it there, if possible, because it is still a bit tricky to install.
 
To use it:
 
# Load the image onto the laser printer.<br/><pre>scp image.png hacklab@laser.hacklab.to/image.png</pre>
# SSH into the laser printer.
# Run the script on your image.<br/><pre>../graster/graster.rb image.png</pre>
# The output results in three files: <br/>&nbsp;&nbsp;&nbsp;&nbsp;image.png.cut.ngc - A box cutout of the image. <br/>&nbsp;&nbsp;&nbsp;&nbsp;image.png.raster.gmask - The gmask file with laser instructions.<br/>&nbsp;&nbsp;&nbsp;&nbsp;'''image.png.raster.ngc''' - This is the main Gcode file that you want to load into the cutter.
 
===Advanced Graster info===


To run Graster yourself, '''you will need Ruby 1.9, not Ruby 1.8'''. At present, the version of 1.9 in the Debian/Ubuntu repository is '''very old''', do not install it. You will have to build Ruby 1.9 (or later) from source (http://www.ruby-lang.org/en/downloads/). You will also need to install RubyGems and a gem called rmagick (which is used to read image files). This is all a bit of a hassle and a simpler install method is planned for ''The Future''.
To run Graster yourself, '''you will need Ruby 1.9, not Ruby 1.8'''. At present, the version of 1.9 in the Debian/Ubuntu repository is '''very old''', do not install it. You will have to build Ruby 1.9 (or later) from source (http://www.ruby-lang.org/en/downloads/). You will also need to install RubyGems and a gem called rmagick (which is used to read image files). This is all a bit of a hassle and a simpler install method is planned for ''The Future''.


Run graster.rb for usage instructions.
Run graster.rb for detailed usage instructions.


The image can be any common format.. PNG is probably best. A job can be configured with command line options or a configuration file. You can generate a default config file with the -g option. A config file looks like this:
The image can be any common format.. PNG is probably best. A job can be configured with command line options or a configuration file. You can generate a default config file with the -g option. A config file looks like this:
12

edits

Navigation menu