lorenso Posted February 23 Report Posted February 23 Good morning, I would like to ask if anyone can tell me the command to send on the com serial to download the file present on the SD of the V350 plc in the EXCEL/EXCEL1/nomefile.csv folder
MVP 2023 Ausman Posted February 23 MVP 2023 Report Posted February 23 I'm not exactly sure on what you're asking, but the software way of doing this is using SD Card Explorer, which is part of the suite found here: https://downloads.unitronicsplc.com/Sites/plc/Visilogic/Download Software Utilities/Unitronics-SD-Card-Suite-2.0.70.zip cheers, Aus
lorenso Posted February 23 Author Report Posted February 23 I wanted to move the file to PC without human intervention, by sending a command over the serial port and reading the file.
MVP 2023 Ausman Posted February 23 MVP 2023 Report Posted February 23 Thanks for clarifying, I've never done this so I can't answer the question. I'm sure others can. cheers, Aus
MVP 2023 Ausman Posted February 24 MVP 2023 Report Posted February 24 I pondered this some more and perhaps this pdf might be of help. Page 16+ in particular. Given this is some years old, I don't know whether it all still applies, but I would think so. cheers, Aus VisionCommunication.pdf
Saragani Posted February 25 Report Posted February 25 Use .Net communication driver. If you create a PLC object then it has a Property called SD, which let you do some file actions with the SD Card. Here is a code example, written long time ago, which has an SD Card explorer example, with its sources code. https://downloads.unitronicsplc.com/Sites/plc/Visilogic/Programming tools for developers/SD Card Explorer Lite.zip
lorenso Posted March 2 Author Report Posted March 2 good morning, I'm not very familiar with .NET projects. if anyone can help me. I just have to create an exe that downloads the FILE 02-29-2023 present in the EXCEL1 folder in the destination folder. I can't create the progressStatusChanged class. I don't need a form that displays the progressbar. Thanks in advance
Fernando Castro Posted March 6 Report Posted March 6 I did my own version of software to download files from n number of PLCS in the network over ethernet using the documentation @Saragani gave... there is a nice set of tools for developers but documentation is not as good and easy to understand as I would wanted. @lorenso unlucky for you I no longer have acces to that program... and I don't have hardware to even try to re do something.
Saragani Posted March 7 Report Posted March 7 It's not a class, it a delegate (a pointer to a function) where progressStatusChanged should be a function that returns void and gets RequestProgress requestProgress as parameter. Looking at the code, I see that it can handle well progressStatusDelegate being null, so you can just pass null instead.
MVP 2023 Ausman Posted March 7 MVP 2023 Report Posted March 7 Doesn't the 8 character rule apply to everything on the SD? Which in this case means the file name is too large and the PLC won't play? Quote from Help: Note ♦ Note that the main EXCEL folder and subfolders EXCEL0, EXCEL1, EXCEL2, EXCEL3 can each contain 64 files, for a total of 320 .csv files. ♦ The .csv file name cannot exceed 8 characters. It may include only English characters and numbers: 0 - 9, A - Z, a - z, and the underscore character "_". cheers, Aus
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now