Retrofitting a 1986 Maho MH400E

More
7 years 7 months ago #127767 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
If you have any recommendations with respect to the gearbox.comp, please post them here, and I can discuss them with Sergey.
MArk

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

More
7 years 7 months ago #127800 by R2AIV
Replied by R2AIV on topic Retrofitting a 1986 Maho MH400E
Hi all! I almost finished wiring MESA board to MAHO using Hanmon's HAL. I have a question about CNC input signals. In Hanmon's HAL only gearbox and "spindle stopped" signals is routed, but MAHO have few another signal like lube, tool fixation, some spindle signals. What i must to with these signals? I talk about MAHO's output DB37 connector pins: 1-10 and 24-32. Thanx!

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

More
7 years 7 months ago #127801 by R2AIV
Replied by R2AIV on topic Retrofitting a 1986 Maho MH400E

RotarySMP wrote: If you have any recommendations with respect to the gearbox.comp, please post them here, and I can discuss them with Sergey.
MArk


Hi, Mark! What reasons to rewrite gerbox component? It have troubles or bugs?

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

More
7 years 7 months ago #127816 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
There is an issue which are due to me not understanding the interaction between linuxCNC's behaviour and the MAHO spindle stopped signal.

When you command M5 spindle stop, in addition to the spindle motor being stopped, linuxCNC commands spindle speed 0. When the stop command is passed to the MAHO relays, it sets the 5 sec timer relay, which then returns "Spindle is stopped".
The gearbox comp receives that signal, which releases it's inhibit from changing gear with a moving spindle.
Gearbox.comp now reacts to its new commanded speed being S0 by setting neutral.

Currently, the gearbox.comp can not complete a gearchange started from a running spindle (like if you command a different S speed in the middle of a program) due to this.

What happens: Spindle running at 600 rpm, receives an S1000 command. Since the spindle is running, it is inhibited from changing gear, so it commands LinuxCNC to stop the spindle. The action above happens. SInce LinuCNC has overwritten the S1000 command with S0, the spindle never restarts, but rather goes into neutral.

You can work around that with the current comp by using this as speed change code:
Code:
M5 G4 P6 ; wait for spindle to have stopped S1000 M3; Command new speed from a stopped spindle.

Sergey is revising the comp to give it control of the spindle relays. If LinuxCNC wants the spindle stopped, it will ask the comp, rather than the other way around. Ten when the comp is just changing speed, we wont tell LinuxCNC that the spindle is stopped, so it wont command S0.

He will also add an input pin to the comp, so if you want the gearbox put into neutral for safety (using a touch probe), you can do that with a hardware or software button.
Mark

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

More
7 years 7 months ago - 7 years 7 months ago #127817 by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E

In Hanmon's HAL only gearbox and "spindle stopped" signals is routed, but MAHO have few another signal like lube, tool fixation, some spindle signals. What i must to with these signals?


What model do you have?
On my 400E, the oiling system logic is hard coded into the lube unit with a timer relay. Look back a few pages, as Hanno posted a detailed post about how he set up his oiling logic.
I have my Tool release netted to a hard button on the control panel, through a 7i77 pin, so I push and hold the button to drop or load a tool.
The gearbox comp needs:
Code:
# --- GEARBOX CONTROL --- net sig_return_actual_speed mh400e-gearbox.spindle-speed-out => motion.spindle-speed-in net sig_return_spindle-at-speed mh400e-gearbox.spindle-at-speed => motion.spindle-at-speed net sig_stop_spindle mh400e-gearbox.stop-spindle => halui.spindle.stop net set-gear-shift-start mh400e-gearbox.start-gear-shift => hm2_5i25.0.7i84.0.2.output-05 net set-reverse-shaft-motor mh400e-gearbox.reverse-direction => hm2_5i25.0.7i84.0.2.output-04 net activate-reducer-motor mh400e-gearbox.reducer-motor => hm2_5i25.0.7i84.0.2.output-01 net activate-midrange-motor mh400e-gearbox.midrange-motor => hm2_5i25.0.7i84.0.2.output-02 net set-shaft-motor-lowspeed mh400e-gearbox.motor-lowspeed => hm2_5i25.0.7i84.0.2.output-00 # MAHO calls this Anwahl Mittelstellung net activate-input-stage-motor mh400e-gearbox.input-stage-motor => hm2_5i25.0.7i84.0.2.output-03 net activate-spindle-twitch-cw mh400e-gearbox.twitch-cw => hm2_5i25.0.7i84.0.2.output-06 net activate-spindle-twitch-ccw mh400e-gearbox.twitch-ccw => hm2_5i25.0.7i84.0.2.output-07 # --- GEARBOX CONTROL --- net sig_get_commanded_speed mh400e-gearbox.spindle-speed-in-abs <= motion.spindle-speed-out-abs net sig_spindle_status mh400e-gearbox.spindle-stopped <= hm2_5i25.0.7i84.0.2.input-19 net sig_reducer_left mh400e-gearbox.reducer-left <= hm2_5i25.0.7i84.0.2.input-00 net sig_reducer_right mh400e-gearbox.reducer-right <= hm2_5i25.0.7i84.0.2.input-01 net sig_reducer_center mh400e-gearbox.reducer-center <= hm2_5i25.0.7i84.0.2.input-02 net sig_reducer_left_center mh400e-gearbox.reducer-left-center <= hm2_5i25.0.7i84.0.2.input-03 net sig_middle_left mh400e-gearbox.middle-left <= hm2_5i25.0.7i84.0.2.input-04 net sig_middle_right mh400e-gearbox.middle-right <= hm2_5i25.0.7i84.0.2.input-05 net sig_middle_center mh400e-gearbox.middle-center <= hm2_5i25.0.7i84.0.2.input-06 net sig_middle_left_center mh400e-gearbox.middle-left-center <= hm2_5i25.0.7i84.0.2.input-07 net sig_input_left mh400e-gearbox.input-left <= hm2_5i25.0.7i84.0.2.input-08 net sig_input_right mh400e-gearbox.input-right <= hm2_5i25.0.7i84.0.2.input-09 net sig_input_center mh400e-gearbox.input-center <= hm2_5i25.0.7i84.0.2.input-10 net sig_input_left_center mh400e-gearbox.input-left-center <= hm2_5i25.0.7i84.0.2.input-11

Note, misusing halui.spindle.stop for the gearbox.comp is one of the things the revision will correct.
Mark
Last edit: 7 years 7 months ago by RotarySMP.

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

More
7 years 7 months ago #127890 by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
Just a heads-up that 2.8 will have different spindle names and, possibly, different behaviour.
I _think_ that M5 still gives S0, though I can see arguments that it shouldn't.

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

Time to create page: 5.013 seconds
Powered by Kunena Forum