adccommunitymod (AutomationDirect) asked a question.

How to Data Logging

Created Date: August 19,2015

Created By: nhermanson

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I'm working on a P3K project that I'm bringing in some data in string format through the serial port. The samples will be taken about once every 10 minutes. The string is made up of Date/Time, Sample type, moisture and temp. I know how to unpack the strings to display the most recent data that I want. But I want to be able to go back and look at previous samples. The P3K is connected to a couple of Cmore displays. Is there in reasonable way to log that in either the P3k or Cmore and be able to pull it back up on the screen? It would be nice to see the last 15-20 samples. I 've considered buying a copy of point of view to handle some of the data logging, but I am not overly experienced in database design and implementation. Is that the road I need to go down?


  • adccommunitymod (AutomationDirect)

    Created Date: August 20,2015

    Created by: ADC_CommTeam02

    I would recommend storing your samples in a 4 X 20 2D string array. Then on each sample use indexing to shift the data down or load the sample into the next register. If you need long term storage of data, then we also have DataWorx P3K that can read/write values into an Access or SQL database.

    www.automationdirect.com/pn/PC-DATP3K-1

  • adccommunitymod (AutomationDirect)

    Created Date: October 05,2015

    Created by: tallender

    How to create a data block

    I see what you are saying there but in my case I do not know if that will work. I am pressing together a part assembly using a Promess unit. It has an RJ45 that connects the unit to a switch. I need to transfer the press data to my Red Lion unit for storage. I could create a data block within my Productivity 3000 software and just transfer it over to the Red Lion via the ethernet connection to the PLC if I knew how to create data blocks using the P3K software. Please help

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 06,2015

    Created by: Bob S BN

    CMOREs can log data, use the "line trend graph " object. Once the value you want to read and store is in a memory location in the PLC, create a cmore tag to read it there. Then use that tag as a "pen " in the graph. Since your samples are far apart, you should probably use a PLC bit to trigger the graph update, after the new string is recieved and processed. If need be, the data can also be stored longer term by "logging " to a CF card or USB stick. The EA7 Cmores won't retain the chart data through a power cycle unless logged to an external memory device.

    EDIT: I was responding to your first post, now I see you may be asking about something different. What is this "Red Lion Unit for storage "? Is it another HMI, or a communication converter?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 06,2015

    Created by: tallender

    It is a Red Lion Data Station Plus. It is used for creating a S.C.A.D.A. system. They are pretty useful units but a little pricey.

  • adccommunitymod (AutomationDirect)

    Created Date: October 06,2015

    Created by: kewakl

    if I knew how to create data blocks using the P3K software. Please help

    I though that you created the data blocks in Crimson.

    Crimson supports Modbus for 232,485 and Network.Protocol_x.

    In PAC, you would need to assign the Modbus address, then in Crimson, select Device to G3 and supply Modbus addresses.

    There is probably a bit more to it, but I haven't used Crimson in about 6-7 years, so I wouldn't be a reliable reference.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: August 19,2015

    Created by: nhermanson

    I'm working on a P3K project that I'm bringing in some data in string format through the serial port. The samples will be taken about once every 10 minutes. The string is made up of Date/Time, Sample type, moisture and temp. I know how to unpack the strings to display the most recent data that I want. But I want to be able to go back and look at previous samples.

    The P3K is connected to a couple of Cmore displays.

    Is there in reasonable way to log that in either the P3k or Cmore and be able to pull it back up on the screen? It would be nice to see the last 15-20 samples.

    I 've considered buying a copy of point of view to handle some of the data logging, but I am not overly experienced in database design and implementation. Is that the road I need to go down?

    Expand Post