Retrofitting a MAHO MH600T

More
20 Aug 2024 14:32 #308216 by schuetzbuilds
Hi All,My brother and I recently purchased an old MAHO MH600T with the intention of retrofitting it using LinuxCNC, a 7i77, a 7i84, and the GmoccaPy interface. We began our project by following Mark's thread, which provided invaluable information—without it, we would have been lost. The machine originally came with an old Heidenhain 332 CNC controller, but unfortunately, the video output seems to be broken. Since this compact module also contained the EXE interfaces, we had to replace them with three EXE602 modules to read the linear scales.This is working fine (we are currently ignoring the c-axis...) and the cable cabinet still had a convenient place for its three new members. 

At this stage, we have successfully set up the endstop chain and the linear motion system (encoders and the Indramat drives for X, Y, and Z axes), using conservative values for the PID controller and homing. Our next step is to get the "accessories" working, such as flood coolant, the tool holder, and basic spindle control (including potentially allowing for manual gear changes). While the machine behaves as expected when we press the test buttons on the relay board, we are facing difficulties controlling these functions via LinuxCNC. I have a few questions about this (apologies if they seem basic, but I am new to LinuxCNC and HAL).

1. I wired the 2K2 relay for the coolant pump to output-15 of my 7i84, with field power supplied by the 24V line. The pump operates correctly when I test the relay using its test button, but attempting to activate the relay from the Mesa card causes the machine to go into an emergency stop. Even connecting the relay to my field power alone triggers a shutdown. I've double-checked the wiring (I have a connection from output 15 to the test lead MP12 and to the relay), swapped the relay with a known working one (19K1, machine on), and tested the output without anything connected (it pulls up and down correctly). I initially thought it might be an issue with using a different 24V line, but the "machine on" relay is functioning. I'm currently suspecting a short circuit, but there is no error message displayed by the controller—just the fact that the machine goes into E-Stop. Is there a hidden log or extended error message that might provide more information?

 
 
2. The spindle: For a first test, I wanted to have the spindle on/off working, which just should be the three relays 1K8, 1K9, 1K10, connected to output 12, 13, and 14 on the 7i84. but with the following hal code, nothing happens, when pressing spindle start, and the pins of the 7i84 are floating at roughly 13V. So it seems the pins are not connected in the hal. Is there something I am overlooking, do I need to use the halui pins?:
net spindle-enable hm2_5i25.0.7i84.0.2.output-12
net spindle-cw hm2_5i25.0.7i84.0.2.output-13
net spindle-ccw hm2_5i25.0.7i84.0.2.output-14
3. The gearbox. The good news is that our machine is equipped with an 18-speed gearbox, similar to Mark's, but the sensing configuration is slightly different. While the outputs are the same, we only have nine inputs, which means we're missing the "Links-Mitte" switch that indicates whether the gear motor should turn left or right. Has anyone modified the gearbox component for the MH400E to accommodate this configuration, or has a working original MAHO with this arrangment and could share, how the gearshift is done there? I somehow hope, that it is just an easy modification, but my C is a bit rusty, so we will se how this goes.
 

Kind regards

Sebastian
Attachments:
The following user(s) said Thank You: tommylight

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

More
20 Aug 2024 20:51 #308245 by PCW
Replied by PCW on topic Retrofitting a MAHO MH600T
Are you sure that:

1. 7I84 has +24V field power
2, The relay board 0V common connects to the 24V common

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

More
21 Aug 2024 15:37 - 22 Aug 2024 12:33 #308306 by schuetzbuilds
Uhhhh, I think you’ve hit the nail on the head… How embarrassing…The 7i84 is powered by a 24V field power, but it's connected to a completely separate 24V rail (24V Logic, marked in red), while the relay board is connected to a different 24V source (marked in blue) with no common ground between them. I’ll fix that tomorrow. Thank you!

EDIT: Yes, that was the issue. Now the coolant pump is working. And after fixing a small mistake in my hal the spindle is now also starting. Now only the gear train remains (and the fourth axis...)
Attachments:
Last edit: 22 Aug 2024 12:33 by schuetzbuilds.

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

More
22 Aug 2024 15:04 - 22 Aug 2024 15:06 #308403 by schuetzbuilds
So after the crucial tip from pcw I got the outputs working and configured the lube system. As for the hydraulic draw bar I repurposed the former cycle start button from our very simple hand held. After looking at the code for the central lubrication, I modified it a bit to fit the drawbar application and loaded it as drawbar component, which will only release the drawbar, if the spindle is not running.
It connects via Hal similar to the central lubrication component (wiki.linuxcnc.org/cgi-bin/wiki.pl?CentralizedLubricator).
# drawbar
loadusr -W /home/maho/linuxcnc/configs/maho_mh600t/drawbar.py
net drawbar-open drawbar.open => hm2_5i25.0.7i84.0.2.output-03
net machine-is-enabled drawbar.machine_status <= motion.motion-enabled
net spindle-enable drawbar.spindle_status
net drawbar-sw drawbar.open_sw <= hm2_5i25.0.7i77.0.0.input-00
Attachments:
Last edit: 22 Aug 2024 15:06 by schuetzbuilds.

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

More
22 Aug 2024 16:47 #308412 by RotarySMP
Good on you. Nice work getting another Maho going.
Cheers,
Mark

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

More
22 Aug 2024 18:43 #308425 by schuetzbuilds
It's still a work in progress, but the computer is now mounted on the tray where the original controller used to be. It's quite convenient since the tray folds out of the cable cabinet, making the computer easily accessible.
 

Good on you. Nice work getting another Maho going.
Cheers,

Mark

Thank you, Mark. Your MAHO videos are actually the reason we decided to get a MAHO and go ahead with the retrofit.
Attachments:
The following user(s) said Thank You: RotarySMP, besriworld

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

More
06 Sep 2024 14:30 #309501 by schuetzbuilds
The last few days have been busy, but we added the fourth axis and build a new enclosure for the monitor. We repurposed the original base and just added an aluminium plate. The monitor enclosure is also from aluminium we had laying around.

Now the maho feels much more modern and with the physical buttons around the display we don´t have to manually switch the 19K1 relay (thanks to the hal or2).
We just started implementing the gear change as a python HAL component (that seemed faster, than trying to modify the C-Code from the MH400 gearbox) and got it to read the gears/speeds from the machine. But the machine is currently in a state of emergeny (stop) as our hydraulic pump is striking. Not quite sure if it is the pump or the hydraulic relais/pressure switch, but for now this is stopping us from further testing until it is solved. Has anyone else also experienced problems with their hydraulic pump (a HAWE FP12M-H1)?

 
Attachments:
The following user(s) said Thank You: tommylight, besriworld, COFHAL

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

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