Hi Guys
I was making the same mistake.. (read the messages after the one quoted)
You need to see how the data is structured ...
http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdfI'm no modbus expert either but this is how I see it
It is a protocol so it describes how (rs485 rs232 etc) messages are sent and what fromat they are sent in (address, function etc) but not the actual data therein. so I doubt that you could just swap two different VFD's and not make any changes to your code. IE on one VFD PD001 may mean start while on anotehr it may mean stop etc.
The Huanyang VFD is a poor attempt at meeting the protocol and is flawed. Some are trying to address this with the manufacturer but its a very long drawn out process and may not happen. Two things to remember ... 1. its probably preprogramed into the pic chip and not flashable and 2. many applications are stand alone and don't use Modbus.
The Plugin is a "work around" and is a viable solution and slightly more elegant IMHO than using a analog input. The fact that we are using the VFD to drive a spindle means many of the fancier features (ramp ups and downs) are not needed so we are only using a small number of parameters .
Start
direction'
speed
stop
and read backs for actual speed and current draw.
As the saying goes "you get what you pay for" and a fully complient VFD with all the features would I think be far more expensive than these units with their :flaws"
Cheers Mark