Custom homing - without back-off, keep in one direction

More
21 Apr 2017 08:54 - 21 Apr 2017 09:00 #91758 by my.cnc.brother
Dears,
I am retrofitting Brother TC-225 milling machine with LinuxCNC 2.7.8.
I would like to keep as much original behavior as possible, including homing sequence.
This milling machine is equipped with separate limit+, limit - and home switch.
Original homing is specific, without changing direction of the move. Home switch is someway "overpassed".

I will try to describe below original Brother homing process (in Liniux CNC nomenclature :-):
- search for home switch in "+" direction (@ home_search_vel). There is no back-off! after home switch trip
- final detection of switch home (@ home latch_vel), still in the same direction, home switch "overpassed" until release
- index pulse (@ home latch_vel), still in the same direction
Hope you understand what I mean :S .

Is it possible at all to interfere LCNC homing sequence so deep?

I am not sure why Brother engineers made such homing algorithm. Only backlash issues comes in to my mind...
Anyway, it is not a big deal to use homing sequence served by Linux, but I am jut curious if such modification is possible at all.
Last edit: 21 Apr 2017 09:00 by my.cnc.brother.

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

More
25 Apr 2017 13:51 #92057 by andypugh
All things are possible when you are talking about software, but it might be more trouble than you want to go to.

The home sequence code is here:
github.com/LinuxCNC/linuxcnc/blob/master...motion/homing.c#L362

You are interested in changing what happens at the end of HOME_SET_COARSE_POSITION and the states it goes to based on various velocities.

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

More
05 May 2017 12:06 #92697 by my.cnc.brother
Wow!
This is impressive :-).
Anyway I will leave this as it is for now. It is to risky for me to perform any LCNC source code changes.

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

More
05 May 2017 12:25 #92699 by andypugh

Wow!
This is impressive :-).


Certainly some of our better code, being clearly written and well-commented.

If only it was all like that.

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

More
05 May 2017 13:32 #92703 by rodw

Wow!
This is impressive :-).


I also said that about the homing sequence documentation. Very clear. I remember when wading through it the first time how well it had been put together. It answered every question I had about the process.:cheer: :cheer:

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

Time to create page: 0.069 seconds
Powered by Kunena Forum