Retrofitting a 1986 Maho MH400E

More
8 years 1 month ago #117703 by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
You probably need "addf mh400e-gearbox servo-thread (ie, a hyphen not an underscore in the function name)

In theory HAL only uses hyphens, but file-names can not contain hyphens, so the loadrt is underscores)

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

More
8 years 1 month ago - 8 years 1 month ago #117716 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
Thanks Andy, Sergey had pointed out that the HALcompiler changes underscores to dashs, and I tried both, but I didn't try the combination of underscore in the name and dash in the addf. I'll try that out tonight.
Code:
loadrt mh400e_gearbox addf mh400e-gearbox servo-thread

Mark
Last edit: 8 years 1 month ago by RotarySMP.

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

More
8 years 1 month ago - 8 years 1 month ago #117738 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
That worked. I then went on to correct at least 45 other typo bugs in my ~45 lines added to the HAL to interface with the gearbox. You guys might have noticed that my typing is pretty rough :)

I wanted to test only the gearbox, and since the glass scale encoder on both Y and Z axis are currently U/S, can't home the machine.
In the ini, I edited the current homing lines to immediate homing :

Are those "o" or zero's? I used zero's, but I see today that they look like "o"'s.

First I just commented out the existing settings like this...
Code:
HOME_USE_INDEX = NO # reset to yes.

LinuxCNC can't deal with comments in this line of the ini. I freezes during the GUI load and has to be manually killed. Moving the comment to the line before corrected that. I see that this behaviour is already described in the INI knowledge file .

When I tested it, the X axis raced off till it hit the hard wired end stop and E-Stopped. Does this immediate homing not work on a closed loop servo axis?
Mark
Last edit: 8 years 1 month ago by RotarySMP.

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

More
8 years 1 month ago #117739 by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E

RotarySMP wrote: Are those "o" or zero's? I used zero's, but I see today that they look like "o"'s.

Defintely zeros.

When I tested it, the X axis raced off till it hit the hard wired end stop and E-Stopped. Does this immediate homing not work on a closed loop servo axis?


It should work. But the servo loop won't work without the position feedback, and you already said that was broken. (though the system still should have f-errored).

Maybe don't enable the servos yet?

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

More
8 years 1 month ago #117742 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
I understand the Z and Y axis being unpredictable without their encoder feedback, but the X axis has a working encoder, and yet it ran away. My understand of that it should have just homed were it was sitting.

Since I did a LiveCD install, the Gmoccapy Simulator is an easy install. I think I'll install that, and only cut paste the HAL lines necessary to continue testing the gearbox.comp interface, rather working with my machine.hal.
Mark

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

More
8 years 1 month ago #117778 by drimaropoylos
Replied by drimaropoylos on topic Retrofitting a 1986 Maho MH400E
Hello, congratulations on the progress of the gearbox control. The twitching of the motor (800 ms right, 200 ms off, 800ms left, 200 ms off ) is constant during the hole gear change and indepentand from the cams position, or ther is some relation?
John

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

Moderators: piasdom
Time to create page: 0.345 seconds
Powered by Kunena Forum