Setting up dual endstops

hello community, went ahead and re-wired the MPCNC with Dual endstops and going through the testing phase. I have verified with M119 and the triggers work. I am at the point where this comes in to play

“The unfortunately designated M666 lets you test your offset to quickly calibrate your machine. Using the command M666 X0.72 would offset the X1 stepper 0.72mm away from it’s endstop, Y! can also be used. To verify your current settings during calibration just an M666 will show the current offsets. Once the correct offset are found you should input them into your firmware.”

Firstly: What are the correct offsets, and where do you adjust it in the firmware?

I did what it said… have offset it… typed M666 … it showed me the 2 offsets (X,Y); but when I tried to home it, it crashed to the X. HELP! … didnt mean to scream… Im punching above my weight.
It seems my endstops are not stopping my machine. Is this a firmware issue? did I forget to uncomment something? What do y’all need to help me troubleshoot? Has this happened before (probably but couldnt find it)

good news, I flashed the new firmware no problem this time and all the wiring seems to function properly

They are your knobs. The idea is getting the gantry after home to be perfectly square. If you can’t move your endstops to make it square, you can ask the software to adjust itself after the home.

This has nothing to do with M666. Are you sure that M119 was showing you the right endstop connected in the right place? The Xmin was the endstop next to the x1 motor?

image image

This is where I have the endstops as close as I want to get it before the machine touches itself (7-10mm gap)

I have triggered and tested all endstops and they are in correct position ( the picture is of 0,0)

Whenever I am joggin the machine I try and stop it by triggering the switch… it does not stop

Also, y2 and x2 are in the wrong position… switching them now. I thought thy were supposed to be “max”, so I ran them on the same pole, not in parallel. that being said, they were still triggering as x2 and y2

This is normal. They are only active when homing.

The way this works is:

Home X:
X1 and X2 move towards the negative X direction.
When X1 endstop is triggered, X1 will stop.
When X2 endstop is triggered, X2 will stop.

If X2 endstop doesn’t get triggered, X2 motor will never stop.

So I hope that’s all it is. Some people get X1 amd X2 backwards so x2 motor triggers the X1 endstop, which stops the X1 motor, but the X2 endstop is on the X1 side, so X2 never stops.

knowing it will only do it at homing game me the confidence to do it again.

I have rewired the rig, put the endstop trigger point within .1mm distance.

I auto-homed it (was terrified) and it worked perfectly. Now I will draw a rectangle to see how aligned it is(nt)

Thanks Jeff, been voting for you! This allows me to move to the next stuff!!!

2 Likes

lol, still testing everything out and noticed when I try and print the crown my Z axis now crashes FML … any suggestions. Sorry guys, super noob questions

Can you:

  1. Describe what software pipeline you are using to author the crown. Are you just using the steps from Ryan’s basics…Estlcam and Repeiter-Host? If so, what did you give as the cutting depth for the “engrave?”
  2. Post the first 20 or so lines of the g-code file you are trying to print
  3. Describe how you are establishing the zero Z point for your pen.

Best guess is that you have an engraving depth of 3mm or more, so the software is trying to drive the point of the pen down to that depth. But the above information will help identify the issue.

Definitely start with the premade gcode from test crown.

Now you need some sort of solenoid rig to select colors!

1: was using Etslecam; will now test on repetier host and will let you know. I followed the steps one by one. I did notice that it was plunging down before starting. I flipped the cable as instructed but then it was inverse. It was correct the original way.
2: Send: M105
Recv: ok T:0
Changing monitoring state from “Operational” to “Starting”
Send: N0 M110 N0125
Recv: ok
Changing monitoring state from “Starting” to “Printing”
Send: N1 G90
17
Recv: ok
Send: N2 M03 S18088
Recv: echo:Unknown command: “M03 S180”
Recv: ok
Send: N3 G00 X0.0000 Y0.0000 Z0.0000 F2100
26
Recv: ok
Send: N4 G00 Z5.0000 F48038
Recv: ok
Send: N5 G00 X89.3813 Y20.3441 F2100
112
Recv: ok
Send: N6 G00 Z0.5000 F48036
Recv: ok
Send: N7 G01 Z0.0000 F180 S180
110
Recv: ok
Send: N8 G03 X88.3825 Y20.3930 Z-0.5000 I-11.1041 J-216.7349 F180*60
Recv: ok
Send: N9 G02 X89.3813 Y20.3441 Z-1.0000 I-10.1053 J-216.

3: I home my X,Y on octoprint. Then I push the pen down to table level. It works well to draw the crown… but ends up plunging a little before, pushing the pen up.
4:

1 Like

How deep did you set the engrave when you authored the crown on Etslecam? I wanted to see the first 20 lines of the g-code file, not your responses. These lines will tell at what depth the g-code is trying to cut. Running the crown that Jeff links will also give you some idea of where the plunging is “authored.”

Im new to all this so trying to answer. Let me try again.

Project 0102
;Created by Estlcam version 11 build 11.232
;Machining time about 00:02:00 hours

G90
M03 S24000
G00 X0.0000 Y0.0000 Z0.0000 F2100
G00 Z2.0000 F480

;No. 1: Engraving 5
G00 X82.1388 Y23.0334 F2100
G00 Z0.5000 F480
G01 Z0.0000 F60 S24000
G01 Z-0.0100 F60
G02 X108.0597 Y20.9359 I-2.6002 J-193.3441 F900
G02 X122.7164 Y17.8853 I-18.8275 J-127.1908 F900
G01 X122.0328 Y15.5701 F900
G03 X102.1422 Y19.2849 I-35.3527 J-134.1862 F900
G03 X70.6314 Y20.4936 I-23.9200 J-212.2317 F900
G03 X46.3168 Y18.1463 I5.4165 J-183.2101 F900
G03 X34.4117 Y15.5701 I19.6353 J-119.5345 F900
G01 X33.7282 Y17.8853 F900
G02 X53.9563 Y21.6927 I36.0887 J-136.0933 F900
G02 X82.1388 Y23.0334 I24.0129 J-207.8934 F900
G00 Z2.0000 F480

Maybe I missed it. But did you try the test crown gcode without changing anything? That should eliminate any questions about the machine. Then we can focus on the estlcam basics.

1 Like

after hours and hours… and thankfully an awesome community… I found this code

G92 X0 Y0 Z0

I was not zero-ing my Z axis … I know it was discussed above, but didnt understand. Once I input this code, and then run the crown… no more plunge!!! EUREKA

@robertbu @jeffeb3 thanks for the help and patience. hope this helps someone else in the future

100mm x 100mm square up… I am very happy with the auto-square function

Test crown(s)
image

Yeah. The test crown has that added to the top.

The file I have does not… or Estlcam does not provide it in the starting Gcode.

I posted the Gcode a few post up…I will add the M92 X0 Y0 Z0 to the software now.

I have been converting SVG files since yesterday, trying to make a booklet for a birthday present. Will post in a few days for the community. Thanks again!

Oh, M92 isn’t what you want. That will cause lots of problems. :slight_smile:

I’m happy you’re up and running with your own gcode. But what I was asking was for you to follow the link to the docs, where Ryan has posted a premade gcode file which you can run to check out a new machine. You don’t have to now.