Ed (Customer) asked a question.

How to generate New Log File

Hello community,

Using a P2000, I need to have a new data log file start every time a user hits the start button.  I want a new file, not to just start/stop data logging.

 

Below is per the Help, but I don't see how I can use these to reset the file per ladder logic. Suggestions would be much appreciated.

Ed

 

 

Productivity Help "Data Logger"

-----------------------------------------------------------

Note: A new log file will be generated in the below cases. If a scheduled interval is chosen these cases are still applicable:

 

1) Stop -> Run (including power up)

2) New Config [New Project] sent to CPU (Run or Stop Mode transfers)

3) Pen drive eject

4) Set Date/Time

5) Scheduled file name change

 


  • kewakl (Customer)

    Try item 4.

    Copy

    Clock [Hours & Minutes & Seconds] to Clock [Hours & Minutes & Seconds] Set

    Set

    Initiate_New_Time

     

    Check if this procedure will create a new log file. I do not know if the logger requires a CHANGE of time or just a time set attempt.

    Expand Post
    Selected as Best
  • kewakl (Customer)

    Try item 4.

    Copy

    Clock [Hours & Minutes & Seconds] to Clock [Hours & Minutes & Seconds] Set

    Set

    Initiate_New_Time

     

    Check if this procedure will create a new log file. I do not know if the logger requires a CHANGE of time or just a time set attempt.

    Expand Post
    Selected as Best
    • ADC Community_02 (Automationdirect.com)

      +1 @kewakl (Customer)​ Did a quick test and each time the SET DATE/TIME is triggered a new log file is created. Just use the system tags for each field.

      image

  • Ed (Customer)

    Thank you Kewaki and ADC, I just implemented it and it is working!

     

    Thanks again.

    Ed

     

     

  • kewakl (Customer)

    Thanks both!

    @ADC Community_02 (Automationdirect.com)​ thanks for making a functional proof!

    @Ed (Customer)​  Glad that you got it to work and responded.