ACC-28EP 16bit ADC Board
12
4. CONVERTING VALUE
4.1.
E1/E2 : 2-3 Short, S_CH-1 : OFF, S_CH-2 : ON
Bipolar Convert
±5[V] Range : ADC- to ADC+
-10[V] ~ +10[V]
A.
Differential Ended Input
=
(
+ )[ ]
[ ]
×
−
Input Voltage
Calculation
ADC Value
-5[V](Differential)
0/10*65535
0
0[V](Differential)
5/10*65535
32767
5[V](Differential)
10/10*65535
65535
=
÷
−
×
−
//Ex) Base Add : $78C00, CH1 Input Voltage
#define 28EP_ADC_CH1
M4000
#define INPUT_VOLTAGE
P100
28EP_ADC_CH1->Y:$78C00,8,16,U
INPUT_VOLTAGE = 28EP_ADC_CH1/$FFFF*10-5
B.
Single Ended Input
=
(
+
)[ ]
[ ]
×
−
Input Voltage
Calculation
ADC Value
-10[V](Single)
0/20*65535
0
0[V]( Single)
10/20*65535
32767
10[V]( Single)
20/20*65535
65535
=
÷
−
×
−
//Ex) Base Add : $78C00, CH1 Input Voltage
#define 28EP_ADC_CH1
M4000
#define INPUT_VOLTAGE
P100
28EP_ADC_CH1->Y:$78C00,8,16,U
INPUT_VOLTAGE = 28EP_ADC_CH1/$FFFF*20-10