by cncdrive » Fri Sep 30, 2016 10:10 pm
There are only 2 hardware modes for spindle configuration, the PWM and the Step/dir spindle modes.
And it then does not matter if you configure the spindle to PWM or Step/dir mode if you will not use those signals.
If you will control the spindle via modbus registers then you will first setup a modbus connection and at least one modbus function which will send modbus register values to the spindle.
And then you also will write some macros and macro loops to change your modbus register values which values will be send to the VFD via the modbus connection and modbus function.
The software does not know how your software communicates with the spindle, but you have free hands to code these macros based on what register values your VFD will need to receive for the different commands.
Finally I again want to mentioned that I don't think that full control of the spindle via modbus is safe, I think it is a much safer way to control the spindle speed via modbus,
but keep at least the spindle start/stop/enable signal to be controlled by the physical spindle relay output interruptable also with an external e-stop button.