- Posts: 1317
- Thank you received: 0
Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
8 years 1 month ago #117182
by Hakan
Replied by Hakan on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
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?
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 to join the conversation.
8 years 1 month ago #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.
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Attachment not found
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.
Please Log in to join the conversation.
8 years 1 month ago #117184
by Hakan
Replied by Hakan on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
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.
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 to join the conversation.
8 years 1 month ago #117185
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
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
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
Please Log in to join the conversation.
8 years 1 month ago #117187
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
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.
Power on but not stiff as I can rotate shaft by hand = no error message on driver.
Please Log in to join the conversation.
8 years 1 month ago #117193
by Hakan
Replied by Hakan on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
You can change this line
to
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
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)?
Code:
motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i]);
Code:
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
Code:
if (motor_high)
motor_max_speed = 2500;
else
motor_max_speed = 1450;
motor_speed_out = motor_max_speed * (spindle_speed_in / speeds[i+1]);
Halcompile and all that to test again.
For the vfd speed, does it need rpm or rps (minutes vs seconds)?
Please Log in to join the conversation.
8 years 1 month ago #117194
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Hakan wrote: You can change this line
toCode:motor_speed_out = speeds[13] * (spindle_speed_in / speeds[i]);Code: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 lineThis should give about 928 rpm on motor. Assuming 125 spindle rpm at 1450 motor rpm.Code:if (motor_high) motor_max_speed = 2500; else motor_max_speed = 1450; motor_speed_out = motor_max_speed * (spindle_speed_in / speeds[i+1]);
Halcompile and all that to test again.
For the vfd speed, does it need rpm or rps (minutes vs seconds)?
Code:
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];
Please Log in to join the conversation.
8 years 1 month ago #117195
by Hakan
Replied by Hakan on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
I know, but there is no code to set different max speeds when the pin is high or low.
I added that code.
I added that code.
Please Log in to join the conversation.
8 years 1 month ago #117196
by tecno
So now we have some action but S80 is in fact 110rpm at 32.32Hz. We are getting closer.
S445 runs at 598rpm
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Code:
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 to join the conversation.
8 years 1 month ago #117197
by tecno
# 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.
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Hakan wrote: 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 to join the conversation.
Time to create page: 0.421 seconds
