ZenXY FluidNC RMRRF 2024

to be safe stick with 15 and UIv2

Whew. It was saved in my phone. I am in.

What is you add those directly to the config, instead of reading a file (until you want it to read the code file of course)

macros:
  startup_line0: $HY&G1$Y0&F600&$HX&G1&X50&Y50&F60
  startup_line1: $SD/Run=drill.nc
  macro0: 
  macro1: 
  macro2:
  macro3:
  after_homing: $SD/Run=drill.nc
  after_reset:
  after_unlock: 

I assume “&” means space…

Or add some buttons to trigger MAcro 0-3 then trigger each line by a button in order. Home y, move, home X, run file??

startup_line0: $HY&G1Y0F600

That works fine.

startup_line0: $HY&G1Y0F600&$HX

That doesn’t do the X homing. No errors printed though.

macros:
   startup_line0: $HY&G1Y0F600
   startup_line1: $HX&G1X50Y50F600

I thought this was going to work. It does the G1 X50 Y50 move. But it skips homing X.

Why would it not do that. We can trigger it manually, what is the difference? In the terminal are any commands spit out after you run them manually? like can we insert an idle command or something.

Maybe it counts it as the same line, “You can put multiple commands on a single line of gcode as long as no two, or more, of the commands are in the same modal group. For example G20 (inch mode) and G21 (millimeter mode) both belong to the units group. You cannot put both G20 and G21 on the same line.”

How about, startup_line0: $HY&G1$Y0&F600&$HX&X50&Y50

I don’t understand when you are putting in & and when you are putting in $'s.

I tried this, and it skips over the HX:

$HY&G1Y0F600&$HX&G1X50Y50F600

This time I tried: running home_1.g, so it was at Y=0. And then changing the config to this:

$HX&G1X50Y50F600

And that ran the X homing and went to 50,50. So I think you are onto something. It doesn’t like HX after an HY. Maybe I can try a G1 and then HX to see if it skips that.

But you can do a Hy and then an Hx in the terminal right?

It also skipped the $HX in this startup script:

G1Y0F600&$HX&G1X50Y50F600

My assumption is that $ is only for the special commands (like $HY) and & connects two commands at once.

Yes. But not in a single gcode script.

I will be in teh shop shortly and can stop just throwing random ideas at you and try some myself.

FWIW, the random ideas are great. We are learning a lot.

There must be something that happens in between that we can command then?

is there a verbose mode we can see if we are missing a command

oh, I think it needs to receive an “ok” before it runs the next command.

http://wiki.fluidnc.com/en/features/serial_terminals#sending-data