(0)| 3/5/2015 8:20 AM | |
|
Posts: 457 Rating:
|
Hello, although not understanding your script exactly, I would recommend following considerations: 1. Which panel do you use? A PC or a Win-CE-based panel? -> there is a different file-system-object ! 2. Are you writing to a SD-memory card? 3. Are you sure that a copy-procedure has been performed fully before you want write to a new file? 4. I'm a little bit confused with the naming procedure of the copy-sequence. Maybe you are performing a wrong file-naming? 5. Please find VB-commands here: https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.filesystem_methods(v=vs.110).aspx A nice tutorial you will find here: http://www.computerperformance.co.uk/vbscript/vbscript_file_create.htm
Regards Georg |
| 3/5/2015 8:41 AM | |
|
Posts: 5 Rating:
|
Hello Georg, Thanks for your reply! 1. I am using a CE based panel and I am aware that the file system is correct. As far as I know I am using the correct file system. This is what i use. 2. I am writing to a USB stick of 8GB 3. No i do not, but is there a way to check if it has? Otherwise Ill just have to build in some timer to rename the file. I can try that. 4. The archived file creates a name with a date-timestamp in the map /Storage Card USB/Temp/. I want to copy this file to the map /Storage Card USB/Overload_Log/ with the name Partx.csv where x is an index I make in the PLC. Then I want to remove the file in the /Storage Card USB/Temp map. 5. Thanks for the VB commands and tutorial. But as for my answer to your first question Im limited in my functionality. Also I think my post is in the wrong forum area, should be under Simatic WinCC flexible. |
Last edited by: WimAsisto at: 3/5/2015 8:58:20 AM |
|
Follow us on