User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 25

Thread: DataStore Plus "step by step" setup in FactoryTalk ViewStudio

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Shawn Tierney's Avatar
    Join Date
    Sep 2016
    Location
    Berkshires, MA
    Posts
    2,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    24
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts

    DataStore Plus "step by step" setup in FactoryTalk ViewStudio


    Earlier in the week we described what the DataStore Plus ActiveX was. Today we walk you through the steps you need to...

    Click here to view the article.
    Looking for affordable automation training? If you are, check out my courses at TheAutomationSchool.com!

  2. #2
    Member CarissaG's Avatar
    Join Date
    Jan 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Using DataStore on a PanelView Plus 6

    I would like to know if the methods outlined in this thread are so data captured historically could be sent to ao USB or SD Card for extraction later via csv file format. Is this true? How would you be able to remove the device when you want to see the data without harming the process?

    Thank you
    Carissa

  3. #3
    Member brstilson's Avatar
    Join Date
    Mar 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Issues for On Demand Style logging

    Just wanted to give whoever is reading this a heads up. I ran into this in the field, and found that these ActiveX objects are NOT intended to be used for "On Demand" logging, meaning they are not intended for the PLC to actually trigger the individual logs. It was designed to be a purely TIME-BASED logging setup, where the "Enable" is supposed to be left on for long periods of time. The reason for this is that if the Enable is not set during the midnight transition, the object will not make a new file for the next day, but instead continue writing the log entries in the previous day's file, until the log enable just so happens to be enabled during that transition, and only THEN will it create a new file. I wrestled with this for months, unable to explain why the files would seemingly just randomly generate, but there would be several days to several weeks' worth of entries in a single day's file. There was no rhyme or reason to when the system would generate a new file, and as far as I could tell, I had it set to start a new file every day, so my work was done.

    Then, finally, I found the technote that mentions the midnight transition, and how logging has to be enabled during this in order to facilitate the file name change. I was logging at intervals that included midnight anyway, but since the time between the HMI and PLC is not always perfectly synced, I just extended the time to ensure they'd be on at midnight. Unfortunately, I would create situations where there would be "multiple logs" for certain times. At any rate, it wasn't a "clean" solution.

    But, I did find a workaround that, as far as I have lab tested so far, seems to work well. In a nutshell, you take the file name control away from the ActiveX Object and give it to the PLC. By periodically (about once an hour) syncronizing my PLC and HMI clocks, I can make sure new files are created and the entries are stored in the correct day flawlessly and cleanly. In the PLC, I create several string tags and, using conversion and concatenating instructions, "assemble" the log file name in the program, based on the current date. I then point the field in the ActiveX setup to that tag instead of typing it out. This also gives me the option to easily change where the file goes on the fly, in case my customer connects the HMI to their network and wants those log files to go onto a server folder, without having to edit the HMI program.

    I tested it out in the office here, and it worked wonderfully. I was able to change my PC's date, and it created a new file. I even changed the date back, and the object would simply append the existing file with the new entries.

    If you're using this to log data on an "On Demand" basis, this is the way to do it.

  4. #4
    Administrator Shawn Tierney's Avatar
    Join Date
    Sep 2016
    Location
    Berkshires, MA
    Posts
    2,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    24
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts
    Quote Originally Posted by CarissaG View Post
    I would like to know if the methods outlined in this thread are so data captured historically could be sent to ao USB or SD Card for extraction later via csv file format. Is this true? How would you be able to remove the device when you want to see the data without harming the process?

    Thank you
    Carissa
    Not sure how I missed your post but I do believe the newer versions of this ActiveX has been upgraded to address this?

    Before that, we would use a batch file on the memory stick to "copy" the csv file from the internal storage to the USB stick like I show here:

    https://theautomationblog.com/how-to...anelview-plus/
    Looking for affordable automation training? If you are, check out my courses at TheAutomationSchool.com!

  5. #5
    Member Bellgast's Avatar
    Join Date
    Oct 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Ft 8.1

    Halo.
    I am trying the steps above using Factory Talk View V8.1 but I am unable to complete steps 3 through 5 because I am not seeing other options on the explorer such as Startup and Global Connection. Please assist.

  6. #6
    Administrator Shawn Tierney's Avatar
    Join Date
    Sep 2016
    Location
    Berkshires, MA
    Posts
    2,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    24
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts
    Hey Bellgast,

    While this article is from 2013, ViewStudio ME 8.1 still has Startup and Global Connections.

    Are you trying to use it with ViewSE? Datastore Plus will work with ViewSE, but this procedure won't as it's ViewME specific.

    Sincerely,

    Shawn Tierney,
    Instructor, The Automation School
    Looking for affordable automation training? If you are, check out my courses at TheAutomationSchool.com!

  7. #7
    Member Bellgast's Avatar
    Join Date
    Oct 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Thanks Mr. Shawn. I forgot to state the platform that I am using. I am using ViewSE. Please help me steps on how to set Data Plus in SE. Thanks in advance.

  8. #8
    Administrator Shawn Tierney's Avatar
    Join Date
    Sep 2016
    Location
    Berkshires, MA
    Posts
    2,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    24
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts
    Thanks for sharing your experience brstilson
    Looking for affordable automation training? If you are, check out my courses at TheAutomationSchool.com!

  9. #9
    Member forqnc's Avatar
    Join Date
    Mar 2019
    Location
    Elizabeth City, NC
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    2 Posts
    Hi Shawn,
    HMI is a 2711P-T7C21D8S running version 9
    FactoryTalk View Studio I am using is version 10.
    Currently I am creating my .mer file to version 9 to work on the HMI.
    Even though we bought them 2 months ago, the HMI may have sat on a shelf for a while.

  10. The Following User Says Thank You to forqnc For This Useful Post:

    Shawn Tierney (03-29-2019)

  11. #10
    Administrator Shawn Tierney's Avatar
    Join Date
    Sep 2016
    Location
    Berkshires, MA
    Posts
    2,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thanks Given 
    24
    Thanks Thanks Received 
    6
    Thanked in
    6 Posts
    Thanks @forqnc
    Looking for affordable automation training? If you are, check out my courses at TheAutomationSchool.com!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •