- Posts: 1635
- Thank you received: 595
Retrofitting a 1986 Maho MH400E
- RotarySMP
- Offline
- Platinum Member
-
Less
More
7 years 5 months ago #134395
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
Sounds like the only spindle speed you will ever use is 4000RPM.
Please Log in or Create an account to join the conversation.
- Glemigobles
- Offline
- Elite Member
-
Less
More
- Posts: 201
- Thank you received: 18
7 years 5 months ago #134476
by Glemigobles
Replied by Glemigobles on topic Retrofitting a 1986 Maho MH400E
Should the drives energize for the simulation to work?
When I make the changes in the sim.hal file the way you describe it in the wiki, I get the machine to latch on, in the sense that pressing the hydraulics button once gets it to stay on.
But I'm not sure the drives are enabled (they're quiet) and when I change gears using a hex key, the sim doesn't register the changes. How is the simulation supposed to know which IO pins on the Mesa board are mapped to which signal? I searched through all the files from the repository and I haven't found any place in which Sergey programmed the mappings.
I get that when you run the component as a part of your LinuxCNC config it gets the mappings from the main hal file, but how is it supposed to get them in the simulation?
There are nets set up for signal names and displayed values, but nowhere are the nets connected to the hardware pins.
When I make the changes in the sim.hal file the way you describe it in the wiki, I get the machine to latch on, in the sense that pressing the hydraulics button once gets it to stay on.
But I'm not sure the drives are enabled (they're quiet) and when I change gears using a hex key, the sim doesn't register the changes. How is the simulation supposed to know which IO pins on the Mesa board are mapped to which signal? I searched through all the files from the repository and I haven't found any place in which Sergey programmed the mappings.
I get that when you run the component as a part of your LinuxCNC config it gets the mappings from the main hal file, but how is it supposed to get them in the simulation?
There are nets set up for signal names and displayed values, but nowhere are the nets connected to the hardware pins.
Please Log in or Create an account to join the conversation.
- Glemigobles
- Offline
- Elite Member
-
Less
More
- Posts: 201
- Thank you received: 18
7 years 5 months ago #134481
by Glemigobles
Replied by Glemigobles on topic Retrofitting a 1986 Maho MH400E
Also, any ideas on how to interface the hydraulic tool release signal with the gmoccapy panel? There's nothing equivalent to the tool release button from the Philips here, maybe a regular keyboard key could do it?
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 5 months ago #134482
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
For the simulator, I had a completely separate set up. I never backed that up, so I'll need to look on the MAHO's controller what sim.HAL I wrote for it.
The drives need to be energised (actually E-Stop needs to be released) for the gearbox feedback to work, as they are on the 24VDC bus between pins 200/201, which only energises once the 7K1 relay (estop) closes (see wiring diagram page 07). I remember using a wedge on a the 19K1 relay's test button to "latch" on the E-stop to test that, until I kludged up a switch to latch that properly.
Since you already have a complete machine set up, you might be better off to skip the SIM and just use HALshow within your normal machine config to check all your feedback pins are working correctly.
Mark
The drives need to be energised (actually E-Stop needs to be released) for the gearbox feedback to work, as they are on the 24VDC bus between pins 200/201, which only energises once the 7K1 relay (estop) closes (see wiring diagram page 07). I remember using a wedge on a the 19K1 relay's test button to "latch" on the E-stop to test that, until I kludged up a switch to latch that properly.
Since you already have a complete machine set up, you might be better off to skip the SIM and just use HALshow within your normal machine config to check all your feedback pins are working correctly.
Mark
Please Log in or Create an account to join the conversation.
- Glemigobles
- Offline
- Elite Member
-
Less
More
- Posts: 201
- Thank you received: 18
7 years 5 months ago #134488
by Glemigobles
Replied by Glemigobles on topic Retrofitting a 1986 Maho MH400E
Okay, the E-stop does release, so feedback should work.
What you're saying regarding halshow is that I could see if changing gears by hand (key) causes the relevant pin to change state, and whether the arrangement (which pin changes in response to which motor goes in which direction) works as expected, right?
If all of them change correctly regarding direction and motor, the whole component should work without much trouble.
What you're saying regarding halshow is that I could see if changing gears by hand (key) causes the relevant pin to change state, and whether the arrangement (which pin changes in response to which motor goes in which direction) works as expected, right?
If all of them change correctly regarding direction and motor, the whole component should work without much trouble.
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 5 months ago #134493
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
Tool release is simple:
net toolrelease [button of your choice] hm2_5i25.0.7i84.0.2.output-09
I have attached the two HAL files which I used during sim testing.
Correct. If open the pins in HALshow and drive the gearbox stages with your allen key.
Mark
net toolrelease [button of your choice] hm2_5i25.0.7i84.0.2.output-09
I have attached the two HAL files which I used during sim testing.
Correct. If open the pins in HALshow and drive the gearbox stages with your allen key.
Mark
The following user(s) said Thank You: Glemigobles
Please Log in or Create an account to join the conversation.
Time to create page: 0.237 seconds