E L C O p e r a t i o n M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003006E
1-88
4. Program
example
Ladder diagram:
Explanation:
Set CH1 to mode 0
(voltage input mode)
Set the Offset value for
CH1
Set the Gain value for
CH1
Prohibit changing CH1
configuration parameters
X0
M0
X1
K0
K34
K1
K0
K40
K1
K0
K1
TOP
K0
K1
M0
TOP
TOP
TOP
X1
SET
H0
K6400
K19200
H1
K2
K28
Adjusting A/D Conversion Curve in Voltage Input Mode 1 & Mode 3
1. Description
y
CH2 example, when CR#3 is set to voltage input mode (mode 1), the Offset value
will be set to 0V (0) and the Gain value to 2.5V (2.5V/0.15625mV=16,000), i.e. input
voltage -5V ~ +5V will correspond to values -32,000 ~ +32,000.
y
When CR#3 is set to voltage input mode (mode 3), the Offset value will be set to 0V
(0) and the Gain value to 2.5V (2.5V/0.15625mV=16,000), i.e. input voltage 0V ~ +5V
will correspond to values 0 ~ +32,000.
y
If the default voltage input mode (mode 1 and mode 3) does not meet the application
requirements, adjustments can be made to the A/D conversion curve. For example,
set the Offset for CH2 to 1V (1V/0.15625mV=6,400) and the Gain to 3V
(3V/0.15625mV=19,200).
(
)
Offset
Gain
Offset
V
V
X
Y
−
⎟⎟
⎠
⎞
⎜⎜
⎝
⎛
−
×
×
=
32000
)
(
5
)
(
16000
Example: If X=3V, Y=?
(
)
16000
6400
19200
6400
32000
)
(
5
)
(
3
16000
=
−
⎟⎟
⎠
⎞
⎜⎜
⎝
⎛
−
×
×
=
V
V
Y
y
The A/D conversion curve needs to be set up only one time. Then set CR#40 to
prohibit further changes.
2. Addresses
y
X0 = On: Set the input mode for CH2 to mode 1.
y
X1 = On: Set the Offset value for CH2 to 1V (6,400) and the Gain value to 3V