Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 719

Table of Contents

Advertisement

• In the following example, the content of CIO 40 is set to #0000 and then incremented by 1 each cycle.
• For the first two cycles, AVG(195) moves the content of CIO 40 to D1002 and D1003. The contents of
D1001 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 D1002 to
D1004 and writes that average value to D1000.
0.00
st
1
cycle
CIO 40
0
D1000
0
D1001
1
D1002
0
D1003
---
D1004
---
CS/CJ/NSJ Series Instructions Reference Manual (W474)
@MOV
D1000
nd
rd
th
2
cycle
3
cycle
4
cycle
1
2
3
1
Average
2
1
1
2
2
8000
8001
0
0
3
1
1
1
---
2
2
Average
Pointer
3 previous values of IR 40
3. Instructions
3
683

Advertisement

Table of Contents
loading

Table of Contents