- Posts: 1635
- Thank you received: 595
Retrofitting a 1986 Maho MH400E
- RotarySMP
- Offline
- Platinum Member
-
Less
More
7 years 11 months ago - 7 years 11 months ago #120934
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
The next project is designing the machine dolly. My basement is not that big, and I can't afford the space to have the Maho 1m from walls to provide access to the electrical cabinet. The plan is a permanently mounted dolly, with a lift mechanismdriven off a single screw with LH and RH threads, so I can lift the machine with a single ratchet point, wheel it to the center of the room if I need to get into the cabinet, and return it to the corner when done.
Haven't got far on the design yet. SInce a friend has access to laser cutting steel, I tend to design more complex fabrications than necessary. There is a lip running around the casting, which make a convenient thing to lift off.
I got these vibration isolators of ebay. They are the next size up from the ones on my lathe, and I am very happy with those. Need to make longer studs to got through the MAHO base casting.
Otherwise It has been more work on the user control panel wiring. The control panel side is now finished except for the pendant, so next It needs terminating at the 7i77.
Haven't got far on the design yet. SInce a friend has access to laser cutting steel, I tend to design more complex fabrications than necessary. There is a lip running around the casting, which make a convenient thing to lift off.
I got these vibration isolators of ebay. They are the next size up from the ones on my lathe, and I am very happy with those. Need to make longer studs to got through the MAHO base casting.
Otherwise It has been more work on the user control panel wiring. The control panel side is now finished except for the pendant, so next It needs terminating at the 7i77.
Last edit: 7 years 11 months ago by RotarySMP.
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
7 years 11 months ago - 7 years 11 months ago #120953
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
I finally finished wiring up my keyboard, but am having some trouble with my HAL syntax. I'd appreciate someone pointing
out what I have to modify in my use of net.
...gives me these pins:
When I connect them to the 7i77 I/O like this:
.
It rejects my net connection:
out what I have to modify in my use of net.
Code:
loadrt matrix_kb config=5x5s names=maho_panel
addf maho_panel servo-thread
...gives me these pins:
Code:
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
4 bit IN FALSE maho_panel.col-00-in
4 bit IN FALSE maho_panel.col-01-in
4 bit IN FALSE maho_panel.col-02-in
4 bit IN FALSE maho_panel.col-03-in
4 bit IN FALSE maho_panel.col-04-in
4 bit OUT FALSE maho_panel.row-00-out
4 bit OUT FALSE maho_panel.row-01-out
4 bit OUT FALSE maho_panel.row-02-out
4 bit OUT FALSE maho_panel.row-03-out
4 bit OUT FALSE maho_panel.row-04-out
[i]4 bit OUT FALSE maho_panel.key.r0c0
4 bit OUT FALSE maho_panel.key.r0c1
4 bit OUT FALSE maho_panel.key.r0c2
4 bit OUT FALSE maho_panel.key.r0c3
4 bit OUT FALSE maho_panel.key.r0c4
4 bit OUT FALSE maho_panel.key.r1c0
4 bit OUT FALSE maho_panel.key.r1c1
4 bit OUT FALSE maho_panel.key.r1c2
4 bit OUT FALSE maho_panel.key.r1c3
4 bit OUT FALSE maho_panel.key.r1c4
4 bit OUT FALSE maho_panel.key.r2c0
4 bit OUT FALSE maho_panel.key.r2c1
4 bit OUT FALSE maho_panel.key.r2c2
4 bit OUT FALSE maho_panel.key.r2c3
4 bit OUT FALSE maho_panel.key.r2c4
4 bit OUT FALSE maho_panel.key.r3c0
4 bit OUT FALSE maho_panel.key.r3c1
4 bit OUT FALSE maho_panel.key.r3c2
4 bit OUT FALSE maho_panel.key.r3c3
4 bit OUT FALSE maho_panel.key.r3c4
4 bit OUT FALSE maho_panel.key.r4c0
4 bit OUT FALSE maho_panel.key.r4c1
4 bit OUT FALSE maho_panel.key.r4c2
4 bit OUT FALSE maho_panel.key.r4c3
4 bit OUT FALSE maho_panel.key.r4c4
4 u32 OUT 0x00000000 maho_panel.keycode[/i]
4 s32 OUT 0 maho_panel.time
When I connect them to the 7i77 I/O like this:
Code:
#*******************
# USER CONTROL PANEL
#*******************
# Multiplex interface with the user control panel buttons
# scan out0
net maho_panel.row_00_sig-out maho_panel.row-00-out => hm2_5i25.0.7i77.0.0.input-05
net maho_panel.row_01_sig-out maho_panel.row-01-out => hm2_5i25.0.7i77.0.0.input-06
net maho_panel.row_02_sig-out maho_panel.row-02-out => hm2_5i25.0.7i77.0.0.input-07
net maho_panel.row_03_sig-out maho_panel.row-03-out => hm2_5i25.0.7i77.0.0.input-08
net maho_panel.row_04_sig-out maho_panel.row-04-out => hm2_5i25.0.7i77.0.0.input-09
# scan in
net maho_panel.col_00_sig-in maho_panel.col-00-in <= hm2_5i25.0.7i77.0.0.output-01
net maho_panel.col_01_sig-in maho_panel.col-01-in <= hm2_5i25.0.7i77.0.0.output-02
net maho_panel.col_02_sig-in maho_panel.col-02-in <= hm2_5i25.0.7i77.0.0.output-03
net maho_panel.col_03_sig-in maho_panel.col-03-in <= hm2_5i25.0.7i77.0.0.output-04
net maho_panel.col_04_sig-in maho_panel.col-04-in <= hm2_5i25.0.7i77.0.0.output-05
It rejects my net connection:
Code:
Debug file information:
.
./MAHO_MH400E.hal:54: Signal 'maho_panel.row_00_sig-out' can not add OUT pin 'hm2_5i25.0.7i77.0.0.input-05', it already has OUT pin 'maho_panel.row-00-out'
Last edit: 7 years 11 months ago by RotarySMP.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
7 years 11 months ago #120955
by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
The 7i77.0.0.input-NN pins are HAL _outputs_ They are physical inputs that set the value of attached HAL pins.
So the mapping needs to be maho_panel.out => 7i77.out and maho_panel.in => 7i77.in
So the mapping needs to be maho_panel.out => 7i77.out and maho_panel.in => 7i77.in
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
7 years 11 months ago - 7 years 11 months ago #120960
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
Thanks Andy, I'd got confused with out of what is into whom.
Switched that around, and now the module loads, but the behaviour is very flaky, as can be seen here.
All buttons are momentary, so all pins should be off unless pressed. At one point testing here one got stuck, but I don't thing that many are sticking. Is this a debounce problem? I saw in the user guide that Matrix_kb should run in a slow thread, but my servo thread is only 1kHz, so I figured that would be slow enough.
Any recommendations appreciated.
Mark
Switched that around, and now the module loads, but the behaviour is very flaky, as can be seen here.
All buttons are momentary, so all pins should be off unless pressed. At one point testing here one got stuck, but I don't thing that many are sticking. Is this a debounce problem? I saw in the user guide that Matrix_kb should run in a slow thread, but my servo thread is only 1kHz, so I figured that would be slow enough.
Any recommendations appreciated.
Mark
Last edit: 7 years 11 months ago by RotarySMP.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
7 years 11 months ago #120967
by andypugh
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
I agree, that isn't working as one might hope.
Can you try to check all the rows and columns and check that they are doing the right things?
(This might take halscope to sample fast enough).
I tested the component with a 4x4 matrix, but didn't have anything bigger.
Can you try to check all the rows and columns and check that they are doing the right things?
(This might take halscope to sample fast enough).
I tested the component with a 4x4 matrix, but didn't have anything bigger.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
7 years 11 months ago #120968
by PCW
Replied by PCW on topic Retrofitting a 1986 Maho MH400E
Also if you ever expect more than 1 switch to be on at a time, you will need to add a series diode per switch
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.607 seconds