Register  |  Login
 
PLC Training Forum
Forum
 
  Forum  PLC Programming  Tips, Tricks an...  Tip - UDT's and memory usage in the Control Logix and Compact Logix
Previous Previous
 
Next Next
New Post 1/13/2009 9:42 AM
  AutomationNC
72 posts
Helper


Tip - UDT's and memory usage in the Control Logix and Compact Logix  

UDT's or User Defined Data types are extremely useful in the Logix platforms.  Keep in mind when creating them to gourp similar data types together to achieve the best memory optimization.  In other words group all your bits, integers, floats, etc together when designing the UDT.  The problem with designing a type that alternates between a DINT and a Binary data type is that the processor can not just allocate a single bit adjacent to another data type.  Instead one bit will be used out of a 32 bits and the other 31 bits will be wasted memory.  However if you grouped 20 bits together in your UDT then some memory would be wasted, but not as much as if the bits were scattered throughout the UDT. 

 
Previous Previous
 
Next Next
  Forum  PLC Programming  Tips, Tricks an...  Tip - UDT's and memory usage in the Control Logix and Compact Logix
  
 

 

  
Like this Site?

Check out our PLC Training Facebook site and "like" us!

Click Here!

  
Squidoo

Checkout our new Squidoo lens!  We have posted an interview with Russell White on PLC training.

To see it Click Here!

Let't wake up Squidoo and let them know we are here!

  
Terms Of Use  |  Privacy Statement
Home  |  Subscriptions  |  Training Videos  |  PLC Training  |  Articles  |  PLC Training Forum  |  Contact  |  About Us
Copyright © 2008 - 2011 by Automation Technologies, Inc. - All Rights Reserved