Author Topic: Fixing Data Logging Issues on Modbus TCP/IP Connection Using AdvancedHMI  (Read 1235 times)

JoyeesN

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hello Everyone,

I'm having trouble solving a problem with the AdvancedHMI project I'm working on for a small industrial automation system. In my setup, I'm using Modbus TCP/IP to communicate with a PLC. The connection is reliable, and data is read and displayed on the HMI without any problems, however I'm having trouble adequately logging the data.

For further examination, I would like to save certain values from a small number of Modbus registers (both holding and input registers) to a CSV file. Although I've followed the instructions in the handbook to log data, it doesn't seem like the data is being written to the file as it should be. Even though I am aware that values are being sent to the HMI interface, there are instances where the log file is created but stays empty.

Here's a brief summary of what I've attempted thus far:

  • Utilised the toolbox's BasicDataLogger2 control and configured it to record values from the appropriate Modbus addresses.
  • I double-checked the data types and registration addresses to ensure that the information I'm recording is accurate.
  • Choose a log interval of one second in order to record frequent data points.
  • Nevertheless, the logging seems erratic, and I'm not sure what I might be overlooking.
  • Does anyone else have this problem or know of any other solutions I could try? Are there any known issues or gcp setup instructions that I might have missed?

Any recommendations or guidance would be very valued! Thank you in advance for your time.
« Last Edit: October 06, 2024, 05:47:25 AM by JoyeesN »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Fixing Data Logging Issues on Modbus TCP/IP Connection Using AdvancedHMI
« Reply #1 on: October 06, 2024, 07:34:01 PM »
What is the PollRateOverride for the Modbus driver?

You could try adding a new driver instance that is dedicated to the DataLogger2. Set the PollRateOverride to 1000. In The DataLogger, Set ComComponent to the new driver instance and set the LogTriggerType of the data logger to EverySample.