EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 697

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
664
Data Control Instructions Section 3-17
3-17-10 AVERAGE: AVG(195)
Purpose Calculates the average value of an input word for the specified number of
cycles.
Ladder Symbol
Variations
Applicable Program Areas
Operands N: Number of Cycles
The number of cycles must be between 0001 and 0040 hexadecimal (0 to 64
cycles).
R: Result Word and R+1: First Work Area Word
R will contain the average value after the specified number of cycles. R+1 pro-
vides information on the averaging process and R+2 to R+N+1 contain the
previous values of S as shown in the following diagram.
Operand Specifications
S
N
R
AVG(195)
S: Source word
N: Number of cycles
R: Result word
R+1: First work area word
Variations Executed Each Cycle for ON Condition AVG(195)
Executed Once for Upward Differentiation Not supported.
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
Not allowed OK OK OK
R+1
R+2:
15 014
R+N+1:
Used by system.
Previous value #1
Previous value #N
R: Average
R+1: Processing information
Average Valid Flag
OFF: Not valid (AVG(195) has not yet been executed the specified number of cycles.)
ON: Valid.
Area S N R
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A959 A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095

Table of Contents

Related product manuals