Moran Posted November 30, 2018 Report Share Posted November 30, 2018 Hi, I'm using the PLC usp-070 and trying to use data table. I have an SD card in the PLC and: when I use the function "store DTI to file" I get error status '-31' when I use "load DTI from file" i get error status '-4' the SD card is FAT32. I'm new with UniLogic and every help will be appreciated. thanks, Moran Link to comment Share on other sites More sharing options...
ORSO2001 Posted November 30, 2018 Report Share Posted November 30, 2018 hi Moran, with error -31 seams that you are trying to save "0" (zero) rows in the file...or maybe more than how many are in theDTI...you have to check the value of the "D" variable in the "Store DTI ti File" function. usually at teh first start up of my programs, when I check if a file is already present, to load the file in the DTI, and the file is not created yet, I have alarm -4...then Icreate the files where I will store DTI....then seams that you are trying to read a file that don't exist...or maybe you have insert a wrong "number" of rows to trasfer...check teh "B", "D", "E" variable in the function. Link to comment Share on other sites More sharing options...
Moran Posted December 1, 2018 Author Report Share Posted December 1, 2018 Hi thanks for your reply. befor i used the function store dti to file I inserted 2 row to the table with write to dti function and i verified with the online mode that the values were inserted to the table and then i used the store function and recive the error -31 When I looked in the sd card I couldn’t see the dt file supposed to be created. Link to comment Share on other sites More sharing options...
ORSO2001 Posted December 2, 2018 Report Share Posted December 2, 2018 hi, times ago I have had problem with the DTI store but was the SD card faulty...replaced the SD all start to works...I don't remember which error I had. However...put some immage about the status of your command after that this is start...to check the value of the variables... Link to comment Share on other sites More sharing options...
Moran Posted December 4, 2018 Author Report Share Posted December 4, 2018 Hi ok i find my mistake i put 0 in the number of rows parameter in the store DTI to file function. this is what happens when you write ladder program at 24:00 o’clock thank for your help Link to comment Share on other sites More sharing options...
ORSO2001 Posted December 4, 2018 Report Share Posted December 4, 2018 I know what you mean...however...good to hear that you fix this. Link to comment Share on other sites More sharing options...
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