Good day, colleagues.
I'm trying to make a algorithm for copying a file from plc to usb-flash.
I'm using caa file library.
I made it with CASE OF and organized "steps" of algorithm.
And by the way, i made it like program that i call by click of the button on my visualization.
But DirOpen function block doesn't work. I send execute command, but nothing happens.
Why is that?
For a working solution based on CAA library, check the following library https://forge.codesys.com/lib/xml-pac/home/Home/
It contains a filemanager, see if it helps you or not
FB_FileControl; This function block can open, close, read and save from and to a generic plc memory buffer
Good luck
Thanks for this interesting point, but i want to hear about caa file library. Or SysDir, SysFile libraries at least.
Or on the other hand you can give an advice about algorithm of copying.
Hmm, it extends ETrig, so it needs to see a false to true transition of the .xExecute. I can't see where you call it with .xExecute false.
And so what is for?
Log in to post a comment.
Good day, colleagues.
I'm trying to make a algorithm for copying a file from plc to usb-flash.
I'm using caa file library.
I made it with CASE OF and organized "steps" of algorithm.
And by the way, i made it like program that i call by click of the button on my visualization.
But DirOpen function block doesn't work.
I send execute command, but nothing happens.
Why is that?
Last edit: mr-nik 2020-04-13
For a working solution based on CAA library, check the following library
https://forge.codesys.com/lib/xml-pac/home/Home/
It contains a filemanager, see if it helps you or not
Good luck
Last edit: aliazzz 2020-04-13
Thanks for this interesting point, but i want to hear about caa file library.
Or SysDir, SysFile libraries at least.
Or on the other hand you can give an advice about algorithm of copying.
Hmm, it extends ETrig, so it needs to see a false to true transition of the .xExecute. I can't see where you call it with .xExecute false.
And so what is for?
Last edit: mr-nik 2020-04-13