Omron CS1G/H-CPUxxH Instructions Manual page 737

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Data Control Instructions
P1
R
3-18-9 AVERAGE: AVG(195)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
716
Contents of R (2011, signed binary)
∆X (0200)
Calculates the average value of an input word for the specified number of
cycles.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program
areas
Not allowed
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.
P1:
P1+1:
P1+2:
P1+3:
P1+4:
∆Y (0FA0 Hex)
Contents of S (D00000, signed BCD)
AVG(195)
S
S: Source word
N
N: Number of cycles
R
R: Result word
R+1: First work area word
Step program
Subroutines
areas
OK
OK
Section 3-18
Offset
∆X
∆Y
Max. conversion
Min. conversion
AVG(195)
Not supported.
Not supported.
Interrupt tasks
OK

Advertisement

Table of Contents
loading

Table of Contents