Retrofitting a 1986 Maho 400E
- RotarySMP
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1479
- Thank you received: 543
26 Jan 2019 11:56 #124887
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
Who did the service for you? How much does that cost?
Mark
Mark
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 275
26 Jan 2019 13:08 #124893
by db1981
Replied by db1981 on topic Retrofitting a 1986 Maho MH400E
local "Motor und Ankerwicklerei" the bill has not arrived yet.
Please Log in or Create an account to join the conversation.
- hanmon
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 23
26 Jan 2019 20:07 #124925
by hanmon
Replied by hanmon on topic Retrofitting a 1986 Maho MH400E
a lot of german mates here 
Powered up the mill for the first time today after having double-checked the wiring.
The voltages 5/12/24VDC are stable and where they should be.
Programmed the "5i25_7i77_7i74.bit"-file for my setup,
ran:
halrun
loadrt hostmot2
loadrt hm2_pci
show pin
and the IN/OUT of the 5i25, 7i77 and 7i84 showed up.
Wanted to switch on the coolant with:
setp ...dontknowthecorrectoutput... TRUE
but did not work.
Noticed that the red lights (CR1) on 7i84 and 7i73 indicate a "communications watchdog fault". That will be my next todo.
Hanno

Powered up the mill for the first time today after having double-checked the wiring.
The voltages 5/12/24VDC are stable and where they should be.
Programmed the "5i25_7i77_7i74.bit"-file for my setup,
ran:
halrun
loadrt hostmot2
loadrt hm2_pci
show pin
and the IN/OUT of the 5i25, 7i77 and 7i84 showed up.
Wanted to switch on the coolant with:
setp ...dontknowthecorrectoutput... TRUE
but did not work.
Noticed that the red lights (CR1) on 7i84 and 7i73 indicate a "communications watchdog fault". That will be my next todo.
Hanno
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23240
- Thank you received: 4914
26 Jan 2019 21:09 #124929
by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
You need to start a realtime thread and add the hostmot2 read-write functions
You should see the watchdog lights go off, and then setp on output pins will start to have an effect.
loadrt threads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
You should see the watchdog lights go off, and then setp on output pins will start to have an effect.
Please Log in or Create an account to join the conversation.
- hanmon
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 23
27 Jan 2019 12:35 #124960
by hanmon
did the "trick"...thanks
I'm currently setting up the HALs, pref and ini for my machine...not much time to write...
Hanno
Replied by hanmon on topic Retrofitting a 1986 Maho MH400E
loadrt threads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
did the "trick"...thanks
I'm currently setting up the HALs, pref and ini for my machine...not much time to write...

