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

More
07 Sep 2018 13:11 #117182 by Hakan
Don't think so.

You should most likely look inside the component how the motor-speed-out is calculated.

Maybe you did that already to end up with the factors here, but you can use the halshow to
show the values of the output pins.
And if there is something wrong in the output pins values, and the right logic with the gears work,
you need to look in the code how the wrong value is calculated. It should be possible to follow,
there aren't too many lines of code.

Can you show a screenshot of halshow with all the input pins and output pins of the component
shown when there is an output that troubles you?

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

More
07 Sep 2018 13:36 #117183 by tecno


S80 commanded
output of 2500 from comp is way off, should be about 640 if my calculation is correct and still it is not acting so as i only get 1.84Hz.
Attachments:

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

More
07 Sep 2018 14:04 #117184 by Hakan
The comp thinks you need gear 1, and you have gear 1 engaged = OK.
The speed table says you can use speed 1 between 0 and 80 (spindle) rpm
and that the motor rpm will be between 0 and 2500 rpm in that range.

There is probably something wrong in the table. What did you expect the
motor output to be - 640? Can gear 1 go as high as 310 (spindle) rpm.
What is really the range for gear 1?

The vfd Hz should be easy to fix, let's work on the comp's output for the time being.

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

More
07 Sep 2018 14:49 - 07 Sep 2018 14:52 #117185 by tecno
Comp is OK as regard what gear I need.
But range of gear 1 should be 80 - 125rpm not 0-80 as I have no use for slower than 80 and that is already pushing the VFD output loading the motor too much.

S80 is gear1 and motor in lowspeed (max 1450rpm on motorshaft geared down via belt drive to max speed of 1250rpm in lowspeed).
Motor should spin about 1077 rpm = 43Hz

I have a small error in ratio numbers as I´ve calculated from max 1000rpm as they should have been calculated from 1250rpm.

But still there is something wrong as the motor spins only at 1.84Hz
Last edit: 07 Sep 2018 14:52 by tecno. Reason: added text

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

More
07 Sep 2018 15:00 #117187 by tecno
As a side note, homed all my axis and suddenly X is out of order.

Power on but not stiff as I can rotate shaft by hand = no error message on driver.

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

More
07 Sep 2018 16:37 - 07 Sep 2018 16:38 #117193 by Hakan
You can change this line
		motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i]);
to
		motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i+1]);

That should give motor-out-speed of 1600 because it is based on max-rpm 2500.
As far as I can see, there is no support in the comp for using different max rpm.

You *can* do like this. But it is never good to interfere in someone's line of thought so if
Andy has a better idea then go for that.
1. Add a variable "double motor_max_speed;" where the other variables are declared.
2. Just above the motor_speed_out line
                if (motor_high)
                   motor_max_speed = 2500;
                else
                   motor_max_speed = 1450;
		motor_speed_out = motor_max_speed * (spindle_speed_in / speeds[i+1]);
This should give about 928 rpm on motor. Assuming 125 spindle rpm at 1450 motor rpm.

Halcompile and all that to test again.

For the vfd speed, does it need rpm or rps (minutes vs seconds)?
Last edit: 07 Sep 2018 16:38 by Hakan.

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

More
07 Sep 2018 16:44 - 07 Sep 2018 16:44 #117194 by tecno

You can change this line
		motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i]);
to
		motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i+1]);

That should give motor-out-speed of 1600 because it is based on max-rpm 2500.
As far as I can see, there is no support in the comp for using different max rpm.

You *can* do like this. But it is never good to interfere in someone's line of thought so if
Andy has a better idea then go for that.
1. Add a variable "double motor_max_speed;" where the other variables are declared.
2. Just above the motor_speed_out line
                if (motor_high)
                   motor_max_speed = 2500;
                else
                   motor_max_speed = 1450;
		motor_speed_out = motor_max_speed * (spindle_speed_in / speeds[i+1]);
This should give about 928 rpm on motor. Assuming 125 spindle rpm at 1450 motor rpm.

Halcompile and all that to test again.

For the vfd speed, does it need rpm or rps (minutes vs seconds)?

omponent GB_2speed;

pin in bit spindle-enable-in;
pin out bit spindle-enable-out;
pin in float spindle-speed-in;
pin out float motor-speed-out;

pin in bit gear-high;
[b]pin in bit motor-high;[/b] <<<<<<<<< this will activate output 10 that is Mootor HighSpeed 
pin in bit gear-A;
pin in bit gear-B;
pin in bit gear-C;
pin in bit gear-D;
pin in bit gear-E;

pin out unsigned gear-required;
pin out bit message-##[14];
Last edit: 07 Sep 2018 16:44 by tecno.

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

More
07 Sep 2018 16:57 #117195 by Hakan
I know, but there is no code to set different max speeds when the pin is high or low.
I added that code.

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

More
07 Sep 2018 17:14 #117196 by tecno
motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i+1]);

So now we have some action but S80 is in fact 110rpm at 32.32Hz. We are getting closer.

S445 runs at 598rpm

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

More
07 Sep 2018 17:18 #117197 by tecno

I know, but there is no code to set different max speeds when the pin is high or low.
I added that code.


# Motor High
net motor-high-signal <= GB-2speed.0.motor-high
net motor-high-signal => hm2_7i76e.0.7i76.0.0.output-10

Gear setting 10-11-12-13 should activate above as I understood this.

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

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