- Posts: 10
- Thank you received: 0
How to use linuxcnc with a real robot equipped with a absolute encoder ?
9 years 1 month ago #99658
by Zazakas
Hi,
In linuxcnc,before to execute any G code the machine must be homed.
But for a robot with absolute encoder home is not needed , so how can I
deal with this home issue.
I mean after turn the machine on. How can I execute G code directly?
In linuxcnc,before to execute any G code the machine must be homed.
But for a robot with absolute encoder home is not needed , so how can I
deal with this home issue.
I mean after turn the machine on. How can I execute G code directly?
Please Log in to join the conversation.
9 years 1 month ago #99659
by PCW
Replied by PCW on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
Don't you just set NO_FORCE_HOMING?
Please Log in to join the conversation.
9 years 1 month ago #99664
by Zazakas
Replied by Zazakas on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
Many thanks! Can't wait to try this out!
Please Log in to join the conversation.
9 years 4 weeks ago #99713
by Zazakas
Replied by Zazakas on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
Ooops. It doesn't works as I expected.
take config : sim>axis>vismach>puma.ini for example:
After add NO_FORCE_HOMING=1 in Traj section,
When I want to switch to MDI mode or exectue G code ,
the AXIS gui tells me all joints must be homed before going into coordinated/teleop mode .
And I add a print line in the emctaskmain.cc file , the variable no_fore_homing is 1.
So where could be the problem?
take config : sim>axis>vismach>puma.ini for example:
After add NO_FORCE_HOMING=1 in Traj section,
When I want to switch to MDI mode or exectue G code ,
the AXIS gui tells me all joints must be homed before going into coordinated/teleop mode .
And I add a print line in the emctaskmain.cc file , the variable no_fore_homing is 1.
So where could be the problem?
Please Log in to join the conversation.
9 years 4 weeks ago #99714
by Zazakas
Replied by Zazakas on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
yet how could linuxcnc know the initial joint position of the robot, if not homed?
Please Log in to join the conversation.
9 years 4 weeks ago #99715
by PCW
Replied by PCW on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
I just tried and it works (I can start gcode execution without homing)
Please Log in to join the conversation.
9 years 4 weeks ago #99717
by Zazakas
Replied by Zazakas on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
ok,maybe something wrong with my config
I am in a rip environment and using like branch 2.8.0~pre1
how about yours?
Thanks again.
I am in a rip environment and using like branch 2.8.0~pre1
how about yours?
Thanks again.
Please Log in to join the conversation.
9 years 4 weeks ago #99718
by PCW
Replied by PCW on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
same, spelling error?
not editing the right file?
not editing the right file?
Please Log in to join the conversation.
9 years 4 weeks ago #99719
by dgarrett
For this development branch (git master) you will probably need to use the provisions for
absolute encoders as specified in the ini file:
Ref: linuxcnc.org/docs/devel/html/config/ini-...ome_absolute_encoder
(It looks like ([TRAJ]NO_FORCE_HOMING does not apply for non-identity kinematics
in the motion module even though task accepts it:
Ref:
github.com/LinuxCNC/linuxcnc/blob/677dc9...otion/command.c#L609
Replied by dgarrett on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
It is always important to state the branch.I am in a rip environment and using like branch 2.8.0~pre1
For this development branch (git master) you will probably need to use the provisions for
absolute encoders as specified in the ini file:
Ref: linuxcnc.org/docs/devel/html/config/ini-...ome_absolute_encoder
(It looks like ([TRAJ]NO_FORCE_HOMING does not apply for non-identity kinematics
in the motion module even though task accepts it:
Code:
if (emcmotConfig->kinType != KINEMATICS_IDENTITY) {
if (!checkAllHomed()) {
reportError
(_("all joints must be homed before going into coordinated mode"));
emcmotDebug->coordinating = 0;
break;
}
}
Please Log in to join the conversation.
9 years 4 weeks ago #99801
by Zazakas
Replied by Zazakas on topic How to use linuxcnc with a real robot equipped with a absolute encoder ?
Actually I am not sure about my branch.
And the absolute encoder option you pointed out works! No need to move the robot, although press home button is needed.
And do you have any idea how to move robot in joint space using G code or some other work programming language than can interface with linuxcnc ?
And the absolute encoder option you pointed out works! No need to move the robot, although press home button is needed.
And do you have any idea how to move robot in joint space using G code or some other work programming language than can interface with linuxcnc ?
Please Log in to join the conversation.
Time to create page: 0.921 seconds
