... | ... | @@ -88,11 +88,30 @@ The setting's value can then be queried in file ```printer.lua``` of the printer |
|
|
|
|
|
## ```Printer.lua```
|
|
|
|
|
|
This file specifies how the profile produces g-code that is specific to the printer. This is done through lua functions that are called by IceSL whenever the print process demands it. The list of functions to implement are the following
|
|
|
|
|
|
| Function| Arguments | Description |
|
|
|
| ------ | ------ | ------ |
|
|
|
| cell | cell | cell |
|
|
|
This file specifies how the profile produces g-code that is specific to the printer. This is done through lua functions that are called by IceSL whenever the print process demands it. The list of functions to implement are the following:
|
|
|
|
|
|
| Function| Description |
|
|
|
| ------ | ------ |
|
|
|
| ```header()``` | called at beginning of gcode file creation |
|
|
|
| ```footer()``` | called at end of gcode file creation |
|
|
|
| ```comment(c)``` | called when outputting a comment ```c``` in the gcode file |
|
|
|
| ```layer_start(z)``` | called at the start of a layer at height ```z``` |
|
|
|
| ```layer_stop()``` | called at the end of a layer |
|
|
|
| ```extruder_start()``` | called before extruding |
|
|
|
| ```extruder_stop()``` | called after extruding |
|
|
|
| ```select_extruder(ext)``` | called when selecting the extruder ```ext``` |
|
|
|
| ```swap_extruder(ext1,ext2,x,y,z)``` | called when swapping extruder ```ext1``` to ```ext2``` at position ```x,y,z``` |
|
|
|
| ```prime(ext,e)``` | called when priming quantity ```e``` with extruder ```ext``` |
|
|
|
| ```retract(ext,e)``` | called when retracting quantity ```e``` with extruder ```ext``` |
|
|
|
| ```move_e(e)``` | called when extruding quantity ```e``` with current extruder |
|
|
|
| ```move_xyz(x,y,z)``` | called when traveling to ```x,y,z``` |
|
|
|
| ```move_xyze(x,y,z,e)``` | called when traveling to ```x,y,z``` while extruding ```e``` |
|
|
|
| ```progress(percent)``` | called on each step of producing the gcode; ```percent``` is the total progress of the print |
|
|
|
| ```set_feedrate(rate)``` | called when setting the feed-rate of the printer to ```rate``` |
|
|
|
| ```set_fan_speed(speed)``` | called when setting the part cooling fan velocity to ```speed``` |
|
|
|
| ```set_extruder_temperature(ext,temp)``` | called when setting the extruder ```ext``` temperature to ```temp``` |
|
|
|
| ```set_and_wait_extruder_temperature(ext,temp)``` | called when setting the extruder ```ext``` temperature to ```temp``` while waiting |
|
|
|
| ```set_mixing_ratios(ratios)``` | called when setting the mixing ratios of each filament feeding onto the mixing extruder; ```ratios``` is a table containing the ratio for each filament. This function is only called when using color mixing |
|
|
|
|
|
|
## Material and Profiles
|
|
|
|
... | ... | |