24h data collecting in siemens s7

Camilleo

Guest
C
Hi,
Can someone tell me the principe how I can collecting data in my s7-cpu31x with using DBs and with my little experiences in PLC programming.
The application is a watertank with a level (4-20mA, precision not important).
I like to collect about 24houres and each 5 minutes the analog value and the time that it was registred. 1 Time a day I will call from an other scada software to this plc to 'empty' the DBs.
Need I to use 1 DB for the value and 1 DB for the 'time' it was registred ? Need it to be an automatique first-in, first-out.
If using 1 db with 255 words, can I use 1 byte for the time and 1 byte for the value.Maybe there is existing a free exemple program or principe.
Thanks, Jean
 
Is your data in interger or real.
Interger requires 2 bytes, real 4 bytes.
Time in hour, min, sec requires aleast 6 bytes.
Total about 10 bytes.
Data coolected over 24 hrs at 5 mins interval - 288
DB size - 2880 bytes
Since you collect data once a day, suggest alternating DBs everday
Best of Luck
Kiki
PLC programmer
oS2000
Singapore
 
If you are short with memory and you plan to sample it
periodically as you described, maybe there is no need
for timestamp in every record. Maybe just one timestamp
would do if the sampling interval is always the same.
 

Similar Topics

Hi All I want to Average a Real value over 24H. A normal AVGMV block only works with the program cycle of max 50 cycles. And A AVGMV_K up to 10...
Replies
2
Views
2,455
is it possible to make a Trend display data read during 24 hours in Protool? to show a complete day reading on one screen? which settings should...
Replies
0
Views
1,039
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
4
Views
82
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
65
Has anyone migrated Proficy Historian data to a new server? I followed the guide to move all the data over, but when I run the utility, it stops...
Replies
0
Views
46
Back
Top Bottom