Custom GCode Bug in RC7

We’re getting closer! There is a really odd bug with the < character. I’m using the GRBL flavor (with FluidNC gcode) with ^ as the escape character.

I have a user start script of:
#<_IsInitialTool> = 1
The Example preview in the Custom GCode window gets rid of the < but it gets added to the gcode correctly.

If you wrap it in the escape character, it gets rid of the < in the preview and duplicates it. The gcode also duplicates it but does include the < character.


I have this for tool change gcode which behaves the same way, just interesting because it’s multiple lines and duplicates the whole thing.

o102 if [#<_IsInitialTool> EQ 1]
  M0 (MSG, Attach Probe)
  G38.2 Z-110 F200 P0.5 (Probe Down, Set Z0)
  G1 Z10 F900
  M0 (MSG, Remove Probe and Turn On Router)
  #<_IsInitialTool> = 0
o102 else
  $HZ (Home Z)
  G0 X0 Y10 F2520 
  M0 (PRINT, Change to Tool #<_NewTool> and Attach Probe)
  G38.2 Z-110 F200 P0.5 (Probe Down, Set Z0)
  G00 Z10.0000 F500 (Clearance)
  M0 (MSG, Remove Probe and Turn On Router)
o102 endif
1 Like

Thank you for reporting. We have generated a report for the Dev Team’s review. :slight_smile:

2 Likes