Retrofitting a 1986 Maho MH400E

29 Mar 2022 14:37 #238617 by RotarySMP
Hi Andreas,
I saw that the deckel gearbox was similar, but with no end stops to the shifter shafts.  Cool that it was useful for your Deckel. Remember the rules... photos or it didnt happen! :) Or better, a link to a video of the gearbox under LinixCNC control.

That behaviour of the gearbox.comp putting the gearbox in neutral each time the spindle stops is an unfortunate side effect of LinuxCNC behavior of interpreting an M5 as both spindle stop and spindle speed zero. I didn't know that when I spec'd the comp. db1981's input is a good one, to stop it reacting to a neutral and off command. Jin wrote a minor mod to the comp to stop it doing that neutral thing, which I think is also up there and is the one I am using, but it has the side effect of never going into neutral, so If I want neutral for swinging an indicator, I have to hunt for the big allen key, and manually shift the gearbox.

I am no coder (I cant read what Jin did), and also a weak Github user. I passed your  request on to Jin, to ask how he wants the Github done.
I also have the issue that I could not identify a free pin to net to to turn the spindle on or off from the physical control panel. Jin and I talked about making a big change. Currently the Comp requests spindle on / off from LinuxCNC and linuxCNC implements that. We were going to switch it around to give the comp control of the hardware. and have linuxCNC request spinlde on/off to the Comp. But we never got around to it. On the Maho the brake is hard wired through contactors, so I didn't need to do anything. Switching on the spindle contactor on switches off the brake and vice versa.

The CW /CWW on the maho is also hard wired contactors, which I am controlling from the Mesa 7i84 through the MAHO 24V relay board. The Comp does use them to rock the gearbox back and forward during changes to ensure meshing, but through LinuxCNC.
The following user(s) said Thank You: chili023

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

29 Mar 2022 18:47 #238636 by Jin
Replied by Jin on topic Retrofitting a 1986 Maho MH400E
Hi Andreas,

to be honest I did not look into the code for a long time (although - yes, I did promise Mark to rework it - sorry man, still did not get to it!); the issue we had was that LinuxCNC seemed to be more oriented towards VFD driven systems which did not match with my initial design of treating speed 0 as "neutral gear".

My idea to work around this problem was to put more logic around speed control and manage speed changes and shifting in some smart way where stop would not automatically mean "neutral". From the top of my head this also has influence on reporting the current speed, I think right now that is still bound to "which gear am I in?". So those changes - that is the part I never got to...

> Also I want to provide the finished comp and .c .h files with a wiki as soon as I am done. Do you want to include it in your github or should I create my own?

Are there many changes or can the comp be adapted to handle both machines via some #ifdefs at compile time?

If we can share code, then it'd make sense to fork the original repo, add your changes there and then submit a PR against upstream to get your changes merged.

Kind regards,
The following user(s) said Thank You: gernoff, RotarySMP, chili023

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

29 Mar 2022 21:18 #238659 by chili023
Wonderful. So a
net spindle.enable to an in pin of the comp and a simple if in the comp
if (spindle.enable==0){
That will work. I will also handle the relays for ccw/cw and slow/fast in the comp.

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

29 Mar 2022 21:26 #238663 by chili023
Hi Jin thanks for your reply.
A combined repo / comp would work.
I use less inputs and haven't changed the program that much apart from some True/False statements. Everything could be handled by #ifdefs.

For now everything works with the gearbox. I will try to finish the PID setup / Homing and the wiring by Thursday. Friday I leave for Spain and will work on the rest and the combined comp after I am back.

Thanks again.
Stay healthy
The following user(s) said Thank You: RotarySMP

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

30 Mar 2022 12:47 #238727 by RotarySMP
I look forward to seeing your machine up and running.

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

30 Mar 2022 19:57 #238812 by gernoff
Also like to be able to use the code on my FP5 which has only 2 motors and 3 cams for each one. I assume the switches are outputting LH, center and RH shift fork position. I have posted PLC logic etc. in my FP5NC thread.

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

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