Chapter 3 Expansion unit specification
expansion unit 3-16
AD CH4=0,AD mode is disabled.
For example: DA mode D8278=H3210
DA CH5=0,DA mode is disabled;
DA CH6=1,0~10V Voltage output mode (0~4000);
DA CH7=2,0~20m ACurrent output mode (0~2000);
DA CH8=3,4~20mA Current output mode or 1~5V Voltage output mode (0~2000).
Software filter for analog input expansion unit
(Mode 1): refresh data in each scan time.
Sampling the latest 5 AD data, then eliminate the max and min data, finally get the
average of the remained 3 data.
(Mode 2): refresh data in every 5 scan times.
Sampling the 5 consecutive data from mode 1, then get the average of the 5 data.
(Mode 3): refresh data in every 25 scan times.
Sampling the 5 consecutive data from mode 2, then get the average of the max and
min data.
For example: sampling data
1
=161, sampling data
2
=120,sampling data
3
=154, sampling data
4
=160,
sampling data
5
=190, sampling data
6
=169, sampling data
7
=110, sampling data
8
=121, sampling
data
9
=150, sampling data
10
=198, sampling data
11
=199.
Mode 1:
① Refreshed data = (161+154+160)/3=158— filter (1, 2, 3, 4, 5)
Eliminate max 190 and min 120.
② Refreshed data= (154+160+169)/3=161—Filter (2, 3, 4, 5, 6)
Eliminate max 190 and min 120.
③ Refreshed data= (154+160+169)/3=161—Filter (3, 4, 5, 6, 7)
Eliminate max 190 and min 110.
:
:
Refreshed data= (121+150+198)/3=156—Filter (7, 8, 9, 10, 11)
Eliminate max 199 and min 110.
Mode 2:
Get the average of the 5 data from mode 1.
(++++)/5
Mode 3:
Get the average of the max and min data among 5 consecutive data from mode 2.
This mode can efficiently filter the ripple noise.
(max + min)/2,
Max and min is inside .