Move Head Controls does not use relative positioning

edited July 2021 in Bug Reports
Hello,

moving printer head with arrow controls in the UI should temporarily switch to relative positioning (G91) and after axis move switch back to absolute (G90) because it leads to strange behaviors like these on my Prusa I3 MK3S.

Send:20:12:40.334: N93 G28 W
Send:20:12:40.334: N94 M114
Recv:20:12:40.344: X:12.00 Y:6.00 Z:0.15 E:0.00 Count X: 12.00 Y:6.56 Z:0.15 E:0.00
Recv:20:12:40.344: ok
Recv:20:12:40.799: tmc2130_home_enter(axes_mask=0x01)
Recv:20:12:41.769: 0 step=14 mscnt= 224
Recv:20:12:41.769: tmc2130_goto_step 0 13 2 1000
Recv:20:12:41.826: tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x01
Recv:20:12:41.940: tmc2130_home_enter(axes_mask=0x02)
Recv:20:12:42.457: echo:busy: processing
Recv:20:12:42.936: 0 step= 1 mscnt= 31
Recv:20:12:42.940: tmc2130_goto_step 1 49 2 1000
Recv:20:12:43.018: tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x02
Recv:20:12:44.345: ok
Recv:20:12:44.353: X:12.00 Y:6.00 Z:0.15 E:0.00 Count X: 12.00 Y:6.56 Z:0.15 E:0.00
Recv:20:12:44.353: ok
The coordinates of the head are displayed in the Move Control Box. When I want to move head 10 mm to the right it moves to position
Recv:20:37:50.846: X:22.00 Y:6.00 Z:0.15 E:0.00 Count X: 22.00 Y:6.56 Z:0.15 E:0.00
but the UI displays X: 10.00. Then if I move head 10 mm to the left it does not move at all  but the UI displays X: 0.00

This happens when parameter in /usr/local/Repetier-Server/firmware/marlin.xml is by default
<motionCommands positonReport="relative">
If I change it to
<motionCommands positonReport="absolute">
Starting position after G28 W is
Recv:20:12:44.353: X:12.00 Y:6.00 Z:0.15 E:0.00 Count X: 12.00 Y:6.56 Z:0.15 E:0.00
Move 10 mm to the right moves head to position
Recv:20:54:06.088: X:10.00 Y:6.00 Z:0.15 E:0.00 Count X: 10.00 Y:6.56 Z:0.15 E:0.00
but it should be 22.00.

Another test:

Starting position after G28 W is
Recv:20:12:44.353: X:12.00 Y:6.00 Z:0.15 E:0.00 Count X: 12.00 Y:6.56 Z:0.15 E:0.00
Move 1 mm to the left
Recv:21:11:40.406: X:0.00 Y:6.00 Z:0.15 E:0.00 Count X: 0.00 Y:6.56 Z:0.15 E:0.00
Move bed 1 mm up to front 
Recv:21:15:59.275: X:0.00 Y:-1.00 Z:0.15 E:0.00 Count X: 0.00 Y:-0.44 Z:0.15 E:0.00
WTF?

Comments

Sign In or Register to comment.