crispy1
Posts: 9
Joined: Thu Jun 13, 2013 10:48 pm

Bug - 2.1.0 - Variables in custom gcode are not replaced

Mon Apr 14, 2014 6:40 pm

Expected behavior:
Variables used in custom gcode in the scripts tab should be replaced with the appropriate value. For example:

Code: Select all

M140 S[bed_temperature]
Should become:

Code: Select all

M140 S45
Actual behavior:
Variables are not substituted and are left in the generated gcode file. This results in the heaters not being set to the correct temperatures.

Variables worked fine in the previous version, this issue is new to 2.1.0.
Did the variable names change?

Separately, would it be possible to get a complete list of all variables Simplify will recognize in custom gcode?

crispy1
Posts: 9
Joined: Thu Jun 13, 2013 10:48 pm

Re: Bug - 2.1.0 - Variables in custom gcode are not replaced

Tue Apr 15, 2014 8:21 am

Kind of fixed. Variables need to be renamed as follows:

Code: Select all

[bed_temperature] => [bed#_temperature]
[primary_extruder_temperature] => [extruder#_temperature]
Where # is the toolhead number in the temperature tab of the FFF settings.

Not sure about other variables since those are the only 2 I am using.

Return to “Troubleshooting and Bug Reports”