Fail to homing (mechanical switch + index pulse)

More
8 years 8 months ago #105358 by CNCCustoms
Thank you SOO much Andy!
My axes repeat to within 1.5 TENTHS now! (0.004mm) And better on Y and Z

So thankful.
Clint

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

More
8 years 4 months ago #111607 by CNCCustoms
Hi Andy

So after some testing I figured out that the homing was indeed not working. It seems every time the machine is restarted, the home position changes. All depending on where the machine was on startup. I usually left my machine at the home switches when shut down so didn't notice this at first. But it didn't take too long to see something was up. I had work to do so I disabled index homing again.. until now.

The story is as follows when using index homing:
When I startup with my axes in arbitrary places, the machine moves toward the home switches and then homes to where the machine started... REGARDLESS of my homing setting. With the index homing disabled, it homes perfectly no matter what (accuracy is just not great at 0.05 mm)

When I did some scratching, I discovered that at first homing of the machine (Index homing enabled) , a pin called encoder.nn.position-latched is written with the axis current encoder position. The homing begins as usual, switch is tripped, then the index-enable goes on and then off and then the machine moves the axis to the axis encoder position of encoder.nn.position-latched position.

I hope that makes sense? When I searched for what this encoder.nn.position-latched is used for, the documentation says it is not in use.

SO it seems the index-toggle is working... at least I think so?

What could be the problem and what can I try to figure this out?

your help is HUGELY appreciated as always!

Clint

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

More
8 years 4 months ago #111613 by andypugh

CNCCustoms wrote: When I did some scratching, I discovered that at first homing of the machine (Index homing enabled) , a pin called encoder.nn.position-latched is written with the axis current encoder position. The homing begins as usual, switch is tripped, then the index-enable goes on and then off and then the machine moves the axis to the axis encoder position of encoder.nn.position-latched position.


Can you attach your HAL and INI files?

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

More
8 years 4 months ago #111654 by CNCCustoms
Here you go Andy

I upgraded yesterday and then things went pear shaped. Linux crashed for the first time ever. Restarted and all my settings were gone. All the changes I made to the .var file (stores my tool change info)... all gone. Then Linux started to disable for no apparent reason. No message box... very strange.

It was working perfectly before the upgrade. Feel stupid for doing it really.

Well I'm going to start fresh. Im re-installing the image and I will start with a fresh, cleaned up version of my HAL and INI files.

If you can see something in these that may help with the index homing then please do.

Thanks a million!
Clint

File Attachment:

File Name: VMC2.ini
File Size:6.52 KB

File Attachment:

File Name: VMC2.hal
File Size:19.73 KB

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

More
8 years 4 months ago #111680 by andypugh
What did you upgrade? Linux or LinuxCNC?

(And from what to what)

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

More
8 years 4 months ago #111682 by CNCCustoms
This is where im really dumb i think... i used the notification at the top right of the screen. So i dont even know what i upgraded and from what to what. Really embarrassing! I do know that i didnt install 2.7.13 but i am on that version of linuxcnc now. So i must have upgraded linuxcnc then?

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

Time to create page: 0.198 seconds
Powered by Kunena Forum