- Posts: 19311
- Thank you received: 4655
Hakan wrote: But where will you calculate the motor rpms for the different gears?.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
andypugh wrote:
Hakan wrote: But where will you calculate the motor rpms for the different gears?.
The component I wrote did this. But I see that you seem to have abandoned my version about 40 posts ago.
Please Log in or Create an account to join the conversation.
Hakan wrote: I think the intention was to merge your version with another version.
The speed_out pin was lost in that process.
Bengt, you need to
1. Add the speed_out pin in the gearcomp3 componentCode:pin out float speed_out "Motor speed needed";
2. In the "if" statement at the end, add at the endwhen the right gear is engaged, andCode:speed_out = speed/speedratio;when the wrong gear is engaged.Code:speed_out = 0.0;
3. halcompile and resinstall component
4. Change the hal file toCode:net spindlespeed <= gearcomp3.0.speed_out => hm2_7i76e.0.7i76.0.0.spinout
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
tecno wrote:
Hakan wrote: I think the intention was to merge your version with another version.
The speed_out pin was lost in that process.
Bengt, you need to
1. Add the speed_out pin in the gearcomp3 componentCode:pin out float speed_out "Motor speed needed";
2. In the "if" statement at the end, add at the endwhen the right gear is engaged, andCode:speed_out = speed/speedratio;when the wrong gear is engaged.Code:speed_out = 0.0;
3. halcompile and resinstall component
4. Change the hal file toCode:net spindlespeed <= gearcomp3.0.speed_out => hm2_7i76e.0.7i76.0.0.spinout
]net spindlespeed <= gearcomp3.0.speed-out => hm2_7i76e.0.7i76.0.0.spinout[
PROGRESS
I think there is something wrong with speedratio that is shown as 0.18 and should be just about 1.0 or a bit less.
Some tweaking but what to change?
Please Log in or Create an account to join the conversation.