Jump to content
Sign in to follow this  
nktasingh

Data Table Read execution time

Recommended Posts

Hello!

 

What's the difference in execution time between reading data from a data table and reading data from the PLC's memory? I'm trying to write a function that could use different parameter values, not sure if I could just read the parameter values from the data tables each scan or if that would significantly slow the PLC scan time. Otherwise, would reading the data table data into the PLC's memory just once, then referencing those operands be more efficient? The problem with this method would be then maintaining that memory.

 

Thanks for your opinions!

Share this post


Link to post
Share on other sites

More of a personal preference really. There are advantages and disadvantages to both. 

 

Time probably isn't an issue as the time to run the FB is probably far faster than you think it is.  If you want to check your scan time put SI 0 (scan time with a 1ms resolution) on the screen you're using and see what the effect is on scan time by reading each pass or not reading each pass.

Share this post


Link to post
Share on other sites

Thanks! I ended up running a test and the PLC scan jumped from 3 to 4 mSec when I had 6 subroutines reading from a data table each scan. Doesn't seem like the best implementation choice for many routines, thanks for your input!

Share this post


Link to post
Share on other sites

Your scan time may have been 3.97 ms and adding the additional functions may have only increased it to 4.04 ms.  The resolution on the scan time is only 1 ms.

Share this post


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

Sign in to follow this  

×
×
  • Create New...