PBCL_FileCopy Error

Hello, everyone
I’m using the AXC F 2152 PLC (PLCnext Engineer’s 2022.6 version) with the PLCnextBase library (version 1.5.1). I have the function block PBCL_FileCopy to copy textfiles from one folder to another. I’m using a timer to activate the function block. Sometimes the operation is performed correctly and other times it is not. The error that I receive when the operation is performed incorrectly is “wDiagCode: 0xC331, and wAddDiagCode: 0x0001.”
I have read the description of the error, and it says: No connection to the PLCnextBaseServices server. Maybe the component is not initialized.
So, I have some questions: What causes the error to occur sometimes and not others? Is there a way to fix the error so that all function block executions are successful?
I hope someone can help me.
BR.

Dear Ricardo,
do you have the BaseService started according the manual? Parts of the library are implemented as PLCnext components which provide access from the IEC61131 application to the system and other PLCnext service components.
In ‘Usage - PLCnext Service Components’ of the manual you can find an example implementation which can be used to start up the service component.

Additionally you can use function block PBCL_GetVersion_1 to check the fucntionality This function block returns the version information of the IEC 61131 part and the PLCnext service components. In case the PLCnextBase ServiceProvider is not running, the corresponding output returns N/A.
Also interesting for you could be that we just released a new version which is available in the PLCnext AppStore. (1.6.1)
Regards,
Mirko.

Thanks Mirko. I hadn’t checked that part of the library, so I’m going to implement that part to my code. I’m going to download the new version of the library as well. You’ve been so helpful!
Regards,
Ricardo.