(SOLVED) BUG REPORT: Gmocappy Homing buttons in joint mode in Master

More
9 years 8 months ago #87592 by newbynobi
I am a little bit short of time, but I will work on this with priority A++

Norbert

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

More
9 years 8 months ago - 9 years 8 months ago #87595 by rodw

newbynobi wrote: I am a little bit short of time, but I will work on this with priority A++

Norbert


Norbert, thanks. I have been the same way. I have spent a fair bit of time on this myself but have not had time to post my findings.

I added some code to detect if there were any joint axis right above where you configure a lathe. If joint axes were found, disable the relevant homing button. This was easy to do using the string.count() function. Then I added some code in the homing functions to renumber the joints. At this point, the DRO's were not being refreshed correctly (eg. Stayed red when homed). So When I added some code in an attempt to fix this but Joint 4 (Z) became Axis A.

At this point, I decided that enough was enough and went back to the setup code (near the lathe config) and just made it to hide every joint homing button if a joint axis was sensed. Anyway, I won't be able to post anything until tonight (6:00am and at work already)
Last edit: 9 years 8 months ago by rodw.

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

More
9 years 8 months ago #87626 by bevins
WAIT..... So you cant home a complete dual motor axis in JA. Then whats the point?
I thought the whole idea of JA was to better treat dual motor axis and fixes the homing issue that gentrivkins had.....
Maybe not the whole idea but that was a big selling factor.

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

More
9 years 8 months ago #87628 by andypugh

bevins wrote: WAIT..... So you cant home a complete dual motor axis in JA.


No, you absolutely can. But it might only make sense when a homing sequence is defined.

linuxcnc.org/docs/devel/html/config/ini-....html#_home_sequence

Homing joints individually perhaps ought to search for other joints sharing the same home sequence.

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

More
9 years 8 months ago #87636 by rodw

andypugh wrote:

bevins wrote: WAIT..... So you cant home a complete dual motor axis in JA.

No, you absolutely can. But it might only make sense when a homing sequence is defined.


Andy, From what I can see, you absolutely can't home a joint axis other than with a home all. Well, let me rephrase that, becasue I'm sure somebody like you can devise some devious method.:evil:

I'm only a noob so I don't know the difference but the only way I've been able to home my half built machine is with the home all button. I thought that was the way it was done! Anyway, there are pins to home a joint and a pin to home all but there are no pins in the axis definitions to home an individual axis. After getting stung with this bug, I think the LCNC developers have not quite caught up wit the Joint Axis environment as it seems that axis definitions need to be updated so there is a homing pin for each axis now you can no longer depend on (for example) allowing Joint 0 be the surrogate X axis.

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

More
9 years 8 months ago - 9 years 8 months ago #87643 by rodw
Well, in case somebody needs a fix before Norbert updates the Master branch, here is what I did
Code:
# RodW - Hide joint Axis, this code only fixes X,Y & Z axes at this stage. Should look in .ini file for [KINS]JOINTS # Look to see if there is kinstype=BOTH in the ini file, do nothing if found becasue # we don't want to override joints in this case if self.stat.kinematics_type == linuxcnc.KINEMATICS_IDENTITY: # Joints & Worldmode are the same so look to see if there are joint axes and hide all joint homing buttons if so. # This will prevent a gantry from being damaged by homing one side independent from the other.. JAtemp = self.get_ini_info.get_coordinates().lower() if JAtemp.count('x') > 1 or JAtemp.count('y') > 1 or JAtemp.count('z') > 1 or JAtemp.count('a') > 1 or JAtemp.count('b') > 1: self.widgets.btn_home_x.hide() self.widgets.btn_home_y.hide() self.widgets.btn_home_z.hide() self.widgets.btn_home_4.hide() self.widgets.btn_home_5.hide() #RodW - End of Mods to hide axes where kinstype=both # Do we control a lathe? if self.lathe_mode:
Last edit: 9 years 8 months ago by rodw.

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

Moderators: newbynobi, HansU
Time to create page: 0.751 seconds
Powered by Kunena Forum