Help - Search - Members - Calendar
Full Version: Averages In CPT
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
evenson57
Hopefully someone can help me. I am trying to figure out either how to use the AVE function in the ladder logic in logix 5000 or how to use a CPT to create an average of a data array. Everytime I use the AVE my controller crashes, but if I delete the CONTROL tag that I created for the AVE function and reload the program the controller is fine. HELP ME PLEASE!
TWControls
I'm guessing that you are meaning yor controller crashes you are saying it is going into fault mode. With it in fault mode goto Edit > Contoller Properties and do a screen capture of the Major and Minor Fault tabs for us. These tabs hold the information on why the controller faulted.

My first guess would be you your value in the "Length" field in your AVE instruction is greater than the size of the array. This will cause the controller to look outside of the arrays memory. Post your program and we can probably solve this without the screen captures.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.