PLC Programming
  • Home
  • PLC Forums
  • Contact Us
  • PLC & HMI
  • Electric & Electronic
No Result
View All Result
PLC Programming
  • Home
  • PLC Forums
  • Contact Us
  • PLC & HMI
  • Electric & Electronic
No Result
View All Result
PLC Programming
No Result
View All Result

PLC AVE (Average) Instruction Example

PLC Average Command Usage with example

PLC AVE (Average) Instruction Example
Share on FacebookShare on Twitter

We all know what the mean command means and what it does mathematically.
The average command is generally used to average a series of variables. In general, we assign the data to an array every second so that it is not affected by instantaneous changes at the decision-making point according to variable values such as temperature and pressure, and we perform the operations by taking the average here.
If we do not want to use the average command, we add the value every second and assign it to another variable and divide the total value by this number.

PLC FIFO Instructure Usage (FFL)

We have seen the Fifo command in our previous article, we have written multiple values in a sequence with the FIFO command, if you want, you can find the average of the array used in the FIFO command. Thus, your variables are stored in the array in order, and you can easily find the average of this array with the AVE command.

Now we will explain how to use the AVE command with an example.

Array part of the array (we want to find the average) we will use,
We write the result of the average in the Destination section of the tag that we want to write.

AV (Average) Instruction Parameters:

Array – The Array which holds the values you wish to calculate an Average of

Dem. To Vary – The array’s Dimension to use (0, 1, 2)

This parameter allows users with multi-dimensional arrays to select the dimension in the array to use (- ed.)

Destination – Where to place the Result of the Average Instruction. Consider this a “MOV” block inside the AVG instruction.

RelatedPosts

PLC Programming Example

PLC FIFO Instructure Usage (FFL)

RSLogix Emulate 500 Usage

Control – This will be a CONTROL data type similar to the one used in the FFL and FFU instructions, but can not be the same tag as the FFL and FFU instructions. The AVG instruction needs to have its own dedicated CONTROL tag.

Length – The length of the array to AVERAGE.

In some situations, you may only want or need to Average a part of the array, but it’s more common to Average all of the stored variables.

Position – The offset into the selected array which the instruction is accessing.

This value is typically set initially to 0. (- ed.)

Tags: AVEAverageFifoplc
Previous Post

PLC FIFO Instructure Usage (FFL)

Next Post

PLC Programming Example

Related Posts

PLC Programming Example
PLC & HMI

PLC Programming Example

PLC FIFO Instructure Usage (FFL)
PLC & HMI

PLC FIFO Instructure Usage (FFL)

Create Controller Fault Routine
PLC & HMI

Create Controller Fault Routine

PLC Controller Fault Routine
PLC & HMI

PLC Controller Fault Routine

RSLogix Emulate 500 Usage
PLC & HMI

RSLogix Emulate 500 Usage

FactoryTalk Activation Manager Helper service is not running
PLC & HMI

FactoryTalk Activation Manager Helper service is not running

Next Post
PLC Programming Example

PLC Programming Example

PLC Programming & Automation

PLC Programming

The objectives of PLCtr are to provide practical instruction and help for anybody involved with PLCs from the maintenance staff to the PLC programmer. You don’t necessarily have to be a “writer” to contribute. If it has anything to do with any PLC and the devices connected to it then we are interested. If you want to become a writer, please write to us on the contact page. Join us.

Tags

Add-On Instruction alarm allen-bradley analog codes comminucation communication control controller ControlLogix cpu devicenet download driver error errors ethernet example factorytalk fault instruction issue Ladder Major motor network opc plc Plc programming problem program Programming rockwell rslinx rslogix scanner siemens software start state stop Studio 5000 tag timer trend

Programming Pages

  • PLC Meaning and What is the PLC?
  • How does PLC work?
  • Cookie Policy
  • Terms of Use
  • Privacy Policy
  • Home
  • PLC Forums
  • Contact Us
  • PLC & HMI
  • Electric & Electronic

© plctr.com PLC Programming | PLC Forum | PLC SiteMap

No Result
View All Result
  • Home
  • PLC Forums
  • Contact Us
  • PLC & HMI
  • Electric & Electronic

© plctr.com PLC Programming | PLC Forum | PLC SiteMap

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT