What's wrong with this macro
-
I have this macro whose goal is to move 1mm in the x direction very very low, over 1 minute. It does go to 100, 100 and then to 101, 100 but the second movement is immediate, not over 1 minute.
What am I missing?
G90 ; absolute positioning G1 X100, Y100 ; starting point G1 X101 F1 ; move 1mm over 1 minute.
-
set speed for line 2 as you do not necessarily know what the current speed setting is ... and if I misunderstand the issue, drop the speed parameter on line 2 so it goes at the same speed as line 2 .....
Hope that helps
Edit: .... I now believe I don't properly understand your problem based on your explanation .... shouldn't have replied. -
Thanks @jens55. I want line 2 to move in normal speed (it does) and line 3 to go very slow, moving 1mm over 1 minute (it doesn't it moves fast). In other words, I expect the macro to run for about 1 minute instead of of only a second or two.
-
Remove the F1 from line 3
Between line 2 and line 3 insert G0 F1.
See if that makes a difference.
Frederick
-
@zapta said in What's wrong with this macro:
G1 X100, Y100
Is that comma actually in there?
I wonder if this is applying to you here:
For CNC users especially: RRF has a default minimum movement speed of 0.5mm/sec. In firmware 2.03 and later this can be changed using the I ('i') parameter of the M203 command.
https://docs.duet3d.com/en/User_manual/Reference/Gcodes#feedrate
-
Thanks @phaedrux and @fcwilt, the issue was the M203 I that @Phaedrux mentioned. Removing the comma and adding a G0 F1 didn't make a change. This is the working version:
G1 X100 Y100 ; starting point M203 I1 ; allow slow movements G1 X103 F1 ; move slowly
BTW, @Phaedrux, the title of M203 mentions just maximum, no minimum. May worth updating.