Jump to content

Write from PC to GOT1000 CF-card and change the Dataregister D100


Recommended Posts

Posted (edited)
Hey whats up, I want to write to the GOT. The ftp-Server on the GOT1000 is running. The reading from GOT to PC is already function with DOS and the ftp command. Why i can not write to the GOT. Can´t access the file or Directory. My Admin does not aloud to install ffftp, so i must do it with DOS and the ftp command. I want to set by a Labview-Programm on my PC the Dataregister D100 from the PLC to cero. How can I do that? Edited by seitzo

Posted
Typically it doesn't write from the card to the PLC. You may need to write some scripts to make this happen. The memory card in the GOT is for storage in the GOT, not for PLC access.
Posted
Sorry when you are waiting. I forgot to Enable email notification of replies And how can I write this script? I can't find an Item (see Picture) Can you help me? script.bmp
Posted (edited)
Thats my Programmscreenshot from the GOT1000 (see picture). I will programm a counter. I store from the PC a txt to the CF automatically with the programming software Labview. And the GOT1000 should read the txt and set the counter to cero. In the txt is a 0 for the counter and D100 for the Dataregister. GOT1000.bmp Edited by seitzo
Posted
As I said before, I am not sure it is possible. You will need to spend some time to read through the scripting functions and see if there is a method to access a text file. I do not know of a way.
Posted (edited)
OK I found it. But when i trying this command: [s16:D100] = file_write("A:\\Project1\\", "FILE00001.DAT", [w:D100], 0, 2, 0); the GOT writes a 2 in D100. But in D100 is a 50 Why? It should write a 50 to D100 and to the CF-card. and when I try this command: [s16:D100] = file_read("A:\\Project1\\", "FILE00001.DAT", [w:D100], 0, 2); it writes a 2 in D100. And a second question: I automatically write with ftp commands into the cf-card. When the file exist it should read out with this command: [s16:D100] = file_read("A:\\Project1\\", "FILE00001.DAT", [w:D100], 0, 2); and when it doesn't exist it should write nothing to D100. But when i delete the file with ftp commands the GOT writes an ERROR -1 to the D100. How can i do that? with an if? Edited by seitzo
Posted
OK, the script is working now. the storage device must have an other device. like this: [s16:D200] = file_write("A:\\Project1\\", "FILE00001.DAT", [w:D100], 0, 2, 0); [s16:D200] = file_read("A:\\Project1\\", "FILE00001.DAT", [w:D100], 0, 2); But, the automatic ftp-commands with logged in and logged out don't work a long time. After about 100 logged in and logged out i can't logged in anymore. and the error command is: 421 Service not available, closing control connection. I musst switch the GOT off and on. And after i switched on, the ftp-commands works for about 100 logged in and logged out. Why my ftp-Server crashed after some log in and log out?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...