Im working on my university of controlling a VFD through Arduino. I have been trying to communicate to my VFD via RS485 ASCII protocol but have not been able to successfully establish communication between VFD and Arduino. Whenever i try to start the my Delta VFD-S1 from arduino, only response i get from the VFD is 'CE11' which means there is a communication error. I have attached the schematic, code and Delta VFD-S1 manual (you can refer page 62 chapter 5). Need help from you guys...
Sorry for not using code tags, i have edited it.
Im confused, how am i not sending it to a VFD? When im serial printing and have connected the VFD to the arduino via MAX485, will the VFD not receive it?
The 8 and 11 pins are the digital pins of the arduino UNO
Yes, it appears on the Serial monitor when i open the Serial Monitor. Does that means it is not being sent to the VFD via RS485? Im sorry im new to modbus communication.
You have two serial devices, a hardware-backed one called Serial, and a software one called mySerial (or "VFD")
They are not connected in any way, unless you explicitly make them
I have reviewed different codes for Arduino and VFD communication and then developed my own for Delta VFD-S1. They all follow the same pattern. But due to my limited knowledge i may have missed something, can you please guide me on how can i send data via MAX485 to my VFD?
Do not forget the 0 at the end of the line.
And do call the member function print of your myserial object and not the one of Serial.
And if you want to receive RS485 trafic as well, be carefull with the control of pin 9.
Im using 7N2 ASCII protocol, i have developed the ASCII code for the START operation of the VFD by the method given in the manual. 'D7' in 010620000002D7 is the 2's complement, the method of calculating 2's complement is described in page 5-69 of the manual.
I can tell Software Serial by changing the code to, SoftwareSerial VFD(11,8); // RX, TX
and then in setup(), VFD.begin(9600, SERIAL_7N2);
but this gives me an error during compilation.