Average: Avg(195) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Data Control Instructions
P1
R

3-18-10 AVERAGE: AVG(195)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
binary value of 0000 to 0FA0 for an Analog Output Unit. When CIO 000000
turns ON in the following example, the contents of D00000 is scaled using the
linear function defined by X (0200), Y (0FA0), and the offset (0). These val-
ues are contained in D00100 to D00102. The sign of the BCD value in
D00000 is indicated by the Carry Flag. The result is output to CIO 2011.
Contents of R (2011, signed binary)
X (0200)
Calculates the average value of an input word for the specified number of
cycles.
AVG(195)
S
N
R
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
OK
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)
S: Source word
N: Number of cycles
R: Result word
R+1: First work area word
Step program
Subroutines
areas
OK
Section 3-18
Offset
X
Y
Max. conversion
Min. conversion
AVG(195)
Not supported.
Not supported.
Interrupt tasks
OK
807

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents