Corexy sandify Error 22 Gcode undefined feed rate

Trying to run a sandify gcode on fluidnc and I get “Error 22 undefined feed rate” and it looks like because sandify does not have a F code after the x y, If I insert an F code it runs. Is there anything I can do in fluidNC to pre-define an F code?

G1 X120.526 Y127.053 - ERROR
G1 X120.526 Y127.053 F100 - WORKS

I’m running a DLC32 with TMC2209
board: MKS-DLC32 V2.1
name: K40 Laser
meta: (01.01.2022) by Skorpi

i2c0:
sda_pin: gpio.23
scl_pin: gpio.18

oled:
i2c_num: 0
i2c_address: 39
width: 128
height: 64
radio_delay_ms: 1000

kinematics:
CoreXY:

stepping:
engine: I2S_STATIC
idle_ms: 250
pulse_us: 3
dir_delay_us: 0
disable_delay_us: 0
axes:
shared_stepper_disable_pin: I2SO.0
x:
steps_per_mm: 100.000
max_rate_mm_per_min: 8000.000
acceleration_mm_per_sec2: 300.000
max_travel_mm: 500.000
soft_limits: false
homing:
cycle: 2
positive_direction: true
mpos_mm: 0.000
feed_mm_per_min: 0.000
seek_mm_per_min: 1000.000
settle_ms: 250.000
seek_scaler: 1.100
feed_scaler: 5.000

motor0:
  limit_neg_pin: gpio.36
  hard_limits: false
  stepstick:
    step_pin: I2SO.1
    direction_pin: I2SO.2

y:
steps_per_mm: 100.000
max_rate_mm_per_min: 8000.000
acceleration_mm_per_sec2: 300.000
max_travel_mm: 500.000
soft_limits: false
homing:
cycle: 1
positive_direction: true
mpos_mm: 0.000
settle_ms: 250.000
feed_mm_per_min: 0.000
seek_mm_per_min: 1000.000
seek_scaler: 1.100
feed_scaler: 5.000

motor0:
  limit_neg_pin: gpio.35
  hard_limits: false
  stepstick:
    step_pin: I2SO.5
    direction_pin: I2SO.6:low

z:
steps_per_mm: 100.000
max_rate_mm_per_min: 1000.000
acceleration_mm_per_sec2: 200.000
max_travel_mm: 300.000
soft_limits: false
motor0:
null_motor:
motor1:
null_motor:

i2so:
bck_pin: gpio.16
data_pin: gpio.21
ws_pin: gpio.17

spi:
miso_pin: gpio.12
mosi_pin: gpio.13
sck_pin: gpio.14

sdcard:
cs_pin: gpio.15
card_detect_pin: NO_PIN

control:

macros:
startup_line0:
startup_line1:
macro0:
macro1:
macro2:
macro3:

coolant:
delay_ms: 1000.00

probe:
check_mode_start: false

start:
must_home: false
$HY
G92 X0 Y0
G0 Y-10
G92 X0 Y0
$HX
G0 X-10
G92 X0 Y0
F4000

arc_tolerance_mm: 0.002
junction_deviation_mm: 0.010
verbose_errors: false
report_inches: false
enable_parking_override_control: false
use_line_numbers: false

I generally put some commands in Sandify’s start code box.

Mostly, it homes the machine, and has a small movement G1 X1 Y1 F600 which sets a feed rate, and the controller will keep that rate from there on out.

On my first table, sometimes the table would lose the ball after homing Y, so it would home the machine without the ball (I had the machine set up so that the magnet was centered under the edge of the table, where the ball could not go.) Then what I would do is add:

G1 X0 Y6 F1200`
G1 X536
G1 X6 F600

To the start code. This moved the machine to its true home at 6,6 which had the ball at the lower left corner. I’ve since fixed the end stop locations so that it doesn’t move the ball outside of the working area, and don’t need that code any longer.

2 Likes

Yeah, I was looking for something a little more automatic but I can’t find any gcode configs you can do in fluidNC.
If I send the command G94 F1000 in the web gui it will run the sandify gcode file but I have to do that after every restart

I add G1 F1000 in sandify in the starting gcode.

I haven’t seen anything to do that automatically or in the fluidnc config.

Great thanks, I’m playing with marlin now because it looks like it can read auto0.g from the sd card on boot, I am going to try and put these commands in that.