- Posts: 1317
- Thank you received: 454
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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)?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.