Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.

More
8 years 2 months ago #116345 by andypugh

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.

More
8 years 2 months ago #116364 by Hakan
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 component
Code:
pin out float speed_out "Motor speed needed";

2. In the "if" statement at the end, add at the end
Code:
speed_out = speed/speedratio;
when the right gear is engaged, and
Code:
speed_out = 0.0;
when the wrong gear is engaged.

3. halcompile and resinstall component

4. Change the hal file to
Code:
net spindlespeed <= gearcomp3.0.speed_out => hm2_7i76e.0.7i76.0.0.spinout

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #116365 by tecno

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.


Not abandoned but put on hold as I can not solve the puzzle. I´m a novice at this so it is what it is on my part I put things on hold whenever I can not solve task at hand.

Cheers
Bengt

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #116370 by tecno

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 component

Code:
pin out float speed_out "Motor speed needed";

2. In the "if" statement at the end, add at the end
Code:
speed_out = speed/speedratio;
when the right gear is engaged, and
Code:
speed_out = 0.0;
when the wrong gear is engaged.

3. halcompile and resinstall component

4. Change the hal file to
Code:
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.

More
8 years 2 months ago #116377 by tecno
Something else must be set wrong, did test to edit speedratio but still nothing.
I can hear that motor relay is activated so it seems VFD is not getting any voltage from 7i76e output.

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago - 8 years 2 months ago #116378 by Hakan

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 component

Code:
pin out float speed_out "Motor speed needed";

2. In the "if" statement at the end, add at the end
Code:
speed_out = speed/speedratio;
when the right gear is engaged, and
Code:
speed_out = 0.0;
when the wrong gear is engaged.

3. halcompile and resinstall component

4. Change the hal file to
Code:
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?


Ok, let's look at the screen.
You have input-c high which is third gear. gearcomp3 also wants you to use third gear so that is okay.
The speedratio is chosen to 0.18 which is fine for third gear. You have enable-in high and enable-out high, so the gearcomp3 clearly thinks you have the right gear.

But speed_out is 0.0. So there must be something wrong with the code you entered. Can you copy-paste the last if-statement in the component. I tend to think you placed the calculation of speed_out in the wrong place, setting it to zero when right gear is chosen and giving it a value when the wrong gear is chosen. But lets see.
Last edit: 8 years 2 months ago by Hakan.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.590 seconds
Powered by Kunena Forum