Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 850

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

Advertisement

Data Control Instructions
S
N
R
Examples
810
S: D00100
R: CIO 0300
R+1: CIO 0301
R+2: CIO 0302
R+3: CIO 0303
R+11: CIO 0311
In the following example, the content of CIO 0040 is set to #0000 and then
incremented by 1 each cycle. For the first two cycles, AVG(195) moves the
content of CIO 0040 to D01002 and D01003. The contents of D01001 will
also change (which can be used to confirm that the results of AVG(195) has
changed). On the third and later cycles AVG(195) calculates the average
value of the contents of D01002 to D01004 and writes that average value to
D01000.
st
1
cycle
CIO 0040 0000
D01000
0000
D01001
0001
D01002
0000
D01003
---
D01004
---
N: D00200
Pointer
Average Valid Flag
S, scan 1
S, scan 2
S, scan n
@MOV
nd
rd
th
2
cycle
3
cycle
4
cycle
0001
0002
0003
0001
0001
0002
0002
8000
8001
0000
0000
0003
0001
0001
0001
---
0002
0002
Section 3-18
(10 times)
Average
Average
Pointer
3 previous values of IR 40

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents