Author Topic: Log Data on Value Change  (Read 1508 times)

cjmcc

  • Newbie
  • *
  • Posts: 4
    • View Profile
Log Data on Value Change
« on: November 17, 2020, 12:58:13 PM »
Hey guys!

I’m looking to keep a log of I/O changes on a compact logic PLC. I have been using the BasicDataLogger2G on 399y Beta 35R1, but it is not exactly what I would like. It currently logs like this:

Date Time, Tag Value, Tag Value, Tag Value

I would like it to be:
Date Time TagName Tag Value

I would like a new line with just the value that has changed. Not every value when just one changes. I’ve tried manipulating the code with no success. Has anyone done this or have any ideas to lead me in the correct direction?

Thanks!

MajorFault

  • Guest
Re: Log Data on Value Change
« Reply #1 on: November 18, 2020, 02:33:42 PM »
Log your data to a database and you can have any arrangement you want.  SQLite is very easy and lightweight to use.  Several posts on this forum about it.