Bug: RRF 3.3beta2 - G92 B0 changes E axis position
-
Related to this topic:
https://forum.duet3d.com/topic/21815/syringe-pumps-depositing-viscous-materials/18?_=1616236469240
Having an issue where running commands using triggers behave differently to using console and spotted a bug. The following runs as expected. Please note the speech marks are containing responses from the Duet, the square brackets just comments from me.
M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:0.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" G1 E50 F500 [Correct syringe moves] M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" M584 "Driver assignments: X0 Y1 Z2 (r)(c)B4 E3, 4 axes visible" M584 E4 B3 ; Swap drives M584 "Driver assignments: X0 Y1 Z2 (r)(c)B3 E4, 4 axes visible" M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" M574 B1 S1 P"xstop" ; Set limit M574 "Endstop configuration: X: low end switch connected to pin nil Y: low end switch connected to pin nil Z: low end switch connected to pin nil B: low end switch connected to pin xstop" M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" G92 B0 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000 G91 G1 H1 B-100 F400 ; Drive empty syringe to limit. [Correct syringe moves] M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" G90 M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" G1 E50 F500 [Correct syringe moves] M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:100.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" M584 "Driver assignments: X0 Y1 Z2 (r)(c)B3 E4, 4 axes visible" M584 E3 B4 ; Swap drives M584 "Driver assignments: X0 Y1 Z2 (r)(c)B4 E3, 4 axes visible" M574 "Endstop configuration: X: low end switch connected to pin nil Y: low end switch connected to pin nil Z: low end switch connected to pin nil B: low end switch connected to pin xstop" M574 B1 S1 P"ystop" ; Set limit M574 "Endstop configuration: X: low end switch connected to pin nil Y: low end switch connected to pin nil Z: low end switch connected to pin nil B: low end switch connected to pin ystop"
Now things go screwy:
M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:100.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000" G92 B0 M114 "X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:50.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000"
Why has setting the machine B axis position to 0 removed 50 from the E axis position?
I'm no closer to uncovering the problem that I'm trying to fix but wanted to report the above issue with the beta as soon as possible.
-
Is this a confirmed bug in 3.3beta2?
-
-
@Diamondback Looks possible yes.
-
@dc42 @droftarts @T3P3Tony : As per a few messages back please can one of you please confirm this bug.
-
Yes sorry for the delay. You've given us a lot to chew through.
-
@Phaedrux cheers, happy that they've been picked up on and me trying out some less common processes may have brought some fruit for the beta testing. With any luck the issues will be a different perspective on exisiting issues that helps with other current challenges.
Edit: Are you a part of the official Duet team now too or helping out keep things in track on the website?
-
@DocTrucker, when this code executed from the trigger, was anything else happening? I am wondering whether the change in E value may have been caused by a command executed on another channel.
-
@dc42 in this example I was running through the code line by line in the command terminal on DWC while the machine was idle.
-
@DocTrucker, thanks. Please can you try the firmware build at https://www.dropbox.com/sh/6203euyyobllic5/AABTHIbn7F_maK9p-oy7vq3Ea?dl=0, which includes a fix for the other G92 issue.
-
@dc42 Thanks, I will try to have a go on it over the weekend, Monday at latest.
-
Error: M997: In-application programming binary "0:/firmware/Duet2_SDiap32_WiFiEth.bin" not found
I don't normally have a firmware folder?
I re-ran the tests today and this is the shortest way of replicating the issue:
29/03/2021, 19:30:32 Emergency stop, attemping to reconnect... 29/03/2021, 19:30:39 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:0.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000 29/03/2021, 19:30:47 G1 E1 F500 29/03/2021, 19:30:47 G1 E1 F500 29/03/2021, 19:30:48 G1 E1 F500 29/03/2021, 19:30:53 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:3.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000 29/03/2021, 19:31:00 G92 B0 29/03/2021, 19:31:04 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:1.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000
Can we have another 't' in attempting please?
-
3.3 adds the use of a /firmware folder to help clean up the sys folder.
Are you also using DWC 3.3 beta2?
You may need to create the folder manually and move your firmware files over.
-
@phaedrux said in Bug: RRF 3.3beta2 - G92 B0 changes E axis position:
You may need to create the folder manually and move your firmware files over.
It's sufficient just to upload the IAP file through DWC again.
-
I'll have a go first thing tomorrow. Things overran today.
-
This post is deleted! -
@dc42 Problem remains...
30/03/2021, 08:28:39 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:0.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000 30/03/2021, 08:28:52 G1 E1 F500 30/03/2021, 08:28:53 G1 E1 F500 30/03/2021, 08:28:53 G1 E1 F500 30/03/2021, 08:28:58 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:3.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000 30/03/2021, 08:29:06 G92 B0 30/03/2021, 08:29:09 M114 X:0.000 Y:0.000 Z:0.000 B:0.000 E:0.000 E0:1.0 Count 0 0 0 0 Machine 0.000 0.000 0.000 0.000 Bed comp 0.000
Contents of system folder: https://www.dropbox.com/s/7c18bi3c23hz3bc/210330_download.zip?dl=0
Board: Duet 2 Ethernet (2Ethernet)
Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.3beta2+1 (2021-03-26)
Duet Web Control 3.3.0-b2 -
@doctrucker, thanks, I've reproduced that. Looking into it now.
-
Fixed in next 3.3beta.
-
@dc42 great!