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