![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268849.webp)
810
Data Control Instructions
Section 3-18
turned ON. For all further cycles, the value in R will be updated for the most
current N values of S.
The maximum value of N is 64. If a value greater than 64 is specified, opera-
tion will use a value of 64.
The Previous Value Pointer will be reset to 0 after N–1 values have been writ-
ten.
The average value output to R will be rounded to the nearest integer.
Flags
Precautions
The contents of the First Work Area Word (D+1) is cleared to 0000 each time
the execution condition changes from OFF to ON.
The contents of the First Work Area Word (D+1) will not be cleared to 0000
the first time the program is executed at the start of operation. If AVG(195) is
to be executed in the first program scan, clear the First Work Area Word from
the program.
If N (Number of Cycles) contains 0000, an error will occur and the Error Flag
will turn ON.
When CIO 000000 is ON in the following example, the contents of D00100 will
be stored one time each scan for the number of scans specified in D00200.
The contents will be stored in order in the ten words from CIO 0302 to CIO
0311. The average of the contents of these ten words will be placed in CIO
0300 and then bit 15 of CIO 0301 will be turned ON.
R+N+1
R
R+1
R+2
R+3
S Cycle
1
S Cycle
2
S Cycle
N
S: Source word
N: Number of cycles
Average
N values
Average Valid Flag
Pointer
Name
Label
Operation
Error Flag
ER
ON if the contents of N is 0.
OFF in all other cases.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...