absolute multiturn encoders (solved)

More
5 years 10 months ago #193079 by bkt
Merry Christmas at all ....

here is completely loockdown .... so no sky touringB) ! .... thise is nice for my old project on Ubuntu and Lcnc. My machinery work with ethercat and position profile cia402. My servo have multiturn absolute encoder .... I have never used them even with Mesa cards so I have no idea how to create a proper hal file and make Lcnc not ask me to reset the axes on power up.
I use Lcnc 2.9 with ethercat.

Up to now I have set the servodrive to use the encoder incrementally, so that Lcnc can follow its workflow and I have set the HOME functions all to 0 so that Lcnc does zero in place. At this stage of the project this is fine.

But now I have set the servodrives in absolute multiturn encoder mode (the encoders have the battery) and Lcnc continues to zero in place. How can I avoid making the zero and take the values of the encoders for good without having to reset the axes?

here mi ini file HOMING .... something is wrong but not understand ....

[AXIS_Z]
MIN_LIMIT = -1200
MAX_LIMIT = -400
MAX_VELOCITY = 7000.0
MAX_ACCELERATION = 2000.0

[JOINT_2]
# more annoing option .....
HOME_ABSOLUTE_ENCODER = 2
HOME = 0.0
HOME_DELAY = 0
HOME_VEL = 0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.0
HOME_LATCH_VEL = 0.0
HOME_USE_INDEX = NO
#HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 0


And I receive these error: tip: switch to joint mode for jog off soft limits

What is means? Zero axis start from joint mode .... but after these I'm on world mode ... and I have these error ..... I try to modify MAX_limit and MIN_LIMIT to very hight value so now receive these error after homing:

Note: Motion Enabled after reaching a coordinate soft limit with active external offset


But I have not external limit on my config .... so not understand

I will be very happy if someone can tell me which way to look to explore this problem. Now I don't see the road.

Merry Christmas at all again
The following user(s) said Thank You: DPFlex

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

More
5 years 10 months ago - 5 years 10 months ago #193088 by Aciera
Replied by Aciera on topic absolute multiturn encoders
For my Mitsubishi drives it is setup like this in HAL you would need other signals than my nyx.0... Maybe just 'setp halui.joint.0.set-homed TRUE' and forget about the unhoming if you don't have corresponding signals from your drives :
Code:
# set homed flag if absolute position is valid net x-absolute halui.joint.0.set-homed <= nyx.0.servo-00.abs-ok net y-absolute halui.joint.1.set-homed <= nyx.0.servo-01.abs-ok net z-absolute halui.joint.2.set-homed <= nyx.0.servo-02.abs-ok net a-absolute halui.joint.3.set-homed <= nyx.0.servo-03.abs-ok net b-absolute halui.joint.4.set-homed <= nyx.0.servo-04.abs-ok net c-absolute halui.joint.5.set-homed <= nyx.0.servo-05.abs-ok # unhome axes on absolute position loss net x-abs-lost halui.joint.0.unhome <= nyx.0.servo-00.abs-lost net y-abs-lost halui.joint.1.unhome <= nyx.0.servo-01.abs-lost net z-abs-lost halui.joint.2.unhome <= nyx.0.servo-02.abs-lost net a-abs-lost halui.joint.3.unhome <= nyx.0.servo-03.abs-lost net b-abs-lost halui.joint.4.unhome <= nyx.0.servo-04.abs-lost net c-abs-lost halui.joint.5.unhome <= nyx.0.servo-05.abs-lost

[edit]
As for your soft limits issues, you have this in your ini:
Code:
[AXIS_Z] MIN_LIMIT = -1200 MAX_LIMIT = -400
So if your z axis is set to 0 your off limits and the system is telling you to press the "$" key on the keyboard to switch to "joint mode" to be able to jog.

Maybe it all resolves after you have your homing set up correctly.
Last edit: 5 years 10 months ago by Aciera.
The following user(s) said Thank You: bkt, DPFlex

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

More
5 years 10 months ago #193091 by dm17ry
Replied by dm17ry on topic absolute multiturn encoders
aciera, that 'set-homed' hal pin is a part of my patch and is not present in the upstream linuxcnc code. and i'm not using HOME_ABSOLUTE_ENCODER
The following user(s) said Thank You: bkt, DPFlex

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

More
5 years 10 months ago #193096 by bkt
Replied by bkt on topic absolute multiturn encoders
so I need to install your patch? Or the patch is included on 2.9?
Any way now I can only try the day after tomorrow ...

Thanks
bkt

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

More
5 years 10 months ago #193097 by Aciera
Replied by Aciera on topic absolute multiturn encoders

aciera, that 'set-homed' hal pin is a part of my patch and is not present in the upstream linuxcnc code.

Oops, thanks Dmitry I was not aware of that.

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

More
5 years 10 months ago #193098 by bkt
Replied by bkt on topic absolute multiturn encoders
thanks Aciera ... but limit value is not the problem .... is a delta robot without reverse Z axis (only first start) so it moove only in "-" caresian spaces.

After these test I program to install Lcnc on old 6 axis arm like your project .... finished this delta I will begin to install Lcnc on an old 6 axis arm, so that your posts will be very useful .... I will try to put my own .... I will have 2 encoders per axis or 1 encoders and a torque sensor I do not know yet .... however there will be laughs ....

regards
bkt

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

Time to create page: 0.287 seconds
Powered by Kunena Forum