In the advanced settings for processes the Scripts section has an area for the G-Code starting script. There are entries in the starting script for the LulzBot Mini (and I assume other printers) where values are substituted for symbolic parameters. For example the line
M140 S[bed0_temperature]
This obviously substitutes the value for the parameter "bed0_temperature" into the code before it is written out.
I would like to see this extended to the "Additional terminal commands for post processing". This would be helpful with complicated post processing instructions such as the one I wrote to do a filament change (see below). In it I was forced to hardcode both the bed and extruder temperatures. Of course this will not get updated if I decide to change one of these temperatures and I will need to edit the script to make changes.
The script I wrote:
------------
{REPLACE "layer 5" "\n; Pause for filament change\n;\n;SES Mods to change filament\nG0 Z80 ; Raise extruder\nM109 S140 ; Cool extruder\nM107 ; Fan Off\nM0 ; Wait for filament change\nM140 S70 ; Set bed temperature\nM109 S200 ; Set extruder temperature and wait\n;SES End Mods\n;\n; layer 5"}
------------
The script I would have preferred:
-----------
{REPLACE "layer 5" "\n; Pause for filament change\n;\n;SES Mods to change filament\nG0 Z80 ; Raise extruder\nM109 S140 ; Cool extruder\nM107 ; Fan Off\nM0 ; Wait for filament change\nM140 S[bed0_temperature] ; Set bed temperature\nM109 S[extruder0_temperature] ; Set extruder temperature and wait\n;SES End Mods\n;\n; layer 5"}
---------