H100: Use vfd_config.vfd_rpm_hz for hz<->rpm conversion#44
H100: Use vfd_config.vfd_rpm_hz for hz<->rpm conversion#44Zelberor wants to merge 1 commit intogrblHAL:masterfrom
Conversation
|
Reading the number of poles is preferable since adding the setting will trigger a settings reset for the spindle plugin and likely all plugins registered after it. |
|
I see. Just some further observations from the F143/F144 behavior (which I find really confusing):
Now reading F143/144 for the rpm<->hz conversion could still result in breaking changes for users since I suspect many have not set up F143/144. The parameters are not mentioned in many guides. But I agree that that is better than resetting settings. I also agree that the pole number should be used for the calculation; I just wonder if it might make sense to read both values and sanity-check them against each other. And then issue a warning if they don't match? Soo.. how should I proceed? And should I update this PR or create a new one? |
Changes:
I made the change, because I own a 24000rpm/800Hz spindle that requires a different conversion factor than the 60 that is hardcoded in the driver. (Mine requires 30).
The alternative to this change would be to load the Max RPM value / VFD_GetRPMAt50Hz, like it is done for the "Huanyang v1", but the documentation for this parameter seems weird. Manual of the H100
Similar to the Huanyang, the H100 has a F144 parameter. It is labelled differently in the summary and description sections:
Rated rotating speed of motor(Ex. factory value per manual: 1440, but was set to 24000 when I got it)Motor rotating speed. It shall be set according to actual speed of the motor; displayed value is identical to this parameter and can be used as the parameter used for monitoring to facilitate the user;this set value is corresponding to to the rotating speed at 50Hz.The VFD_GetRPMAt50Hz probably originated from the 50Hz part in this description?
I think entering the rpm@50Hz value into F144 is wrong.
My assumption is, that F144 is supposed to contain the rated/nominal/max rpm of the motor. And the 50Hz in the description only exists, because most industrial motors are rated for 50Hz, not 400 or 800.
I can also sort-of prove my assumption, because:
You can activate the "Operation speed" display option with F170=2. Then on the "main" screen cycle through the display options with SHIFT(4 times: output freq -> set freq -> output current -> output voltage -> option set in F170). F180 can be used to set the default display option, btw. My VFD now always shows rpm instead of Hz :)
Anyway, I am still unsure about the proper meaning of F144 and opted to use the vfd_config.vfd_rpm_hz parameter instead.
Another option would be to read the number of poles (F143), where 400Hz spindles usually have 2 and mine has 4. Idk.