[GRBL/bCNC] Endstops not working in any wiring config

5,173 views
Skip to first unread message

ianmcmill

unread,
Sep 21, 2015, 8:56:44 AM9/21/15
to Cyclone PCB Factory
Arduino UNO + CNC Shield 3.03 Protoneer
XY endstops = Makerbot endstops / Mech endstop v1.2 (NC)
Z endstop = Omron SS-5GL-F (NC)
grbl 0.9j settings:
(VARIABLE_SPINDLE is disabled)

Grbl 0.9j ['$' for help]
['$H'|'$X' to unlock]
$$
$0
=10 (step pulse, usec)
$1
=25 (step idle delay, msec)
$2
=0 (step port invert mask:00000000)
$3
=3 (dir port invert mask:00000011)
$4
=0 (step enable invert, bool)
$5
=0 (limit pins invert, bool)
$6
=0 (probe pin invert, bool)
$10
=3 (status report mask:00000011)
$11
=0.010 (junction deviation, mm)
$12
=0.002 (arc tolerance, mm)
$13
=0 (report inches, bool)
$20
=0 (soft limits, bool)
$21
=0 (hard limits, bool)
$22
=1 (homing cycle, bool)
$23
=3 (homing dir invert mask:00000011)
$24
=25.000 (homing feed, mm/min)
$25
=500.000 (homing seek, mm/min)
$26
=50 (homing debounce, msec)
$27
=1.000 (homing pull-off, mm)
$100
=2560.000 (x, step/mm)
$101
=2560.000 (y, step/mm)
$102
=4800.000 (z, step/mm)
$110
=300.000 (x max rate, mm/min)
$111
=300.000 (y max rate, mm/min)
$112
=150.000 (z max rate, mm/min)
$120
=10.000 (x accel, mm/sec^2)
$121
=10.000 (y accel, mm/sec^2)
$122
=5.000 (z accel, mm/sec^2)
$130
=159.000 (x max travel, mm)
$131
=93.000 (y max travel, mm)
$132
=100.000 (z max travel, mm)
ok


My X, Y and Z endstops are connected as NC. The circuits are closed as long as the switches are not triggered. I used a multimeter to verify this.
So the switches work properly.

XY axis configuration:
X and Y endstops are connected to X- / GND and Y- / GND.
X Y motors move in the correct direction. - = to the left; + = to the right.
Z endstop is connected to Z+ / GND. - = downwards ; + = upwards.

All endstops are only connected with 2 pins. The makerbot endstops have 4 wires but I only used two of them which I measured with my multimeter to trigger correct. Closed when not triggered; Open when triggered. I tried this by pushing the switches by hand.

I start bCNC and open a port to my Arduino.
I enter "$H" and the Z axis moves upwards. The Z endstop is triggered but the Z axis continues to move upwards.

What I tried:
1) I tried grblForCyclones modified homing by changing:

0.9j stock  
#define HOMING_CYCLE_0 (1<<Z_AXIS)                // REQUIRED: First move Z to clear workspace.
#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS))  // OPTIONAL: Then move X,Y at the same time.

to

#define HOMING_CYCLE_0 (1<<X_AXIS)              
#define HOMING_CYCLE_1 (1<<Y_AXIS)

did not solve issue.

2) I tried to connect the endstops to X+/Y+ and GND.
Did not solve it.


Any ideas ?

ianmcmill

unread,
Sep 21, 2015, 10:05:35 AM9/21/15
to Cyclone PCB Factory
I found out that I just forgot to install a Jumper on the CNC shield.

http://blog.protoneer.co.nz/arduino-cnc-shield-v3-00-assembly-guide/

Z homing works now. But XY responds with an Homing alarm.

I had to set $5=1 to invert limit pins to get Z working.
Due to this invert I had to set $23=0

X Y and Z endstops are normally at +/MAX and $5=1 should invert it. Also my Z axis homes with $23=0 or 1 or 2 or 3 on +/max. This is strange as I thought $5=1 sets Z homing to -
With $23=0, X and Y start to home towards - but stop with an homing fail error
Message has been deleted

ianmcmill

unread,
Sep 21, 2015, 10:44:30 AM9/21/15
to Cyclone PCB Factory
It is important to use only NO endstops with GRBL 0.9 !!!!
Fixed it.

Yiannis Mandravellos

unread,
Sep 21, 2015, 11:25:42 AM9/21/15
to Cyclone PCB Factory
Uhm, no... I 'm using NC switches w/o problems...

ianmcmill

unread,
Sep 21, 2015, 11:59:01 AM9/21/15
to Cyclone PCB Factory
Took me the hole day fiddeling around with this.
After checking with the multimeter the pins on the X and Y makerbot endstops I realized that I had connected them as NO.
Only my Z+ endstop was wired NC.

When homing with this setup I always got homing fails. I then rewired the Z+ endstop as NO and everything went fine.
Maybe it is not allowed to use mixed endstop configurations?

Nando

unread,
Sep 21, 2015, 7:26:19 PM9/21/15
to Cyclone PCB Factory
Well mine work directly so I didn't have to fiddle much but you may be able to change that per axis in the FW.
At least FW like Marlin allow to do that, so you can use mixed switch types.




-Nando
Sent from my Sinclair ZX81

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/cyclone-pcb-factory.
To view this discussion on the web, visit https://groups.google.com/d/msgid/cyclone-pcb-factory/f45de49f-37c5-4517-bc32-daafc0929384%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Yiannis Mandravellos

unread,
Sep 22, 2015, 3:52:30 AM9/22/15
to Cyclone PCB Factory
That's right.
Reply all
Reply to author
Forward
0 new messages