Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 848

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Data Control Instructions
R:
Average
R+1: Processing information
15
14
R+1
Average Valid Flag
OFF: Not valid (AVG(195) has not yet been executed the specified number of cycles.)
ON:
R+2:
R+N+1:
Operand Specifications
Description
0
Used by system.
Valid.
Previous value #1
Previous value #N
Note R to R+N+1 must be in the same area.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
For the first N–1 cycles when the execution condition is ON, AVG(195) writes
the values of S in order to words starting with R+2. The Previous Value
Pointer (bits 00 to 07 of R+1) is incremented each time a value is written. Until
the Nth value is written, the contents of S will be output unchanged to R and
the Average Value Flag (bit 15 of R+1) will remain OFF.
When the Nth value is written to R+N+1, the average of all the values that
have been stored will be computed, the average will be output to R as an
unsigned binary value, and the Average Value Flag (bit 15 of R+1) will be
S
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
A000 to A959
T0000 to T4095
C0000 to C4095
D00000 to D32767
E00000 to E32767
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
#0001 to #0040
(binary)
(binary)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
Section 3-18
N
R
A448 to A959
---
---
809

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents