Duet Wifi 2 MPCNC confussed.
-
You would have to define them in the firmware using M574 command.
What firmware version are you using?
https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M574_Set_endstop_configuration
-
@phaedrux Thank you for responding to me, It is late here now but I will let you know tomorrow when I get home from work if that is ok.
-
@phaedrux I have uploaded my config.g file in the hope this will help. I'm sorry to be a pain but it's been so long since I set it up I have forgotten everything, even to the point it took me 2 nights to change the wifi settings due to not remembering you need 2 apostrophes in replacement of 1.Config.g
-
Your config has no endstops defined. I can tell you what they should look like, but I need to know what firmware version you're using and where the endstops are connected and what type of endstops they are. You know all the details of the printer, I know nothing about it other than what you tell me.
The two links above should give you all the info you need to get it going, otherwise give me some details and I can help you out.
-
@phaedrux Thanks, I think I am nearly there. I have now defined the endstops but can not get them quite right.
They are Makerbot mechanical, I have added this to my config.g
M574 X1 S1 P"!io1.in"
M574 Y1 S1 P"!io1.in"
but it seems this isn't quite right as they show not hit but do not change when pressed whereas if I change it to
M574 X0 S0 P"!io1.in"
M574 Y0 S0 P"!io1.in"
They show hit and when pressed changes to No. Clearly I need to invert them but once again I am lost as I only stumbled across these settings by chance.
I have the endstops plugged into Ystop and Xstop respectively, this is my firmware and I am hoping to use the endstops at 0,0 which is front left of my machine.Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet WiFi 1.02 or later
Firmware Version: 3.0 (2020-01-03b3)
WiFi Server Version: 1.21
Web Interface Version: 1.22.6 -
@andys76 said in Duet Wifi 2 MPCNC confussed.:
Firmware Version: 3.0 (2020-01-03b3)
WiFi Server Version: 1.21
Web Interface Version: 1.22.6You are very much out of date and mismatched. Before proceeding further I would suggest updating.
If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them first. Reboot after each. Use M115 in the gcode console to verify the firmware has been applied.
https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2and3Firmware-3.3.zip
That will get your firmware and DWC up to date and ensure you have all the files needed. It starts with 2.05.1 just in case you ever need to go back to RRF2.For the endstops, There is no such thing as X0 S0.
X1 for low end of travel, X2 for high end of travel.
It will always be S1 as well. If you need to invert the pin signal you add or remove the
!
from in front of the pin name.You also list io1.in twice for both x and y, which can't be right. If you are using xstop and ystop.
So it should likely be
M574 X1 S1 P"xstop"
M574 Y1 S1 P"ystop" -
@phaedrux You are a star. I will start looking at the firmware tomorrow, like I said it's been a very long time since I built this and even then I was following a youtube tutorial. I was hoping it would all come back but alas I'm just another beginner starting over lol.
-
You can see the change logs here:
https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.xFor your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
https://configtool.reprapfirmware.org/StartBackup your existing config files in the sys folder in case you want to switch back to RRF2. It’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.
These documents will come in handy during the conversion.
https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
https://duet3d.dozuki.com/Wiki/Gcode -
@phaedrux Thank you, I will try and get my head around it all over the next couple of days. Do you think I should try the M574 X1 S1 P"xstop" you said about first and if it works back it up like that rather than just backing up my config without the endstops being configured?
-
@andys76 said in Duet Wifi 2 MPCNC confussed.:
Do you think I should try the M574 X1 S1 P"xstop"
Yes. And same for y axis with
M574 Y1 S1 P"ystop"
You can never have too many backups.
-
@phaedrux you are amazing, I had to invert them to get them to work correctly but it is now doing what it should. I am going to leave it like this for now so I can use it whilst looking into the updates you have listed. I will back everything up now so I can have a play with the firmware in a few days time.
If only I had known how easy it was to configure the endstops I would have added them when I built this.Thank you once again for your help I'll try not to wreck it all now when I do the firmware upgrade.