gSender vs Universal GCode Sender

Hi
a few years ago I built an Arduino controlled CNC machine and have used the UGS to control the CNC.
I recently stumbled on and I really like its features.
However, I get an error with gSender that I don’t get when I use USG
(See below gCode)

              G0Z20.000H1
              G0X0.000Y0.000S12000M3
              G0X-269.000Y-186.000Z5.000
              G1Z-2.923F1200.0
              ok
              ok
              error:20 (Unsupported command)
              ok
              ok
              ok

I also have a question about the firmware.
Initially I installed the firmware using these instructions GRBL Arduino Library – Use the Arduino IDE to flash GRBL directly to your Arduino | Protoneer.co.nz which is the company that supplied the shield I’m using.

What Firmware I should choose in the Firmware Tab for my machine?

Is the H1 in that line the problem? I’m not an expert by any means but I’ve never seen the H1 before. On my test device I get the error with the H1 but not without. I’m guessing that command is not supported.

@Sammy @_Michael I believe that Michael has hit it. Nothing that I can find shows an H command in grbl. What cam software did you use to create the gcode?

@Sammy To add to this question… What post processor?

1 Like

I used Cut2d v10.5
the post processor was Gcode ATC (mm)
I took a look at the post processor and it seems the ‘H’ relates to the Post processor, the comments say so :slight_smile:
see below

+================================================
+

  • G Code ATC - Vectric machine output configuration file

+================================================
+

  • History
  • Who When What
  • ======== ========== ===========================
  • Tony 02/08/2005 Written
  • Tony 12/03/2006 Added ATC option for Tommy Coates
  • Tony 02/08/2006 Added H offset for ATC
  • Tony 07/08/2006 Created mm version
    +================================================

POST_NAME = “G Code ATC (mm) (*.gcode)”

FILE_EXTENSION = “gcode”

UNITS = “MM”

±-----------------------------------------------

  • Line terminating characters
    ±-----------------------------------------------

LINE_ENDING = “[13][10]”

±-----------------------------------------------

  • Block numbering
    ±-----------------------------------------------

LINE_NUMBER_START = 0
LINE_NUMBER_INCREMENT = 10
LINE_NUMBER_MAXIMUM = 999999

+================================================
+

  • Formating for variables

+================================================

VAR LINE_NUMBER = [N|A|N|1.0]
VAR SPINDLE_SPEED = [S|A|S|1.0]
VAR FEED_RATE = [F|C|F|1.1]
VAR X_POSITION = [X|C|X|1.3]
VAR Y_POSITION = [Y|C|Y|1.3]
VAR Z_POSITION = [Z|C|Z|1.3]
VAR X_HOME_POSITION = [XH|A|X|1.3]
VAR Y_HOME_POSITION = [YH|A|Y|1.3]
VAR Z_HOME_POSITION = [ZH|A|Z|1.3]

+================================================
+

  • Block definitions for toolpath output

+================================================

±--------------------------------------------------

  • Commands output at the start of the file
    ±--------------------------------------------------

begin HEADER

“T[T]M6”
“G17”
“G0[ZH]H[T]”
“G0[XH][YH][S]M3”

±--------------------------------------------------

  • Commands output at toolchange
    ±--------------------------------------------------

begin TOOLCHANGE

“M0”
“M06T[T]”
“G43H[T]”
“[S]M03”

±--------------------------------------------------

  • Commands output for rapid moves
    ±--------------------------------------------------

begin RAPID_MOVE

“G0[X][Y][Z]”

±--------------------------------------------------

  • Commands output for the first feed rate move
    ±--------------------------------------------------

begin FIRST_FEED_MOVE

“G1[X][Y][Z][F]”

±--------------------------------------------------

  • Commands output for feed rate moves
    ±--------------------------------------------------

begin FEED_MOVE

“[X][Y][Z]”

±--------------------------------------------------

  • Commands output at the end of the file
    ±--------------------------------------------------

begin FOOTER

“G0[ZH]”
“G0[XH][YH]”
“M30”

@Sammy Obviously, I was wrong about the H code. I have no idea if that is causing your issue, but I would bet that @NeilFerreri will know.

Just a question if you don’t mind. Do you have an automated tool changer on your machine?

Hi gwiki
thanks for your help.
I don’t have an automated tool changer, but I do think that post processor is the problem
I cant remember why I chose that one in the first place , but I’m going to try gCode_mm tomorrow and see how that goes

@Sammy That may be a good idea. You can also try grbl mm. This is the one recommended for the arduino-controlled Long Mill. Since your machine is also arduino controlled, it would be a good place to start.

1 Like