AdvancedHMI Software

General Category => Open Discussion => Topic started by: francis on March 03, 2020, 03:35:36 PM

Title: Interfacing advancedHMI to arduino
Post by: francis on March 03, 2020, 03:35:36 PM
Am using digitalpanelmeter to read temperature from arduino. In serial monitor, am getting 27 degrees and getting strange readings on the panel meter, 6298 degrees. What could be the cause?
Title: Re: Interfacing advancedHMI to arduino
Post by: Archie on March 03, 2020, 03:44:49 PM
How are you reading from the Arduino?
Title: Re: Interfacing advancedHMI to arduino
Post by: francis on March 03, 2020, 03:47:53 PM
Am using Ethernet. I have set my PLC address to 40001. I have included modbus.h library in the arduino code
Title: Re: Interfacing advancedHMI to arduino
Post by: Archie on March 03, 2020, 04:28:38 PM
Have you tried changing the swap byte and swap word properties?
Title: Re: Interfacing advancedHMI to arduino
Post by: francis on March 03, 2020, 05:11:15 PM
Thanks Archie,

Swapping bytes did the trick. Now able to read the same value seen in serial monitor.