Z limit pins not recognized

Question/Answers related to this version of the board.
Post Reply
gadgets53
Posts: 2
Joined: Thu Mar 12, 2020 8:47 pm

Z limit pins not recognized

Post by gadgets53 » Thu Mar 12, 2020 9:02 pm

Using Arduino Uno with 3.51 CNC shield, GRBL 1.1h, and testing with Universal Gcode Sender (UGS) v2.0. I have attached my wiring diagram and have tested the X and Y switches successfully. However, I do not receive an alarm state when I depress either Z+/- limit switches. I connected the Z switches to the X+/- and was able to trip the alarm which shows the physical switch wiring is okay. The following are my firmware settings:
$0 = 10 (Step pulse time, microseconds)
$1 = 25 (Step idle delay, milliseconds)
$2 = 0 (Step pulse invert, mask)
$3 = 0 (Step direction invert, mask)
$4 = 0 (Invert step enable pin, boolean)
$5 = 0 (Invert limit pins, boolean)
$6 = 0 (Invert probe pin, boolean)
$10 = 1 (Status report options, mask)
$11 = 0.010 (Junction deviation, millimeters)
$12 = 0.002 (Arc tolerance, millimeters)
$13 = 0 (Report in inches, boolean)
$20 = 0 (Soft limits enable, boolean)
$21 = 1 (Hard limits enable, boolean)
$22 = 1 (Homing cycle enable, boolean)
$23 = 0 (Homing direction invert, mask)
$24 = 25.000 (Homing locate feed rate, mm/min)
$25 = 500.000 (Homing search seek rate, mm/min)
$26 = 250 (Homing switch debounce delay, milliseconds)
$27 = 1.000 (Homing switch pull-off distance, millimeters)
$30 = 1000 (Maximum spindle speed, RPM)
$31 = 0 (Minimum spindle speed, RPM)
$32 = 0 (Laser-mode enable, boolean)
$100 = 168.000 (X-axis travel resolution, step/mm)
$101 = 176.000 (Y-axis travel resolution, step/mm)
$102 = 373.000 (Z-axis travel resolution, step/mm)
$110 = 500.000 (X-axis maximum rate, mm/min)
$111 = 500.000 (Y-axis maximum rate, mm/min)
$112 = 500.000 (Z-axis maximum rate, mm/min)
$120 = 10.000 (X-axis acceleration, mm/sec^2)
$121 = 10.000 (Y-axis acceleration, mm/sec^2)
$122 = 10.000 (Z-axis acceleration, mm/sec^2)
$130 = 200.000 (X-axis maximum travel, millimeters)
$131 = 200.000 (Y-axis maximum travel, millimeters)
$132 = 200.000 (Z-axis maximum travel, millimeters)

I tried moving the Z switch wiring to the SpnEn pin, with no results. I've been working this issue for several days without success, including searching the WEB for any assistance.

Any help would be greatly appreciated as I'm at a loss. My next step would be to read all the GRBL code
Attachments
CNC Wiring Diagram 351.jpg
CNC Wiring Diagram 351.jpg (194.98 KiB) Viewed 62 times

Bertus Kruger
Site Admin
Posts: 1594
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: Z limit pins not recognized

Post by Bertus Kruger » Sun Mar 15, 2020 6:55 pm

Pin D12 on the Arduino should be the pin to connect to the z-end-stop. If you have a mulitmeter you can test the connectivity to the z end-stop pins. (Might just be a solder joint)

gadgets53
Posts: 2
Joined: Thu Mar 12, 2020 8:47 pm

Re: Z limit pins not recognized

Post by gadgets53 » Tue Mar 17, 2020 12:41 am

Thanks Bertus! After viewing both the shield and Arduino boards, I did not see any visual signs of bad solder joints. I swapped out the Arduino board for a new one and that fixed the issue.

Bertus Kruger
Site Admin
Posts: 1594
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: Z limit pins not recognized

Post by Bertus Kruger » Fri Mar 27, 2020 11:40 pm

gadgets53 wrote:
Tue Mar 17, 2020 12:41 am
Thanks Bertus! After viewing both the shield and Arduino boards, I did not see any visual signs of bad solder joints. I swapped out the Arduino board for a new one and that fixed the issue.
Good stuff!!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests