Switching from Stable to Unstable versions
-
I'm not sure.
I tried to run this test macro (hoping that IF will work in RC7)
if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed M300 S300 P200 else M300 S100 P200
And got: Code isn't supported
And M300 S100 P200 is being sent to controller with no error replied, though no sound produced. This is new behavior. -
Though homing happens...
-
Conditional Gcode isn't yet supported on Duet3+Pi, but is coming soon.
-
@dc42
I've been using M300 in debug purposes. Figuring out which *.g script just being run or in which part of the script printer now.
In case M300 isn't producing any sounds anymore what would be my method to do this kinda feed back messages? -
You can use M117. You can use object model variables in the M117 command if it helps.
-
One finding since yesterdays RC7 installation.
I started to get (while homing) error messageG28 Z Error: Code is not supported Error: Code is not supported
And I started to figure out where do I have that command. (Btw according to https://duet3d.dozuki.com/Wiki/Gcode#Section_G28_Home that shouldn't cause any errors but anyway)
Then I did download all files from my system directory and searched for "G28" in all *.g files.
And I found one occasion "G28" (without Z parameter) in my start.g which isn't called during homing.
This is why I writing here is there a chance of a bug? That somehow "G28 Z" called automatically? Perhaps when WebUI "Home Z" pressed?
And why it does produce error message...? -
@monster said in Switching from Stable to Unstable versions:
Perhaps when WebUI "Home Z" pressed?
Exactly. G28 Z should be recognised, it is equivalent to G29 Z0. The value of the parameter is ignored.
Are you sure that the error message isn't related to a different command? Although normally the command G- or M-code would be included in the error message.
-
I took a screenshot to show that the error message appears by the end of homingz
Homing z code is below (sorry it is messy at the moment)
; homez.g ; called to home the Z axis ; ; generated by RepRapFirmware Configuration Tool v2.1.8 on Mon Mar 30 2020 01:10:04 GMT+0300 (Eastern European Summer Time) G91 ; relative positioning ;G1 Z10 F500 ; lower the bed slowly because it can already be in lowest position G90 M98 P"quickhomexy.g" G90 ; absolute positioning ;if move.axes[0].homed && move.axes[1].homed && move.axes[2].homed ; G1 H2 X150 Y150 Z15 F3000 ; move quickly to X and Y axis middle (where Z home trigger is) and at the same time bring Z to 15mm befor home spot ;else G1 H2 X150 Y150 F4000 ; move quickly to X and Y axis middle (where Z home trigger is) not moving Z ;G1 H2 Z10 F2000 ; move quickly to 10cm away from expected home G91 ; relative positioning G1 H1 Z-200 F500 ; move Z down until the endstop is triggered ;G92 Z0 ; set Z position to axis minimum (you may want to adjust this) G92 Z2.8 ; Uncomment the following lines to lift Z after probing ;G91 ; relative positioning ;G1 Z10 F2000 ; lift Z relative to current position G90 ; absolute positioning M117 "End of Z homing"
So I could say yes I'm sure.
-
Please post the contents of quickhomexy.g too.
-
Quickhomexy.g
; quickhomexy.g ; called to home x and y axes ; ; generated by RepRapFirmware Configuration Tool v2.1.8 on Mon Mar 30 2020 01:10:04 GMT+0300 (Eastern European Summer Time) M117 "Quick homing X&Y begin" G90 ;if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed ; M98 P"quickhomexy_doublepass.g" ;else ; M98 P"quickhomexy_singlepass.g" if move.axes[0].homed && move.axes[1].homed && move.axes[2].homed M98 P"quickhomexy_singlepass.g" else M98 P"quickhomexy_doublepass.g" ;G91 ; relative positioning ;G1 H1 X-300 Y-300 F900 ; move slowly to X and Y axis endstops once more (second pass) G90 ; absolute positioning M117 "Quick homing X&Y end"
and
;M98 P"quickhomexy_doublepass.g" ;M291 P"Double" M117 "Double pass X&Y homing" G90 G1 H1 X10 Y10 F5000 G91 G1 H1 X-300 Y-300 F4000 G1 X10 Y10 F600 G1 H1 X-20 Y-20 F600
and
; M98 P"quickhomexy_singlepass.g" ; called to home x and y axes ; ; generated by RepRapFirmware Configuration Tool v2.1.8 on Mon Mar 30 2020 01:10:04 GMT+0300 (Eastern European Summer Time) ;M291 P"Single" ;M300 S200 P100 ; play beep - debug sound M117 "Single pass X&Y homing" G90 G1 H1 X10 Y10 F2000 ; move quickly to X and Y axis to 10cm away from expected home (first pass) G91 ; relative positioning G1 H1 X-20 Y-20 F900 ; move slowly to X and Y axis endstops once more (second pass) G90 ; absolute positioning
-
by the way is "move.axes[0].max" is available in RC7 ?
Also is there way to define own constants? E.g. I could define X Y coordinates at witch magnet for Z endswitch is locates and refer to those constants in homing g files. -
@monster said in Switching from Stable to Unstable versions:
by the way is "move.axes[0].max" is available in RC7 ?
Yes.
Also is there way to define own constants? E.g. I could define X Y coordinates at witch magnet for Z endswitch is locates and refer to those constants in homing g files.
Not yet, this is scheduled for firmware 3.02.