Jump to content
Moran

Store and Load from data table

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

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...