Jump to content

Data Tables on a Time-Loop


Recommended Posts

Hello all,

I'm working on Unilogic with a US5-B5-RA28 on version 1.23.25

My overall task is to monitor water usage from a pump house to an entire industrial complex. Part of this involves taking readings by time increments.

The user would like two different displays, one every 6 minutes with 10 readings per hour. As well as one every hour, with 24 readings per day. 

I have two questions about different aspects of data tables, an answer to any part of this post would help tremendously. 

First, how would one construct a looped timer to trigger a push and/or pop function every x minutes depending on my reading? I will attach my logic below with my attempt.

Lastly, is there a way to add the values that are in my data table? For example, the user would like the sum of all 24 hourly readings displayed, and on the new hour, pop a value and push the next value, affecting the sum however it may with the new value. That way, no matter what hour he looks at it, he has his last 24 hours of water use in front of him, same idea for the hourly sum, adjusted every 6 minutes. 

I am still very novice so please excuse my poor labeling or obvious oversights if there are any. I watched the webinar and read through the help files a few times, but could not find specific enough examples to finish my attempt. 

image.thumb.png.035566d3c533d73bb04dc034b81a1abb.png

Link to comment
Share on other sites

Okay so I stumbled upon data samplers which have fixed intervals, now I am attempting to figure out how to store specific feeds into a data table in a way that fits my user's needs. I'll post my solution if i find one after lunch. Any input in the meantime would be very appreciated also. 

 

 Got what I needed from an Indexed Data Table. 

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