OPC UA on PLC NEXT F 2152 "Added item is not support historizing" error message

Hello everybody, we would like to know what exactly we need to change. We set up an OPC UA server on the PLCNext F 2152, then 10 INT created values and dragged them into the DATALogger.

We have also activated the OPC function in the variable table. Now we want to use UA Expert to display these variables in the History Trend View, unfortunately the error message “Added item is not support historizing” is always displayed, this can also be seen under the attributes of the variables. The direct Data Access View works. How can we now switch on the historizing of the individual variables and where exactly do we do this? Enclosed I have attached two pictures where you can see the facts. kind regards nilsbaurx

Hi nilsbaurx, Can you please include a screen shot showing your datalogger configuration? Thanks. ~ Martin.

Hello Martin, I am working with nilsbaurx. I show you our configuration in PLCnext. Kind Regards robo7795

Hello Martin, we have change the TYPE in volatile in the DATALOGGER picture because we don`t have a SD-Card. But we can´t drag variables in the History Trend View. Kind Regards robo7795

Hi guys, Everything looks OK in your configuration, so I’m not sure what’s wrong. You don’t need to change to a Volatile datalogger - there is an internal SD card where database files are stored, if you have no external SD card. The video below shows everything working as expected with PLCnext Engineer 2020.6.2, and AXC F 2152 FW 2020.6.1, and UA Expert version 1.5.1. If you follow the steps shown in the video, do you get the same result? ~ Martin.

Hello Martin, thank for your video and for your help. We are doing the same steps as you but the Historizing at Attributes are always false. The Data Access View works correctly. We have also the same version of PLCnext Engineer 2020.6.2, and AXC F 2152 FW 2020.6.1, and UA Expert version 1.5.1. In WinSCP we can´t see the DataLogger (Logge_Daten) in the log folder or in any other folder. It is now not very important that DataLogger in UA Expert works because we have to solve other troubles. We thought in our project in the wrong way. Our mission is to send values with timestamp to a remote maintenance router from EWON who is connected to a server with mobile radio. On the server we cant install any additional software and therefore we dont need a client. Is there an opportunity to transfer the values with the PLCnext Engineer DataLogger to the remote server? Best Regards robo7795

OK, so the problems with UA expert are probably because the data is simply not being logged. Firstly, please check the free disk space:

admin@axcf2152:/opt/plcnext$ df  
> Filesystem 1K-blocks Used Available Use% Mounted on  
> tpmfs 250868 340 250528 1% /var/volatile  
> /dev/root 356011 267778 65332 81% /media/rfs/ro  
> /dev/mmcblk1p1 1891212 685696 1091396 39% /media/rfs/rw  
> overlay 1891212 685696 1091396 39% /  
> /dev/mmcblk0p6 499656 396 462564 1% /media/rfs/internalsd  
> devtmpfs 250356 112 250244 1% /dev  
> tmpfs 250868 128 250740 1% /run  
> /dev/mmcblk0p7 27633 442 24898 2% /etc/device_data  
> cgroup 250868 0 250868 0% /sys/fs/cgroup  
> /dev/loop0 3840 3840 0 100% /opt/plcnext/apps/60002172000269  
> admin@axcf2152:/opt/plcnext$

Here, I have only used 39% of the available space on my user file system. If you are at or near 100% usage, then this might be why no data is being logged. If disk space is OK, then let’s move on: The datalogger configuration in PLCnext Engineer should generate this file:

/opt/plcnext/projects/PCWE/Services/DataLogger/pcwe.MyDataLogger.dl.config

(where “MyDataLogger” is the name of your DataLogger Session from PLCnext Engineer). You should see the configuration values from PLCnext Engineer in that file, in XML format. Next: Please check the contents of this file:

/etc/plcnext/device/Services/DataLogger/Default.dl.config

You should see these entries:

Include path="$ARP_PROJECT_DEFAULT_DIR$/Services/DataLogger/*.dl.config" /  
> Include path="$ARP_PROJECT_CURRENT_DIR$/Services/DataLogger/*.dl.config" /

This tells the DataLogger component where to find the configuration file that was generated by PLCnext Engineer. Next: It is possible to disable the DataLogger component using a quite complex procedure. You will probably know if you’ve done this, but to be sure - please check that you do not have the following file on the PLC:

/opt/plcnext/appshome/Device.acf.settings

If this file does not exist, then that’s good. If the file does exist, then please let us know the contents of that file. Next: Please check the contents of the file /opt/plcnext/logs/Output.log. You should see recent entries something like this:

22.10.20 10:57:59.518 Arp.System.Acf.Internal.Sm.ProcessesController INFO - Library 'Arp.Services.DataLogger.Library' in process 'MainProcess' loaded.  
> 22.10.20 10:58:06.934 Arp.System.Acf.Internal.Sm.ComponentsController INFO - Component 'Arp.Services.DataLogger' in process 'MainProcess' created.

(these messages should appear every time the PLC restarts). Please also check the Output.log file for any recent messages related to the DataLogger - especially any error or warning messages. When everything works OK, you should see a .db file in the following directory:

/opt/plcnext/logs/datalogger

The name of the .db file will be the same as the DataLogger “Session” name in PLCnext Engineer. This is a sqlite file containing the historical data. =========== Something in the above steps will indicate why the DataLogger is not working in your case. To your final question:

Is there an opportunity to transfer the values with the PLCnext Engineer DataLogger to the remote server?

The DataLogger itself does not provide this feature. However, since data is logged to files on the PLC, any mechanism for copying files to a server should work, e.g. scp, sftp, or rsync. It will partly depend on what services are available on the server. Hope this helps. Martin.