![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030850.webp)
810
Data Control Instructions
Section 3-18
Examples
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.
S: D00100
N: D00200
R: CIO 0300
R+1: CIO 0301
R+2: CIO 0302
R+3: CIO 0303
R+11: CIO 0311
S
N
R
Average
Pointer
Average Valid Flag
(10 times)
S, scan 2
S, scan 1
S, scan n
D01000 0000
0001
0001
0002
D01001 0001
0002
8000
8001
D01002 0000
0000
0000
0003
D01003 ---
0001
0001
0001
D01004 ---
---
0002
0002
CIO 0040 0000 0001 0002 0003
@MOV
1
st
cycle 2
nd
cycle 3
rd
cycle 4
th
cycle
Average
Pointer
3 previous values of IR 40
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...