Last visit was: It is currently 21/05/2022, 10:46


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: FS_CopyFile on a TD710
PostPosted: 29/03/2022, 7:24 

Joined: 29/03/2022, 7:03
Posts: 2
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.


Top
Offline Profile  
 
 Post subject: Re: FS_CopyFile on a TD710
PostPosted: 29/03/2022, 8:52 
Moderatore

Joined: 29/10/2010, 10:09
Posts: 1490
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.


Top
Offline Profile  
 
 Post subject: Re: FS_CopyFile on a TD710
PostPosted: 30/03/2022, 1:17 

Joined: 29/03/2022, 7:03
Posts: 2
I am using the DataLogger_INT FB


Top
Offline Profile  
 
 Post subject: Re: FS_CopyFile on a TD710
PostPosted: 31/03/2022, 14:59 
Moderatore

Joined: 29/10/2010, 10:09
Posts: 1490
ok, the datalogger creates the file and works as expected or not?


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki