Hello everyone. Maybe someone can help me. This is a small explanation of what I’m doing in my project: Start Make dir (PBCL_FileMakeDir_1), if xDone then (1) Make „.csv“ file (my own block), if xDone then (2) Compress dir (PBCL_FileCompression_1), if xDone then (3) Copy „.gz“ file (PBCL_FileCopyFtp_1), if xDone then (4) Delete „.gz“ file (PBCL_FileDelete_1), if xDone then (5) End The problem is in step 3 (function block PBCL_FileCompression_1). When I use it with the „.csv“ file it compresses it (create „.gz“ file) and deletes the original („.csv“). Everything is good, no errors, xDone (no xError). But if I try to do it with a folder, it compresses it (create „.gz“ file) without deletes the original (dir). And I have xError (no xDone) - 0xC211 Error during file compression. Why is it happens? How to solve it? P.S. FunctionBlock: PBCL_FileCompression_1 - A function block to compress files or directories
Hello. could you please provide the version of PLCnextBase, the used controller type and the options you pass to the function block? Kind regards.
It can be reproduced with version 1.3.1 of the PLCnextBase library on AXC F 2152 FW 2021.0.3 with PLCnext Engineer 2021.3 and no options passed to the FB. Investigations are continuing.
This has been confirmed as a documentation error in the PLCnextBase library. The function uses the busybox gzip function under the hood, and this does not support the zipping of directories. This issue will be addressed in a future release of the library. Sorry for the inconvenience.