Absolute homing
- eduard
- Topic Author
- Offline
- Premium Member
- Posts: 80
- Thank you received: 12
My homing is done in the servo drive itself and passes the data to linuxcnc.
What I looking for is something like that:
- I would like to disable the hole homing process from HAL, and on power on, shows me the machine is already homed, all axis turn green.
What is the best method to manage absolute homing anyway?
Thanks.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19431
- Thank you received: 6508
Probably connecting the all-homed pin to and3 out (i think such module exists in LinuxCNC) and drive pins to inputs should work.
Or maybe using the lut5 component if there are more than 3 drives...
Please Log in or Create an account to join the conversation.
- eduard
- Topic Author
- Offline
- Premium Member
- Posts: 80
- Thank you received: 12
cia402.0.home
to start the homing process on drives,
then
cia402.0.stat-homing
drives responds they are homing,
cia402.0.stat-homed
after they homed.
here is the process in hal:
# homing
net x-home-request joint.0.request-custom-homing => cia402.0.home
net x-homing joint.0.is-custom-homing <= cia402.0.stat-homing
net x-homed joint.0.custom-homing-finished <= cia402.0.stat-homed
I have to home 4 drives, later 5.
Please Log in or Create an account to join the conversation.
- eduard
- Topic Author
- Offline
- Premium Member
- Posts: 80
- Thank you received: 12
Tried with setp motion.is-all-homed true
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3982
- Thank you received: 1723
Have you looked at using HOME_ABSOLUTE_ENCODER setting in the ini file?
forum.linuxcnc.org/49-basic-configuratio...oders?start=0#208504
Also it is possible to have a custom homing procedure:
www.linuxcnc.org/docs/html/man/man9/homecomp.9.html
Please Log in or Create an account to join the conversation.
- eduard
- Topic Author
- Offline
- Premium Member
- Posts: 80
- Thank you received: 12
But still have to solve the jogging problem, becouse before axes are homed, sill allowed to jog the machine out of softlimits. Unfortunately the soflimist are not working while unhomed.
This method is not so comfortable, but working. I'm still looking for better homing solution.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3982
- Thank you received: 1723
Seems a bit suboptimal to have to edit the ini file after homing. If I remember correctly, the custom homing module creates hal pins for each joint that let you choose whether to use custom homing (ie drive internal) or default homing (ie HOME_ABSOLUTE_ENCODER = 2) but I have not tested that.When the homing is done, I turn off (comment out) from the hal and ini and using just HOME_ABSOLUTE_ENCODER = 2, so no movement on axis.
As for jogging, you should be able to handle that from hal using 'motion.jog-inhibit' pin.
Please Log in or Create an account to join the conversation.
- eduard
- Topic Author
- Offline
- Premium Member
- Posts: 80
- Thank you received: 12
Thanks, this is what I'm looking for.
I need homing once and the rest of the time the drives will solve the accuracy, but yes, it it not optimal.
"If I remember correctly, the custom homing module creates hal pins for each joint that let you choose whether to use custom homing (ie drive internal) or default homing (ie HOME_ABSOLUTE_ENCODER = 2) but I have not tested that."
Did you saw that in documentation? I did not find it.
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3982
- Thank you received: 1723
www.linuxcnc.org/docs/html/man/man9/homecomp.9.htmlIf HOMING_BASE is #defined and points to a valid homing.c file, an example of a customized homing module is built. This module creates input hal pins joint.n.request-custom-homing that enable an alternate joint homing state machine for requested joints. A hal output pin joint.N.is_custom-homing verifies selection"
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
- Posts: 3982
- Thank you received: 1723
Attachments:
Please Log in or Create an account to join the conversation.