Jump to content

Store and Load from data table


Moran

Recommended Posts

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

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

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

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

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...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.