User Tools


Gcode templates in Photonic3D are based on http://freemarker.org/ and these variables:

  1. `now` = The current time and date as a java.util.Date.
  2. `shutterOpen` = The state of whether the shutter should be open at the time this gcode executes.
  3. `bulbHours` = The number of hours that your projector's bulb has been turned on. (Your projector must support this feature)
  4. `CURSLICE` = Zero based index of the current slice being shown on your light source.
  5. `LayerThickness` = The height in MM of the each slice.
  6. `ZDir` = The direction that printer prints 1=Bottom_Up -1=Top_Down
  7. `ZLiftRate` = The speed that the printer moves in mm per second.(This can be dynamic based on calculators)
  8. `ZLiftDist` = The distance that the printer will move when performing a pear sequence.(This can be dynamic based on calculators)
  9. `buildAreaMM` = The surface area of the platform that is covered by lighted pixels measured in MM square.
  10. `LayerTime` = The amount of time to spend on exposing a layer with the light source measured in MM.(This can be dynamic based on calculators)
  11. `FirstLayerTime` = The amount of time to spend exposing the “first” layers with the light source measured in MM.
  12. `NumFirstLayers` = The number of “first” layers to be exposed with the “FirstLayerTime” variable above.
  13. `SlideTiltVal` = A variable that means nothing to Photonic3D. (yet)
  14. `buildPlatformXPixels` = The count of pixels from left to right.
  15. `buildPlatformYPixels` = The count of pixels from top to bottom.
  16. `pixelsPerMMX` = The number of pixels(from left to right) that are in a single MM as defined and calibrated with your light source on the printer controls page.
  17. `pixelsPerMMY` = The number of pixels(from top to bottom) that are in a single MM as defined and calibrated with your light source on the printer controls page.
  18. `hostProperties` = A variable that contains all of the settings that Photonic3D has been setup with from it's config.properties file.
  19. `job` = A variable(org.area515.resinprinter.job.PrintJob) that contains all information related to the print job that this gcode is being executed.
  20. `printer` = A variable(org.area515.resinprinter.printer.Printer) that contains all the information related to the printer and it's related configuration that this gcode is being executed.