seitzo Posted September 28, 2011 Report Posted September 28, 2011 (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 September 28, 2011 by seitzo
seitzo Posted September 28, 2011 Author Report Posted September 28, 2011 Ok, I found it. I forgot to write quote gtwr But how can the PLC write from the CF-Card to the Dataregister D100?
Crossbow Posted September 28, 2011 Report Posted September 28, 2011 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.
seitzo Posted September 28, 2011 Author Report Posted September 28, 2011 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
seitzo Posted September 28, 2011 Author Report Posted September 28, 2011 (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 September 28, 2011 by seitzo
Crossbow Posted September 29, 2011 Report Posted September 29, 2011 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.
seitzo Posted September 29, 2011 Author Report Posted September 29, 2011 (edited) Where can i find a manual for the scripting functions? Edited September 29, 2011 by seitzo
Crossbow Posted September 30, 2011 Report Posted September 30, 2011 Scripting is covered in the GOT1000 manuals, which you should be able to get from Mitsubishi Europe's websites.
seitzo Posted September 30, 2011 Author Report Posted September 30, 2011 (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 September 30, 2011 by seitzo
seitzo Posted October 10, 2011 Author Report Posted October 10, 2011 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?
seitzo Posted October 10, 2011 Author Report Posted October 10, 2011 OK, i found my problem. My co-worker have the same IP like the GOT for an other project. Congratulation for our admin.
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