- Posts: 33
- Thank you received: 0
Custom homing - distance coded glass scales
8 months 1 week ago #343324
by m0602232
Custom homing - distance coded glass scales was created by m0602232
Hello
(Third try posting this, there's something wrong with the forum server)
I'm retrofitting a Cincinnati Arrow which does not have any kind of homing or limit switches on x and y -axis. Glass scales have distance coded index marks though and I would like to use them for homing. I found one successful attempt doing so:
forum.linuxcnc.org/12-milling/42195-retr...ing-success?start=50
Editing hm2 similarly shouldn't be too difficult but homing.c looks completely different nowadays. Should this kind of thing be done with homecomp? Any advice on that would be welcome, my coding skills are slightly limited and there is not too many examples of homecomp yet.
Thanks
Ossi
(Third try posting this, there's something wrong with the forum server)
I'm retrofitting a Cincinnati Arrow which does not have any kind of homing or limit switches on x and y -axis. Glass scales have distance coded index marks though and I would like to use them for homing. I found one successful attempt doing so:
forum.linuxcnc.org/12-milling/42195-retr...ing-success?start=50
Editing hm2 similarly shouldn't be too difficult but homing.c looks completely different nowadays. Should this kind of thing be done with homecomp? Any advice on that would be welcome, my coding skills are slightly limited and there is not too many examples of homecomp yet.
Thanks
Ossi
Please Log in to join the conversation.
8 months 1 week ago #343332
by Hakan
Replied by Hakan on topic Custom homing - distance coded glass scales
Homing on glass scale index is supported directly by Linuxcnc and Mesa's products.
linuxcnc.org/docs/html/config/ini-homing.html#_home_use_index but the whole page is worthwhile reading.
linuxcnc.org/docs/html/config/ini-homing.html#_home_use_index but the whole page is worthwhile reading.
Please Log in to join the conversation.
8 months 1 week ago #343336
by m0602232
Replied by m0602232 on topic Custom homing - distance coded glass scales
Yes of course but distance coded indexes are not as far as I know? (The distance between index marks varies and the distance is used to calculate absolute position)
Please Log in to join the conversation.
8 months 1 week ago #343340
by Hakan
Replied by Hakan on topic Custom homing - distance coded glass scales
My linear scales have index every 50 mm and that works.
That's not really what you are looking for I now understand.
That's not really what you are looking for I now understand.
Please Log in to join the conversation.
7 months 3 weeks ago #343859
by m0602232
Replied by m0602232 on topic Custom homing - distance coded glass scales
I got it working with help of a coder brother and vscode agent by editing
mwinterm
's homing files. There were several problems at start which caused inaccuracies in both encoder latched position and home position calculation but now it looks to be accurate. I uploaded quick video of the startup and homing if anyone is interested:
www.youtube.com/shorts/St_XhQs68xQ
. I also added some nice features;
-the machine offsets are stored within every 2 seconds and those offsets are used as machine offsets at startup before homing, so its kinda like absolute encoders but of course need to be homed to verify position
-custom .py -file checks soft limits before homing and aborts if current position is too close to limit
-also managed to remove homing final move, so minimal amount of movements in homing.
I'm considering if I should share the changed files or not, they are so machine specific. Maybe later when I find out if it's reliable and safe.
Regards
Ossi
-the machine offsets are stored within every 2 seconds and those offsets are used as machine offsets at startup before homing, so its kinda like absolute encoders but of course need to be homed to verify position
-custom .py -file checks soft limits before homing and aborts if current position is too close to limit
-also managed to remove homing final move, so minimal amount of movements in homing.
I'm considering if I should share the changed files or not, they are so machine specific. Maybe later when I find out if it's reliable and safe.
Regards
Ossi
Please Log in to join the conversation.
Time to create page: 0.085 seconds
