I am currently implementing a log file for warning/error messages and for measurement data, similar as described here: https://developer.community.boschrexroth.com/t5/ctrlX-PLC/Data-Logging-with-CtrlX/m-p/62675
Does anybody know, how I would be able to get the data out of the core? The ideal way would be, that the files could be provided via download over Smart HMI. Do you see any chance of accomplishing this?
Many thanks in advance and greetings!
Solved! Go to Solution.
I've made a example within WebIQ. Please see the attachment.
Here some explanations:
With a REST client, t.e. Postman, you could test the download command (GET...file):
With WinSCP (WebDAV protocol) my directory looks like this:
And within WebIQ you could have a look to this button or better to the UI-actions "APIcall_DownloadFile":
That's a great solution!
Just a warning in case someone wants to use it: the way it has been done is quite safe, especially because you're using HTTPS here so the credentials are transferred encrypted.
However, you should never add the credentials directly to any LocalScript, UI Action or anything in the frontend of your HMI. This is not done here - instead the user is required to enter the credentials manually which is good.
Just wanted to point this out: you should never hardcode the credentials to your ctrlX anywhere in your HMI as they can then be regarded as compromised and available to everyone who can access the HMI with just a little bit of knowledge and HTTP access to the HMI.