how do i do dual endstops for X and Y axis on my cnc
-
@shante said in how do i do dual endstops for X and Y axis on my cnc:
G1 H2 X5 F6000 ; go back a few mm
@shante said in how do i do dual endstops for X and Y axis on my cnc:
G1 H2 Y5 F6000 ; go back a few mm
Remove the H2 on those moves in your homing files. It's ok on the Z axis.
@shante said in how do i do dual endstops for X and Y axis on my cnc:
G1 H1 X-235 F1800 ; move quickly to X axis endstop and stop there (first pass)
@shante said in how do i do dual endstops for X and Y axis on my cnc:
G1 H1 Y-235 F1800 ; move quickly to Y axis endstop and stop there (first pass)
You need to increase the distance of the first homing moves. They must be longer than your axis length.
@shante said in how do i do dual endstops for X and Y axis on my cnc:
M584 X0:3 Y1:2 Z4 P3 ; set drive mapping
Why do you have P3?
-
@Phaedrux said in how do i do dual endstops for X and Y axis on my cnc:
Ok, removed H2 and increased the distance in both home.g files. Thanks.
But nothing changed, X homing OK, Y does not.Why do you have P3?
Isn't that P3 to show those 3 axes? To home them and move them?
-
@shante said in how do i do dual endstops for X and Y axis on my cnc:
@Phaedrux said in how do i do dual endstops for X and Y axis on my cnc:
Ok, removed H2 and increased the distance in both home.g files. Thanks.
But nothing changed, X homing OK, Y does not.Why do you have P3?
Isn't that P3 to show those 3 axes? To home them and move them?
You can leave the P3 off entirely. It's mainly used for when you have multiple temporary axis like UVW. You're not doing anything like that since with RRF3 you don't need to split up the axis for homing anymore.
What exactly happens with the Y axis when you do homey?
Does it move in the correct direction towards the endstop?
Does it stop before it hits the endstop?
If you click the endstop by hand while it's moving does it stop the axis? -
@Phaedrux said in how do i do dual endstops for X and Y axis on my cnc:
You can leave the P3 off entirely. It's mainly used for when you have multiple temporary axis like UVW. You're not doing anything like that since with RRF3 you don't need to split up the axis for homing anymore.
What exactly happens with the Y axis when you do homey?
Does it move in the correct direction towards the endstop?
Does it stop before it hits the endstop?
If you click the endstop by hand while it's moving does it stop the axis?P3 removed.
when i try to home Y. Steppers are moving, direction is ok. They both hit endstops, if misaligned stepper that did not hit the unstop is mooving until he does hit endstop. Then they move back together, and together in correct direction moving lowly towards endstops. However only one endstop is triggered and then steppers stops, homig ends as homed. -
@shante Can you send M98 P"config.g" in the console and report the response?
M574 Y1 S1 P"ystop+zstop" Do both endstop LEDs work correctly when you manually click the switch?
-
@Phaedrux they do, if tested manualy and in first homing pas. After second pas, that slow approach, only one is triggered, Ystop, and Zstop is not. Stepper do not come close to trigger it, its like 0.5mm away.
-
@shante Can you send M98 P"config.g" in the console and report the response? Also the results of M122 please.
-
@Phaedrux
M98 P"config.g"
HTTP is enabled on port 80
FTP is disabled
TELNET is disabled
Warning: Macro file config-override.g not foundm122 === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2.2 running on Duet WiFi 1.02 or later Board ID: 08DGM-9T6BU-FG3S4-6J1FL-3SN6S-9SNRH Used output buffers: 4 of 24 (20 max) === RTOS === Static ram: 23460 Dynamic ram: 72128 of which 52 recycled Never used RAM 16440, free system stack 119 words Tasks: NETWORK(ready,187) HEAT(blocked,366) MAIN(running,543) IDLE(ready,20) Owned mutexes: WiFi(NETWORK) === Platform === Last reset 00:00:50 ago, cause: software Last software reset at 2021-02-25 21:13, reason: User, GCodes spinning, available RAM 16408, slot 2 Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a Error status: 0x00 Aux0 errors 0,0,0 MCU temperature: min 38.0, current 38.4, max 38.6 Supply voltage: min 24.0, current 24.1, max 24.2, under voltage events: 0, over voltage events: 0, power good: yes Driver 0: position 0, standstill, SG min/max 0/109 Driver 1: position 0, standstill, SG min/max not available Driver 2: position 0, standstill, SG min/max not available Driver 3: position 0, standstill, SG min/max 0/69 Driver 4: position 0, standstill, SG min/max not available Driver 5: position 0 Driver 6: position 0 Driver 7: position 0 Driver 8: position 0 Driver 9: position 0 Driver 10: position 0 Driver 11: position 0 Date/time: 2021-02-25 21:14:03 Cache data hit count 60171643 Slowest loop: 8.73ms; fastest: 0.21ms I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0 === Storage === Free file entries: 10 SD card 0 detected, interface speed: 20.0MBytes/sec SD card longest read time 3.2ms, write time 1.5ms, max retries 0 === Move === DMs created 83, maxWait 34339ms, bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves 10, completed moves 10, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1 === GCodes === Segments left: 0 Movement lock held by null HTTP is idle in state(s) 0 Telnet is idle in state(s) 0 File is idle in state(s) 0 USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger is idle in state(s) 0 Queue is idle in state(s) 0 LCD is idle in state(s) 0 Daemon is idle in state(s) 0 Autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 201.46ms; fastest: 0.11ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions HTTP sessions: 2 of 8 - WiFi - Network state is active WiFi module is connected to access point Failed messages: pending 0, notready 0, noresp 1 WiFi firmware version 1.25 WiFi MAC address cc:50:e3:4a:ad:68 WiFi Vcc 3.31, reset reason Turned on by main processor WiFi flash size 4194304, free heap 25680 WiFi IP address 192.168.1.81 WiFi signal strength -73dBm, mode 802.11n, reconnections 0, sleep mode modem Clock register 00002002 Socket states: 0 0 0 0 0 0 0 0
M122 sent after homig X and Y
-
@shante said in how do i do dual endstops for X and Y axis on my cnc:
when i try to home Y. Steppers are moving, direction is ok. They both hit endstops, if misaligned stepper that did not hit the unstop is mooving until he does hit endstop. Then they move back together, and together in correct direction moving lowly towards endstops. However only one endstop is triggered and then steppers stops, homig ends as homed.
So they are aligning properly on the first pass until both endstops are triggered, but not on the second pass?
Can you make a video showing what's happening?
-
So they are aligning properly on the first pass until both endstops are triggered, but not on the second pass?
Can you make a video showing what's happening?
Yes, exactly.
No video yet, as im rewiring endstop and stepper. Tried replaced endstop, no joy.
New wiring will be with yet another endstop, we will see.Do i need to split steppers if adding offset to one of steppers will be needed?
If so can you write me example code how to do that? -
@shante Some videos/photos of the setup would help to understand what's going on.
-
After rewiring(new wires for stepper and endstop) and new endstop, issue is gone...
Thank you @Phaedrux for your help and patience with me.