Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. petermannon
  2. PLCnext Engineer
  3. Wednesday, 16 October 2019

Hello:

 

Is there a way to store the Current, Running Values of all the Variables in the PLC for Documentation and Viewing at a later date ?

         ie.... all the Variables that you can view in 'Debug' Mode.-> Store on your PC as a Text or Excel File.....

 

One of the main reasons would be when a field Technicians needs to store a copy of changed values (ie. PID Loop Tuning Parameters) for all the Loops defined and store in a file for later documenation.

If there are many (ie.Qty=15)  PID Loops (or other large Structures defined), some way of storing/documenting this information would be a very important Tool.

 

If there is no such feature, are there any plans to add this in the near future ?

Thank You ! 

 

Peter

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello Peter,

this feature is not planned yet, the logging of all debug variables needs much performance and memory. If you would like to log the needed variables, you can use the datalogger functionality provided by the FW. The Datalogger Service log the values into SQlite DB, please see the example and description on PLCnext GitHub repo:

https://github.com/PLCnext/PLCnext_RT_Datalogger

Best,

Eduard 

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
petermannon Accepted Answer Pending Moderation
0
Votes
Undo

Eduard:

Thank you for your reply.

To be clear, I am not looking for a continuous 'Data Logger' of all the Variables, but a single 'snapshot' of all the Variables and Values at a moment in time.

This would be a much simplier implementation that would save the information - you could then export or save on your PC as a simple file.

Regards, Peter.

  1. more than a month ago
  2. PLCnext Engineer
  3. # 2
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Peter, my understanding is the same as Eduard's - this type of feature is not planned for PLCnext Engineer in the near future.

One possibility is to build some code into your project that writes a set of values to a file locally on the PLC. You could trigger the write from PLCnext Engineer whenever you want. This adds some overhead to your project, but it might be a solution.

Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # 3
peterdallmann Accepted Answer Pending Moderation
0
Votes
Undo

I have had an issue that comes close. Needed to log data at fixed intervals that have been triggered by the controlled process. A standard logger would not do because the data are coming at different times but still need to be collected in to on record.

I have added a loop function so that I record 5 data sets and transfer those to Visu+ before starting to overwrite the record in the PLC again. That way I limit the size of my ARRAY, but still have a complete production raport.

Therefore I have created a STRUCT where I write my data when triggered. After all data are collected, I write the data to a data logger in Visu+ and later in to an production raport. But instead you can write the data in to a CSV file.

You would need a STRUCT for your PID variables and an ARRAY of the STRUCT to save them in. Add an index and time stemp and you have a record. When you want to go the extra distance, make a HMI page in the eHMI for the technician.

There you can have the data shown you want to record and also trigger the write function. Plus, you would be able to look at the past records and compare.

 

Peter Paul

 

 

Attachments (1)
  1. more than a month ago
  2. PLCnext Engineer
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.