New to GRBL!! . 2.5D machine Solenoid Z-axis Machine issues!

Discussion about the arduino based g-code interpreter, grbl
Post Reply
aqibi2000
Posts: 5
Joined: Sat Nov 04, 2017 8:54 pm

New to GRBL!! . 2.5D machine Solenoid Z-axis Machine issues!

Post by aqibi2000 » Sun Nov 05, 2017 10:16 pm

Thanks for having me on the Forum!!

I have lots of questions for setting up my machine :), I use google ALOT but am now stumped.

I have a 2.5D machine (X and Y axis and a Solenoid driven Z axis with a PWM variable Spindle).

My machine has N.O Limit switches wired up on parallel on the X and Y axis, they are supported with hardware to reduced electrical noise and have verified with an Oscilloscope that there is no false triggering.

Now to my issue: Performing any movement for example G91 G0 X-1 or G0 X-1 in the X or Y axis triggers the ALARM:1 even if the machine is in the middle of the axis no where near the limit switch.

Please help!
Last edited by aqibi2000 on Mon Nov 06, 2017 1:31 am, edited 3 times in total.

Picengraver
Posts: 42
Joined: Sun May 11, 2014 5:05 pm
Location: Florida
Contact:

Re: New to GRBL with lots of questions and keen for help!

Post by Picengraver » Sun Nov 05, 2017 10:26 pm

Try connecting a 0.1uf ceramic capacitor between the limit input pin(s) and ground at the Arduino.

Just reread your post - do you have soft limits enabled?

aqibi2000
Posts: 5
Joined: Sat Nov 04, 2017 8:54 pm

Re: New to GRBL with lots of questions and keen for help!

Post by aqibi2000 » Sun Nov 05, 2017 11:01 pm

Soft limits are not enabled ($20 = 0).

Also the nearest left corner is my home position right now.

Even with limit switches removed and the pins pulled up to 5V, there is still an issue!

I Set accurate limit travel even though not using the soft limt. I have ALARM 1 Home fail - (edit:I realise it is because the Z - axis is homed first which I do not have - mine is a solenoid).. hence I removed the Z axis homing line from the config file.


It moves 1mm in x and y axis then says ALARM:1 yet no where near the limit switch

********
Grbl 1.1f ['$' for help]
[MSG:'$H'|'$X' to unlock]
$0=10
$1=255
$2=0
$3=4
$4=0
$5=0
$6=0
$10=19
$11=0.010
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=0
$24=25.000
$25=500.000
$26=100
$27=1.000
$30=1000
$31=0
$32=1
$100=160.000
$101=160.000
$102=250.000
$110=5000.000
$111=5000.000
$112=5000.000
$120=10.000
$121=10.000
$122=10.000
$130=315.000
$131=304.000
$132=30.000



<Alarm|MPos:0.000,0.000,0.000|Bf:15,126|FS:0,0|Pn:Z|WCO:0.000,0.000,0.000>


ARGHHH
Last edited by aqibi2000 on Mon Nov 06, 2017 1:00 pm, edited 3 times in total.

Picengraver
Posts: 42
Joined: Sun May 11, 2014 5:05 pm
Location: Florida
Contact:

Re: New to GRBL!! . 2.5D machine Solenoid Z-axis Machine iss

Post by Picengraver » Mon Nov 06, 2017 11:32 am

Here is a list of alarm error messages.

ALARM:1 Hard limit triggered. Machine position is likely lost due to sudden and immediate halt. Re-homing is highly recommended.
ALARM:2 G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked.
ALARM:3 Reset while in motion. Grbl cannot guarantee position. Lost steps are likely. Re-homing is highly recommended.
ALARM:4 Probe fail. The probe is not in the expected initial state before starting probe cycle, where G38.2 and G38.3 is not triggered and G38.4 and G38.5 is triggered.
ALARM:5 Probe fail. Probe did not contact the workpiece within the programmed travel for G38.2 and G38.4.
ALARM:6 Homing fail. Reset during active homing cycle.
ALARM:7 Homing fail. Safety door was opened during active homing cycle.
ALARM:8 Homing fail. Cycle failed to clear limit switch when pulling off. Try increasing pull-off setting or check wiring.
ALARM:9 Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.

aqibi2000
Posts: 5
Joined: Sat Nov 04, 2017 8:54 pm

Re: New to GRBL!! . 2.5D machine Solenoid Z-axis Machine iss

Post by aqibi2000 » Mon Nov 06, 2017 2:19 pm

Picengraver wrote:Here is a list of alarm error messages.

ALARM:1 Hard limit triggered. Machine position is likely lost due to sudden and immediate halt. Re-homing is highly recommended.
ALARM:2 G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked.
ALARM:3 Reset while in motion. Grbl cannot guarantee position. Lost steps are likely. Re-homing is highly recommended.
ALARM:4 Probe fail. The probe is not in the expected initial state before starting probe cycle, where G38.2 and G38.3 is not triggered and G38.4 and G38.5 is triggered.
ALARM:5 Probe fail. Probe did not contact the workpiece within the programmed travel for G38.2 and G38.4.
ALARM:6 Homing fail. Reset during active homing cycle.
ALARM:7 Homing fail. Safety door was opened during active homing cycle.
ALARM:8 Homing fail. Cycle failed to clear limit switch when pulling off. Try increasing pull-off setting or check wiring.
ALARM:9 Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.
I appreciate your reply, and have looked at the supporting documentation supplied with the download (using version 1.1f).

I have temporarily fixed this issue by switching off Hard limit ($21=0). However when I perform a homing routine the machine only moves the same distance as specified by $27. Really strange. So if i set the pull-off distance to 2mm, the machine during homing moves -2mm in x and y.

This really makes no sense to me now, it's not al Electrical issue for certain.

aqibi2000
Posts: 5
Joined: Sat Nov 04, 2017 8:54 pm

Re: New to GRBL!! . 2.5D machine Solenoid Z-axis Machine iss

Post by aqibi2000 » Wed Nov 08, 2017 3:35 pm

Help!

The Sequence s:
X and Y axis
X, Y Axis move both to Homing direction at fast rate ($25)
The first Axis triggers the switch will stop and wait for the second axis to trigger
When second axis triggers the switch, both axis back off a distance ($27)
Both X and Y axis will move toward switches again slowly, until both switches triggered again ($24)
Both X and Y axis will back off a small distance ($27)

https://github.com/gnea/grbl/wiki/Set-u ... ming-Cycle
After pressing $H the machine just moves the distance $27, which means the program is not initiating the homing sequence because it is meant to perform the triggering twice per axis.

chamnit
Posts: 376
Joined: Tue Aug 12, 2014 2:16 pm
Location: Albuquerque NM, USA
Contact:

Re: New to GRBL!! . 2.5D machine Solenoid Z-axis Machine iss

Post by chamnit » Thu Nov 09, 2017 5:34 pm

@aqibi2000: For the final time, it's electrical, either noise, bad ground, bad wiring, or a combination of all of them. Stop dismissing this and run Arduino-only tests to prove it to yourself.

I've now found your questions posted in three different places. When you do that, you waste the free time of this generous community by trying to help you multiple times while all are telling you the same thing.

You are making a DIY CNC, meaning do-it-yourself. Try to take that into consideration. Forums like this one are not support hotlines.

Post Reply