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

  1. VRom
  2. PLCnext Engineer
  3. Thursday, 08 April 2021
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
D.Simon Accepted Answer Pending Moderation
0
Votes
Undo
Hello.

could you please provide the version of PLCnextBase, the used controller type and the options you pass to the function block?

Kind regards.
  1. one week ago
  2. PLCnext Engineer
  3. # 1
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 2
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 3
  • Page :
  • 1


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