Page 1 of 1

FS_CopyFile on a TD710

Posted: 29/03/2022, 7:24
by ADavis
Hello

I am currently attempting to use the data logger in LogicLab to log information and then use the FS_CopyFile function to copy the file onto a USB, I get a file but it won't open, nor will it have the name I've assigned to it.

from what I can tell it should work, but could someone please walk me through the process of making it work.

Re: FS_CopyFile on a TD710

Posted: 29/03/2022, 8:52
by Pixsys tecnico 1
Hi,
first of all, you need to check if the datalogger function block is working good.
What FB are you using? To check the file created, please use a FTP client such as FileZilla or winSCP (do not use explore folder of MS Windows).
Keep in mind that if you use a string variable as datalogger name and its value is in the "initial value" (so it is constant), that value is given to the variable at first variable creation, so if you change its initial value after a code download you must reset the memory of the PLC to gain its new name (try to drag and drop the variable to the watch windows to check what is its current value).
To reset the PLC memory go to Menu "Project \Recompile all" (or press Ctrl+Alt+F7) and then download the code to the PLC.

If the datalogger is working good, please use the function block called "Copy_File" in the "Pixsys \File operation" library to easy copy the file to your USB stick. Please remember that the USB is called "HardDisk" in the WinCE operating system so you must use it as destination.

Re: FS_CopyFile on a TD710

Posted: 30/03/2022, 1:17
by ADavis
I am using the DataLogger_INT FB

Re: FS_CopyFile on a TD710

Posted: 31/03/2022, 14:59
by Pixsys tecnico 1
ok, the datalogger creates the file and works as expected or not?