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

0
Votes
Undo
  1. robo7795
  2. PLCnext Technology & PLCnext Controls
  3. Saturday, 17 October 2020

Hello,

I want logging some data with PLC Next Engineer from my PLC AXC 2152 Controller. The Controller gets Integer, Real and Bool values from a Siemens Controller via Profinet. I am currently the store the values in differnt Global ARRAYS. If I add these Arrays to the Data Logger Sessions can I see all values within the Array or only the Global Array?

Additionally I need a secure remote access to the values from the Data Logger. Is it possible to realize that with an OPC UA client and can you advice someone? I am looking for a simple solution.

Best Regards

robo7795

 

 

Attachments (2)
Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello robo7795,

the DataLogger Service logs the values of variarbles into SQLite DB, it is  not possible to log the complete arrays or structure.  The simplest way is to create/declare the log varaibles of needed types and assign the received and converted PN-Data to this variables. Please note, the PN-update rate should be synchronized with the task cyclic (executes the program which assign the values) Of course, the PN-update rate should be also equal to task cyclic.

PN Settings

In the next step you can configure the DL-Session, I would like to reccommend you to configure the session via xml-configuration file as described in the following repository:

https://github.com/PLCnext/PLCnext_RT_Datalogger/blob/public/getting-started/Part-02/README.md

you can download the following DL-conguration file and adapt it for your application (the additional configuration in PLCnEng is not needed in this case).

https://github.com/PLCnext/PLCnext_RT_Datalogger/tree/public/Services/DataLogger

Please note, the configuration file should be stored under  "/opt/plcnext/projects/Services/DataLogger" directory on the plcnext target.

 

You can also transmit the variables via OPC UA, as described in following part:

https://github.com/PLCnext/PLCnext_RT_Datalogger/blob/public/getting-started/Part-03/README.md

 

I hope I could help you, if you have additional questions, please don't hesitate to ask!

Best Regards
Eduard


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

robo7795 Accepted Answer Pending Moderation
0
Votes
Undo

Hello Eduard,

Thank you for your reply.

In my case I need all values of the Arrays because they have all a fix adress with differnt values. The Siemens as I/O Controller sends the data to the PND_S1_INPUTS (AXC F 2152 I/O Device). I must realize this with Profinet because the Siemens CPU don`t have access to UPC UA. In my test project I have only a few values of BOOL, INT and Real but I need later over 300 values. My question is do I need declare every single variable as I did in the pictures below?

 

To UPC UA:

When I transmit the variables via OPC UA need the PLCnext Controller a Internet connection if I want access to data from a remote place?

Is it possiple to create a csv.file in the PLC Next Engineer Software where I can also Log Data for example in excel or in other software?

Best Regards

robo7795

 

Attachments (3)
Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello robo7795,

please find the answers to your questions below:

1. My question is do I need declare every single variable as I did in the pictures below?

-> Yes, it's neccessary.

2. When I transmit the variables via OPC UA need the PLCnext Controller a Internet connection if I want access to data from a remote place?

-> The AXC F 2152 controller has an OPC UA server functionality for data transmission. For data access, the OPC UA client must be run on the remote system. You can use the UaExpert tool (https://www.unified-automation.com/products/development-tools/uaexpert.html) with OPC UA client functionality for testing. The OPC UA server (controller) and OPC UA client (remote system) must be connected via ethernet, the internet-connection isn't required.

3. Is it possiple to create a csv.file in the PLC Next Engineer Software where I can also Log Data for example in excel or in other software?

-> The DL-Service logs data into SQlite DB, if you open the DB eg. via "DB Browser for SQLite" tool, you can export the data to .csv file.
-> Anoter way is to use the DataLogger Library for PLCnext Engineer, then you can store the data directly in .csv file (https://www.plcnextstore.com/#/347).

 


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Please find the following videos to this topic:
 




Best Regards,

Eduard

 

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

  • Page :
  • 1


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