Jump to content

Data tables save the last parameter with another "time"


Mac9010

Recommended Posts

Hi there.

I have a problem with a data table.  I adquire the values of some variables in real time (presure and temperature) . and those are saving in a data table to after going to be printed.

But sometimes my program save the last parameter with another "time"

Example is the here

 

image.png.db555077a72658f35bf13e8feb3198ba.png

the las rung has a diferent time. the time should be 3 minutes after of the last rung.

It is a no repetible o predictible problem... sometimes it ocurrs

and here is a correct  data table.

image.png.6c1b1817d973a52439d32a6a9516f448.png

i am programming with unilogic 1.29.

I hope that someone could help me with this issue.

thanks in advance.

Link to comment
Share on other sites

  • MVP 2023

I looked at your question and said to myself: I have already seen something similar on the forum! A little search ...

 

Regarding the problem - you must understand that other times in the report are possible under the following conditions:

1) the event really happens at this "wrong" time;

2) the program code has the ability to read time from an inappropriate source - ie not from the RTC, but from another place;

3) time is calculated according to timer readings and RTC is not taken into account;

4) something bad is happening in the process of communication between the Panel and the CPU (where exactly the RTC is located).

 

By the way, you did not specify the type of PLC you use.

Link to comment
Share on other sites

  • MVP 2023

I was just about to write Kratmel's Point 1.  To me it looks like your row 13 is occasionally not being written to correctly, if at all, resulting in a previous reading still being there.  Have you compared previous tables to see if there is a match? 

Are you fully clearing the data table before each new write? If not, do some programming to make this happen, and then see what happens.  If row 13 then occasionally appears as empty, that is a good pointer to the issue.

cheers, Aus

Link to comment
Share on other sites

  • NoamM changed the title to Data tables save the last parameter with another "time"

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