Page 74
Serial Interface RS422
optoNCDT 1700
Name: SET_AVX
Description: Sets the averaging number N for the moving and recursive averages to N=2^X.
Value range for X : 0...15 (0x00...0x0F). This command is not available for the median. If attempted, the sen-
sor issues the message „Command failed“.
Format: 31 24 23 16 15 8 7 0 hex
„+“ „+“ „+“ 0x0d („CR“) 0x2B2B2B0D
„l“ „L“ „D“ „1“ 0x494C4431
0x20 0x75 0x00 0x03 0x20750003
0x00 0x00 0x00 0x0X 0x0000000X
Reply: 31 24 23 16 15 8 7 0 hex
„l“ „L“ „D“ „1“ 0x494C4431
0xA0 0x75 0x00 0x02 0xA0750002
0x20 0x20 0x0D 0x0A 0x20200D0A
X = log
2
(N) N = averaging number
This results in the following values for the averaging number N:
N 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
X 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Overview: Command Averaging number N
recursive average moving average Median
SET_AV 0...3 1, 4, 32, 128 1, 4, 32, 128 3, 5, 7, 9
SET_AVX 1 ... 32767 1 ... 128 Command failed
Example:
Average 8 X = log
2
(8) = 3
Average 512 X = log
2
(512) = 9
IMPORTANT!
SET_AVX is not avai-
lable for the median!
The maximum value for
N for the moving aver-
age is 128.
Note: The “avg“ LED
goes off after SET_AVX.
Advice: If the existing
averaging number
is higher than that
permitted for the new
averaging type, the
averaging number will
be set to the upper limit
for the new average
type.