6. Programming
6.4. Application program examples
120 Analog Input Module 2MLF-AV8A, AC8A User's Guide R200
Honeywell September 2010
6.4 Application program examples
Program to compare A/D conversion values
The following figure shows system configuration.
Details of initial setting
No. Item
Details of Initial
Setting
Internal
Memory
Address
Value to Write on
Internal Memory
1 Used CH CH0, CH2, CH4 0 ‘h0015’ or ‘21’
2
Input voltage
range
-10 ~ 10V 1 ‘hFFFF’ or ‘65535’
3 Output data range 0 ~ 16000 2 ‘h0000’ or ‘0’
4 Filter process CH0 3 ‘h0001’ or ‘1’
5
CH0 filter
constant
50 4 ‘h0032’ or ‘50’
6 Average process CH2, CH4 12 ‘h0014’ or ‘20’
7
Average
processing
method
Frequency average:
CH2
Time average: CH4
13 ‘h0010’ or ‘16’
8 Average value
Frequency average
value: 100 (times)
16 ‘h0064’ or ‘100’
Time average value:
200 (ms)
18 ‘h00C8’ or ‘200’