Dear Marlin Support Team,
I hope this message finds you well. My name is [Your Name], and I am currently exploring the feasibility of implementing a specific G-code sequence within the Marlin firmware for my CNC setup. I would appreciate your guidance on whether this code is compatible and can be effectively utilized.
------------------------
; Initial settings
G21 ; Set units to millimeters
G90 ; Move to absolute coordinate mode
G92 X0 Y0 ; Set current coordinates to origin
; Select stepper motor (X or U)
#1 = 0 ; 0 for stepper X and 1 for stepper U
; Circle settings
Xc = 10 ; X coordinate of circle center
Yc = 5 ; Y coordinate of circle center
R = 3 ; Circle radius
; Select stepper motor based on condition
IF [#1 EQ 0]
G02 X[Xc + R] Y[Yc] R[R] ; Move in a circle using stepper Y and X
ELSE
G02 U[Xc + R] Y[Yc] R[R] ; Move in a circle using stepper Y and U
END
-------------------
I understand that Marlin supports G-code, and I am curious to know if the provided code aligns with Marlin's capabilities. Your insights on whether this code can be effectively employed for my CNC operations would be greatly appreciated.
Thank you for your time and assistance. I look forward to hearing from you soon.
Best regards