Retrofitting a 1986 Maho MH400E

26 Dec 2017 17:29 - 26 Dec 2017 17:30 #103688 by drimaropoylos
drimaropoylos replied the topic: Retrofitting a 1986 Maho MH400E
Merry Christmas to all. Hi Marc, glad that the configuration works.
On the pulley assembly the component between the pulley and the shaft it expands with the pressure of the flange and act like a safety clutch. When there is no pressure from the flange (with the six screws) it should come off by hand easily. In my case the flange was not tight enough and the clutch was rubbing on the shaft and the tiny mark from friction on the shaft was the reason the pulley was difficult to remove. I haven’t worked on the configuration after post it.
Nice work on the control panel.
Last Edit: 26 Dec 2017 17:30 by drimaropoylos.
28 Dec 2017 16:55 - 28 Dec 2017 16:55 #103797 by RotarySMP
RotarySMP replied the topic: Retrofitting a 1986 Maho MH400E
Thanks John, at present, there is currently nothing implemented to call the gearchange.clp is there?

I was looking at remapping S, as the Linuxcnc G code remapping widget uses Python, which I have a little bit of experience with. If I understand correctly, then the setspeed_prolog and setspeed_epilog could be used to call and wrap your ladder logic.

Here is my block diagram for that plan. Any comments and suggestions are appreciated.

I started bogging the defects on the housing, but didn't use enough hardener, and it's cold in the basement, so I put it by the furnance in the hope that is goes hard.

Also printing the first of the control panel buttons on the 3D printer.
Last Edit: 28 Dec 2017 16:55 by RotarySMP.
01 Jan 2018 15:09 #103922 by RotarySMP
RotarySMP replied the topic: Retrofitting a 1986 Maho MH400E
Prosit neu Jahr.
I am working on my control panel,

...and want to use Matrix_KB to interface the 26 keys with a 5x5 matrix.

I am a little unsure of the syntax from the documention, and couldn't find examples in the forum here. Appreciate any feedback on this.

loadrt matrix_kb config=R5C5s names=MAHO_Panel # 5x5 Matrix, in scan generation mode.
addf matrix_kb.MAHO_Panel servo-thread

net matrix_kb.MAHO_Panel.col-1-in hm2_5i25.0.7i77.0.0.output-00 # does the column numbering start at 0 or 1? I am netting a pin to a pin. Don't I need a signal?
net matrix_kb.MAHO_Panel.col-2-in hm2_5i25.0.7i77.0.0.output-01
net matrix_kb.MAHO_Panel.col-3-in hm2_5i25.0.7i77.0.0.output-02
net matrix_kb.MAHO_Panel.col-4-in hm2_5i25.0.7i77.0.0.output-03
net matrix_kb.MAHO_Panel.col-5-in hm2_5i25.0.7i77.0.0.output-04

net gmoccapy.v-button-0 matrix_kb.MAHO_Panel.key.r1c1 # same question as above, does the row numbering begin with 1 or 0?
net gmoccapy.v-button-5 matrix_kb.MAHO_Panel.key.r2c1 # What about the net of the five input pins from the 7i77? I feel I've completely missunderstood this syntax
matrix_kb.N.key.rRcC bit out
The pin corresponding to the key at row R column C of the matrix
from the documentation.

01 Jan 2018 15:29 - 01 Jan 2018 16:05 #103925 by PCW
PCW replied the topic: Retrofitting a 1986 Maho MH400E
When I am unsure about a component pins and names I use halcmd to list them:
(this is with linuxcnc running but without the matrix_kb hal file additions )

