Omron SYSMAC CS Series Instruction & Reference Manual page 636

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
0.00
S
N
R
• 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
---
602
S: D100
D100
D200
300
@MOV
D1000
nd
rd
2
cycle
3
cycle
1
2
1
1
1
2
8000
0
0
1
1
---
2
N: D200
R: CIO 300
R+1: CIO 301
Average Valid Flag
R+2: CIO 302
R+3: CIO 303
R+11: CIO 311
th
4
cycle
3
Average
2
Average
2
Pointer
8001
3
3 previous values of IR 40
1
2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
(10 times)
Pointer
Average

Advertisement

Table of Contents
loading

Table of Contents