I have a RS485 to TTL converter and have no trouble wiring it up to the VFD, but I can't find the commands to get the VFD to do what I want (start, stop, adjust speed)
I imagine the commands would look something like this:
Serial.write(START); //start spindle motor
Serial.write(11453) // set spindle motor speed
Serial.write(STOP); //stop the spindle motor
The datasheet indicates that the VFD speaks the MODBUS protocol. It also indicates that the VFD supports MODBUS-RTU or MODBUS-ASCII depending on the configuration settings.
F163 sets the VFD device address on MODBUS.
F164 sets the baud rate
F165 sets whether it's None, Even or Odd parity and whether its MODBUS-RTU or MODBUS-ASCII
I'm guessing that you can alter these values using the front panel on the VFD.
However, the datasheet suggest that the factory default configuration is for V70 communication protocol (F169), rather than MODBUS.
You should be able to configure the VFD using F163, F164, F165 & F169 for MODBUS. I would suggest you went with MODBUS-ASCII as the communications are easier to see when monitoring the serial lines.
There are some examples of messages on page 71 of the datasheet.
My knowledge of motors and how to use a VFD is practically zero! I did Google "vfd modbus communication" and straight away got some YouTube videos on how to get started. Maybe they will help you with getting the motor running.
I think your best bet would be to find somebody with experience in VFD terminology as the datasheet for the device seems to have rather a lot of parameters relating to motors.
You may be lucky and find that VFD controllers all generally have the same MODBUS register layout. In which case you may find a PC program that can control the VFD to make it do what you want. If you get that far, then maybe you can observe the RS485 messages going between the PC and the VFD to figure out which ones you might need to control it from an Arduino.