pcw@pcw-G41M-Combo:~/linuxcnc$ halcmd loadrt matrix_kb config=5x5 names=MAHO_Panel
pcw@pcw-G41M-Combo:~/linuxcnc$ halcmd show pin MAHO
Component Pins:
Owner Type Dir Value Name
42 bit OUT FALSE MAHO_Panel.key.r0c0
42 bit OUT FALSE MAHO_Panel.key.r0c1
42 bit OUT FALSE MAHO_Panel.key.r0c2
42 bit OUT FALSE MAHO_Panel.key.r0c3
42 bit OUT FALSE MAHO_Panel.key.r0c4
42 bit OUT FALSE MAHO_Panel.key.r1c0
42 bit OUT FALSE MAHO_Panel.key.r1c1
42 bit OUT FALSE MAHO_Panel.key.r1c2
42 bit OUT FALSE MAHO_Panel.key.r1c3
42 bit OUT FALSE MAHO_Panel.key.r1c4
42 bit OUT FALSE MAHO_Panel.key.r2c0
42 bit OUT FALSE MAHO_Panel.key.r2c1
42 bit OUT FALSE MAHO_Panel.key.r2c2
42 bit OUT FALSE MAHO_Panel.key.r2c3
42 bit OUT FALSE MAHO_Panel.key.r2c4
42 bit OUT FALSE MAHO_Panel.key.r3c0
42 bit OUT FALSE MAHO_Panel.key.r3c1
42 bit OUT FALSE MAHO_Panel.key.r3c2
42 bit OUT FALSE MAHO_Panel.key.r3c3
42 bit OUT FALSE MAHO_Panel.key.r3c4
42 bit OUT FALSE MAHO_Panel.key.r4c0
42 bit OUT FALSE MAHO_Panel.key.r4c1
42 bit OUT FALSE MAHO_Panel.key.r4c2
42 bit OUT FALSE MAHO_Panel.key.r4c3
42 bit OUT FALSE MAHO_Panel.key.r4c4
42 u32 IN 0x00000000 MAHO_Panel.keycode
42 s32 OUT 0 MAHO_Panel.time

And yes, all net commands need a signal and the first token after the "net" command
( you can also verify this with halcmd)

This can save a lot of time by quickly testing hal commands and components without re-editing
your hal file over and over (once you have things working you can copy/paste names/commands from your
terminal history into you hal file)
Last Edit: 01 Jan 2018 16:05 by PCW.
The following user(s) said Thank You: RotarySMP
01 Jan 2018 16:20 - 02 Jan 2018 09:32 #103928 by RotarySMP
RotarySMP replied the topic: Retrofitting a 1986 Maho MH400E
Thanks. That is very helpful. I forgot that hal pins get automatically created by the function, and thought I needed to define them.
Thanks for confirming that the numbering of columns and rows starts with 0.

Now I understand better this line of the documentation.
In the optional scan-generation mode the matrix_kb.N.keycode pin changes to an output pin and a set of output row pins and input column pins are created.

So my HAL entry will be:
loadrt matrix_kb config=5x5s names=MAHO_Panel

When the signal is irrelevant, and is only used as glue bettweens pins, like in this case...
net signal name MAHO_Panel.col-2-in hm2_5i25.0.7i77.0.0.output-01
... is there a convention or standard in the the linuxcnc community for signal naming?

Here is my button matrix

And a rough wiring diagram.

Last Edit: 02 Jan 2018 09:32 by RotarySMP.
04 Jan 2018 17:23 - 04 Jan 2018 17:26 #104028 by RotarySMP
RotarySMP replied the topic: Retrofitting a 1986 Maho MH400E
I've been working on the button assemblies.

The top RH button needs two switches, one for 110VAC physical E-Stop release, and the other 24VDC to the 7i77 and Linuxcnc.
When I designed the laser part, I didn't realise that those buttons are stackable. Duh!

I'll need to reprint the entire set of buttons one more time, as they need to be another 2mm thicker to avoid jamming in the the front panel cut outs.

Using my daughters yellow nail polish to bring out the text doesn't really work, as the solvent in the polish attacks the PLA. Next attempt will be with acylic paint.

Last Edit: 04 Jan 2018 17:26 by RotarySMP.
06 Jan 2018 20:27 #104088 by RotarySMP
RotarySMP replied the topic: Retrofitting a 1986 Maho MH400E
About 6 hours into a 7 hour print, I left to see a friend... not a good plan!

This is hopefully the last iteration of these buttons, as I must have printed at least 60, in various different thicknesses.
Moderators: piasdom
Time to create page: 0.833 seconds
Powered by Kunena Forum