× Forum Header

LinuxCNC ignores reference Switches

More
19 Jul 2013 03:47 #36788 by Hodor
Hi there!

First of all I want to excuse me as I'm no native english-speaker and will therefore make some mistakes. I hope you will understand me anyway;)

I'm 25 years old and live in switzerland. The fascination for CNC-Milling infected me many years ago, but I had to wait a long time until I could afford one by myself.

I've bought the following machine: CNC

The machine came together with the program "WinPC-NC", a NC-Program which runs on Win XP.
When I make tests with this software, everything works great. It detects all switches and so forth.

I made my configuration while following the getting started guide.
But there are some things not specified. For example: When I move the machine manually in LinuxCNC, it goes "away" from point 0 to point X when I click on the + sign. Is that correct?

My main-problems are:
  1. LinuxCNC ignores the end-Switches of the X and Z axis. (In the other software the end-switches are detected properly, so I don't think it's a hardware failure)
  2. In the other software, when I move manually and just let the button go, the motor/axis stops immediately. In Linux-CNC it remains moving a few centimeters until it stops. Where can I configure that?

I hope I was able to make my questions clear and woul'd be very happy if you could help me.
I also included my config-files, maybe it says something to you;)

Bye
Hodor
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Jul 2013 09:11 #36791 by cncbasher
in your configuraton you have only added switches for homing and not added limits ... this is easily changed
I am presuming they are the same pins as you have for homing

change :
net home-x <= parport.0.pin-10-in
net home-y <= parport.0.pin-11-in
net home-z <= parport.0.pin-12-in

to :
net both-limit-home-x <= parport.0.pin-10-in
net both-limit-home-y <= parport.0.pin-11-in
net both-limit-home-z <= parport.0.pin-12-in

your problem with the motors is nothing more than tuning , the chances are you have them running too fast or your scaling is wrong ,so look at your velocity settings in the ini file
and also your scale and stepping values make sure they are correct

Please Log in or Create an account to join the conversation.

More
19 Jul 2013 12:54 - 19 Jul 2013 17:45 #36793 by Hodor
Hi CNCBasher and everyone else!

Thanks for your fast reply. It helped but didn't totally solved my problems;)

I changed the lines directly in my .hal-File but then it would ignore the home switches again.
So I changed the paramaters via stepconf-wizard to: Both Limit + Home X

Now the switches aren't ignored anymore (Hurray=)) but:
When I want to Home all axis it starts with the Z-axis. After this one has reached it's switch, LinuxCNC stops with a "joint 0 on limit switch error".
I tried both to invert the X-Switch input and to change the home latch direction, both did not work.

To make it clear: I have only one switch per axis: On the Z axis as upper limit and on X and Y on 0/0 of the machine.


Thanks in advance and best regards=)
Oh, and i reattached the newest config-files, just in case;)

edit

Okay I just watched something REALLY strange:

I homed the Y and the Z axis manually (Machine/Homing).

When I touched the Y-Switch, the Z axis stopped
When I touched the Z-Swicth, the Y axis stopped

This is really strange as when I manually home the Z axis (only Z) and touch it's switch, everything works well.
Attachments:
Last edit: 19 Jul 2013 17:45 by Hodor. Reason: new observations

Please Log in or Create an account to join the conversation.

More
19 Jul 2013 17:27 #36797 by BigJohnT
Your .gz file won't open... you can use .zip in ubuntu to compress a file.

After the Z axis homes is it still touching the switch? If so that is the problem. Just use a HOME_OFFSET that will position the axis off of the switch.

www.linuxcnc.org/docs/html/config/ini_co...d_sub_axis_section_a

JT

Please Log in or Create an account to join the conversation.

More
19 Jul 2013 21:35 - 19 Jul 2013 21:36 #36805 by Hodor
Hi BigJohnT and everyone else

Thank you for your reply.
I'll reupload my files as a zip as soon as I get home;)

After the Z axis homes is it still touching the switch? If so that is the problem. Just use a HOME_OFFSET that will position the axis off of the switch.

Yes, this is the case. I entered an offset (10mm) but the symptoms stay the same. Also, after the axis hits the switch, it's not moving away from it.

I hope it's okay when I copy paste here my edit of my last post, just that it's not going to be lost;)

Okay I just watched something REALLY strange:

I homed the Y and the Z axis manually (Machine/Homing).

When I touched the Y-Switch, the Z axis stopped
When I touched the Z-Swicth, the Y axis stopped

This is really strange as when I manually home the Z axis (only Z) and touch it's switch, everything works well.


Best regards and many thanks
Last edit: 19 Jul 2013 21:36 by Hodor. Reason: wasn't finished yet^^

Please Log in or Create an account to join the conversation.

More
21 Jul 2013 19:43 #36861 by Hodor
Hi Guys

Thank you all for your help.
I was now able to resolve my issue=)

The problem was that the XYZ-Switches lines were wrong connected :dry: :woohoo:

Best regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum