tonto Posted March 29, 2012 Report Share Posted March 29, 2012 We have an application that requires frequent (1 to 4 times a second) logging of time, target, and actual value. Is there any difference in speed of writing to a data table compared to writing to MIs? I am wondering which is the best way to perform the write tasks to the data table, either: 1. Every time we receive a new actual value (which happens 1 to 4 times a second) we write the current RTC, target and actual value into the table, or 2. Store the sequence of values into MIs and then once we have say 10 then write all of them into the data table instead. Furthermore, we'll eventually be needing to get this data out into a PC over ethernet (within a minute of it being recorded), probably with a c# program; is there any significant difference between pulling the information out of data tables vs a sequence of MIs? Link to comment Share on other sites More sharing options...
muzel Posted March 29, 2012 Report Share Posted March 29, 2012 storing data to datatable goes "instantly" but storing datatable to sd card takes a few seconds. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted March 30, 2012 Report Share Posted March 30, 2012 I haven´t noticeddifference between writing to registers or database. Based on frequency you have to record data, I would use database also to getdata from PLC to PC. Link to comment Share on other sites More sharing options...
dahnuguy Posted June 28, 2012 Report Share Posted June 28, 2012 MI's are faster and more robust. Datatable functions are not immediate or even guaranteed under all circumstances. Try putting 4 or more data table functions on one ladder and enable them with a positive transition. I have not used version 9 so this may have been addressed. However, The DT is the best way to list several items and then makes it easier to send them all to the PC. I would use one DataTable copy function and make it a FIFO. Then when the table is full, send it all to the PC and clear the table. 2 lines of ladder. If your data is in an array of MIs it is easy to copy the data into the first row of the datatable and then clear the data in the array. Shift the data in the datatable down one row and continue. If there is data in the last row, send the whole table to the PC and clear the datatable. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now