Online slicer (Cura) not working

I’ve tried slicing a calibration cube-thing, and the gcode that is generated is wrong in a few ways:

  1. Astroprint is adding gcode that I did not put in my starting gcode section for my printer (see comparisons below)
  2. The Cura online engine is not replacing the variables (or the curly braces are being replaced my Astroprint with question marks, and Cura has no idea what to do with those)

Comparison of starting gcode (preferences) and generated gcode:
Preferences:

G28 ; Home extruder
G1 Z15 F{Z_TRAVEL_SPEED}
M107 ; Turn off fan
G90 ; Absolute positioning
M82 ; Extruder in absolute mode
{IF_BED}M190 S{BED}
; Activate all used extruder
{IF_EXT0}M104 T0 S{TEMP0}
G92 E0 ; Reset extruder position
; Wait for all used extruders to reach temperature
{IF_EXT0}M109 T0 S{TEMP0}

Generated gcode:

;Generated with Cura_SteamEngine 10.09
M104 S195
M109 S195
G28 ; Home extruder
G1 Z15 F?Z_TRAVEL_SPEED?
M107 ; Turn off fan
G90 ; Absolute positioning
M82 ; Extruder in absolute mode
{IF_BED}M190 S?BED?
; Activate all used extruder
{IF_EXT0}M104 T0 S?TEMP0?
G92 E0 ; Reset extruder position
; Wait for all used extruders to reach temperature
{IF_EXT0}M109 T0 S?TEMP0?

So when I try printing this, the following happens:

  1. The hotend starts heating up, WHILE IT IS HOMED against my acrylic bed!!
  2. Once it has reached the 195°C, it re-homes
  3. It then moves 15mm away from the bed (Z+)
  4. It switches off my hotend and the print never starts (I have to reset my printer to be able to use it again)

So far, I’ve had no joy with my Astrobox, and that is a shame because I’m really looking forward to removing the 3 USB extension cords that I have running (on the ground) from my PC to my Printer.

We currently have no support for logic inside the gcode file. Your {IF} statements are causing the problem

And what about these 2 lines being added that is destroying my acrylic bed?

M104 S195
M109 S195

You can remove those from the start gcode in your printer profile.

I believe you are reading my post incorrectly. Those lines are being added by Astroprint!

Yes I was reading incorrectly. Sorry about that. I’ll look into this