Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$H: Alarm: Homing fail w/ An unexpected command was completed by the controller w/ Java Exception #1208

Closed
toffuser opened this issue Mar 29, 2019 · 5 comments

Comments

@toffuser
Copy link

Problem description

When sending $H to GRBL using UGS Platoform 2.0 nightly (Arduino UNOS with CNC shield) I get the error message Alarm: Homing fail after it moved for a while (Any axis, X, Y or Z)

Expected Behavior

It is supposed to reach the limit switch for any axis.

Actual Behavior

It moves for a while then after 10 seconds, it stops.

Steps to Reproduce the Problem

  1. Open the program
  2. Click on Home Machine
  3. let the machine try to go HOME and FAIL

Specifications

Version

UGS Platform 2.0 - Nightly Build Mar 29, 2019
UGS Classic 1.0.9

Operating system

Windows 10

Platform

GRBL 1.1f

Other

The exception thrown in the UGS platform :

com.willwinder.universalgcodesender.AbstractController$UnexpectedCommand: An unexpected command was completed by the controller.
at com.willwinder.universalgcodesender.AbstractController.commandComplete(AbstractController.java:829)
[catch] at com.willwinder.universalgcodesender.GrblController.rawResponseHandler(GrblController.java:170)
at com.willwinder.universalgcodesender.AbstractController.rawResponseListener(AbstractController.java:850)
at com.willwinder.universalgcodesender.AbstractCommunicator.sendEventToListeners(AbstractCommunicator.java:222)
at com.willwinder.universalgcodesender.AbstractCommunicator.lambda$new$0(AbstractCommunicator.java:244)
at java.lang.Thread.run(Thread.java:748)

Untitled

@breiler
Copy link
Collaborator

breiler commented Apr 1, 2019

Could you post the settings for GRBL?

@AbySet
Copy link

AbySet commented Apr 13, 2019

Hey,
Sorry i'm a bit late but i have been through a same issue and i fixed it:

  • Your problem is not a UGS one, it's actualy a hardware issue caused by IME troubles and it needs a noise filter.
  • To solve this you should add a filter to your limit switchs wiring by adding a 4.7K resistor and 100nF capacitor and here is how to do it :

Limit_Swiths_Wiring

Notice that the 3 resistors color code shows a value of 1K but you have to use 4.7K as labeled (I did not do the schematic).

Hope this help.

@carneeki
Copy link
Contributor

carneeki commented Apr 13, 2019 via email

@toffuser
Copy link
Author

Abyset is right!

I also shielded my limit switch cables. Make sure to put them far away from the cables used for the motors.

@breiler
Copy link
Collaborator

breiler commented Jan 7, 2020

@toffuser, was this resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants