Spindle speed scaling

More
13 Mar 2019 11:16 - 13 Mar 2019 11:16 #128501 by andypugh
Replied by andypugh on topic Spindle speed scaling
There does seem to be some invalid assuming going on in the gs2 driver:
    if (haldata->motor_hz<10)
        haldata->motor_hz = 60;
    if ((haldata->motor_RPM < 600) || (haldata->motor_RPM > 5000))
        haldata->motor_RPM = 1800;
    hzcalc = haldata->motor_hz/haldata->motor_RPM;

    retval = modbus_write_register(
        mb_ctx,
        slavedata->write_reg_start,
        abs((int)(*(haldata->speed_command)*hzcalc*10))
    );

I think that check for haldata->motor_RPM > 5000 is spurious and is what you would need to change.
Then you should be able to set the nameplate-RPM to the correct number.

It doesn't seem to be enforcing a max limit on Motor Hz.
Last edit: 13 Mar 2019 11:16 by andypugh.

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

More
13 Mar 2019 12:54 #128511 by thadwald
Replied by thadwald on topic Spindle speed scaling

I think that check for haldata->motor_RPM > 5000 is spurious and is what you would need to change.
Then you should be able to set the nameplate-RPM to the correct number.

It doesn't seem to be enforcing a max limit on Motor Hz.


Correct; It doesn’t limit the speed at all. All this seems to do is set up the number of poles on the motor

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

Time to create page: 0.069 seconds
Powered by Kunena Forum