Author Topic: Interfacing advancedHMI to arduino  (Read 1237 times)

francis

  • Newbie
  • *
  • Posts: 15
    • View Profile
Interfacing advancedHMI to arduino
« 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Interfacing advancedHMI to arduino
« Reply #1 on: March 03, 2020, 03:44:49 PM »
How are you reading from the Arduino?

francis

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Interfacing advancedHMI to arduino
« Reply #2 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Interfacing advancedHMI to arduino
« Reply #3 on: March 03, 2020, 04:28:38 PM »
Have you tried changing the swap byte and swap word properties?

francis

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Interfacing advancedHMI to arduino
« Reply #4 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.