Hanno
Please Log in or Create an account to join the conversation.
- hanmon
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 23
28 Jan 2019 06:58 #125044
by hanmon
Replied by hanmon on topic Retrofitting a 1986 Maho MH400E
Hi there,
I'd just like to know that I have correctly understood
"port" "channel" "mode" for my setup.
I would like to run the following (software process data) modes:
5i25, n.a.
7i77, 3
7i74, n.a.
7i84, 0
7i73, 2
The mesa boards are connected this way:
(5i25_7i77_7i74.bit firmware flashed onto the 5i25)
5i25->P3 (port0 ??) ->7i77
5i25->P2 (port1 ??) ->7i74
7i74->channel3->7i84
7i74->channel5->7i73
Consequently the variables should be like this:
sserial_port_0=3xxxxxxx
sserial_port_1=xxx0x2xx
Why is the first port set to sserial_port_0=300xxx in most of the examples out there ?
Shouldn't it be sserial_port_0=300xxxxx as there are 8 channels ?
Why are channel 1 an 2 set to zero ?
...I'm going crazy on that...
Hanno
I'd just like to know that I have correctly understood
"port" "channel" "mode" for my setup.
I would like to run the following (software process data) modes:
5i25, n.a.
7i77, 3
7i74, n.a.
7i84, 0
7i73, 2
The mesa boards are connected this way:
(5i25_7i77_7i74.bit firmware flashed onto the 5i25)
5i25->P3 (port0 ??) ->7i77
5i25->P2 (port1 ??) ->7i74
7i74->channel3->7i84
7i74->channel5->7i73
Consequently the variables should be like this:
sserial_port_0=3xxxxxxx
sserial_port_1=xxx0x2xx
Why is the first port set to sserial_port_0=300xxx in most of the examples out there ?
Shouldn't it be sserial_port_0=300xxxxx as there are 8 channels ?
Why are channel 1 an 2 set to zero ?
...I'm going crazy on that...
Hanno
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23240
- Thank you received: 4914
28 Jan 2019 13:11 - 28 Jan 2019 13:11 #125068
by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
You can work out the port and channel of any smart-serial device by looking at the HAL pins.
hm2_5i25.0.7i84.1.2..... means that the 7i84 is on port 1 channel 2.
x turns off a channel, making the pins available for GPIO, but as they would be GPIO on an RJ45 connector it would be unusual to use them as such.
In your setup sserial port 0 (7i77) only has 3 channels. So in fact sserial_port_0=3xx would be sufficient. Though that will turn off the serial expansion port on the 7i77 (which could be usefully used as GPIO) I think it will also turn off the analog outputs. (Digital IO is on sserial channel 0, so I think that analog-out is on sserial channel 1. The HAL pins will make that clear, as described above)
Looking at sample configs, digital IO and analog in pins have names like hm2_5i25.0.7i77.0.0.input-08 and analog outs have names like hm2_5i25.0.7i77.0.1.analogena showing that they are on different channels of the same port.
So, sserial_port_0=3xx is all that is needed, if you really do want to disable the expansion port and analog output. (I bet you don't)
hm2_5i25.0.7i84.1.2..... means that the 7i84 is on port 1 channel 2.
x turns off a channel, making the pins available for GPIO, but as they would be GPIO on an RJ45 connector it would be unusual to use them as such.
In your setup sserial port 0 (7i77) only has 3 channels. So in fact sserial_port_0=3xx would be sufficient. Though that will turn off the serial expansion port on the 7i77 (which could be usefully used as GPIO) I think it will also turn off the analog outputs. (Digital IO is on sserial channel 0, so I think that analog-out is on sserial channel 1. The HAL pins will make that clear, as described above)
Looking at sample configs, digital IO and analog in pins have names like hm2_5i25.0.7i77.0.0.input-08 and analog outs have names like hm2_5i25.0.7i77.0.1.analogena showing that they are on different channels of the same port.
So, sserial_port_0=3xx is all that is needed, if you really do want to disable the expansion port and analog output. (I bet you don't)
Last edit: 28 Jan 2019 13:11 by andypugh.
Please Log in or Create an account to join the conversation.
- hanmon
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 23
29 Jan 2019 18:03 #125187
by hanmon
Replied by hanmon on topic Retrofitting a 1986 Maho MH400E
Hi andypugh,
thanx for the details.
The dotted notation like ...0.1... was clear to me but the manual for the 7i77 does not reveal that the analogue section and expansion port is on channel one and two, at least not explicitly.
Nevertheless I finally got my machine working for the first time today with:
sserial_port_0=300xxx
sserial_port_1=xxx0x2xx
All three axis move and the spindle-gear switches.
A big success for today !
Hanno
thanx for the details.
The dotted notation like ...0.1... was clear to me but the manual for the 7i77 does not reveal that the analogue section and expansion port is on channel one and two, at least not explicitly.
Nevertheless I finally got my machine working for the first time today with:
sserial_port_0=300xxx
sserial_port_1=xxx0x2xx
All three axis move and the spindle-gear switches.
A big success for today !
Hanno
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18390
- Thank you received: 5021
29 Jan 2019 18:11 #125188
by PCW
Replied by PCW on topic Retrofitting a 1986 Maho MH400E
The 7I77 manual is pretty generic, there's no actual fixed channel numbering.
Most configs do have the first 7I77 digital section on channel 0 and analog section on channel 1 but that's entirely determined by the FPGA firmware.
You can determine the actual mapping by looking at the Firmware pinout in conjunction with the 7I77 pinout
Most configs do have the first 7I77 digital section on channel 0 and analog section on channel 1 but that's entirely determined by the FPGA firmware.
You can determine the actual mapping by looking at the Firmware pinout in conjunction with the 7I77 pinout
Please Log in or Create an account to join the conversation.
- hanmon
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 23
30 Jan 2019 10:16 #125268
by hanmon
Replied by hanmon on topic Retrofitting a 1986 Maho MH400E
Yes, that was my mistake not having in mind that the FPGA can run different firmwares having different (channel) setups then.
Update:
I went to the shop again yesterday as I could not wait to play a little bit.
I even dared homing the axes
The low room temperature of 2°C might have been the cause but I noticed the servos to be much noisier than they were on the Philips controller.
I think the tuning still needs some improvement.
First I'm going to test if there is any drift on an axis like Mark has.
Mark: Could you please send me the G-Code of that circle plot ?
Update:
I went to the shop again yesterday as I could not wait to play a little bit.
I even dared homing the axes

The low room temperature of 2°C might have been the cause but I noticed the servos to be much noisier than they were on the Philips controller.
I think the tuning still needs some improvement.
First I'm going to test if there is any drift on an axis like Mark has.
Mark: Could you please send me the G-Code of that circle plot ?
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.330 seconds