Fail to read my position while using G1 H3
-
Hello everyone, I'm using the sensorless homing for the X axis.
On my GCode routine, once I've done the homing process and the position is stored to 0 (forced by the G92 X0 code) I would like to move that axis till the opposite and with the G1 H3 parameter stop the movement and store my new position.
Once I use this H3 gcode parameter, my Duet 2 allows me to move along the axis but ignores the real position of the machine, but it never stores to the new position o in the case I home the axis again it never turns back to 0. Can someone help me?
Thanks in advance -
@agusano you should not be using G92 X0 after the homing move. A G1 H1 move will set the position to the limit you have set in M208.
After the G1 H3 move completes, you should be able to read the position from move.axes[0].userPosition or move.axes[0].machinePosition.
-
Post your config.g and homing files.
-
@dc42 Thank you for your response. I've found that my problem was related to my fw version so it does'nt work properly. Now i read my position without any problem, but i would like to know if it is possible to read the position from one axis neither than from all the axis as the M114 does. Thank you!
-
@agusano said in Fail to read my position while using G1 H3:
@dc42 Thank you for your response. I've found that my problem was related to my fw version so it does'nt work properly. Now i read my position without any problem, but i would like to know if it is possible to read the position from one axis neither than from all the axis as the M114 does. Thank you!
Yes, you can report the position to console like this:
echo move.axes[0].userPosition