FX Series Programmable Controllers Assigning System Devices 9
9-8
Example Application Program #6
In the Current Output Mode, the 1DA converts values from 0 ~ 2000 to the analog output of 4 ~
20 mA. If using a digital range of 0 ~ 20000 in the program, the range must be converted to 0
~ 2000 as shown in the programming example below. Digital values for conversion to analog
are stored in D8114.
D8114 = [(2000 - 0) x D50] / (20000 - 0)
D8114 = D50 / 10
Example Application Program #7
In Current Output Mode, a user wants to use a range of 0 ~ A in the program to output the
analog current of 4 ~ 20mA. The user range 0 ~ A stored in D60 must be converted to the
range of 0 ~ 2000 as shown below.
D8114 = [(2000 -0) x D60] / (A - 0)
D8114 = (2000 x D60) / A, if A = 10000
D8114 = D60 / 5
0
0
2000
20000
Digital value
(D8114) for practical
analog output
Analog
output value
Digital value (D50) for output Digital value (D8114) for output
0
0
20mA
2000
4mA
M8000
K50 K10
FNC 12
MOV
D52 D8114
M8114
D52
FNC 23
DIV
D
0
0
2000
A
Digital value
(D8114) for practical
analog output
Analog
output value
Digital value (D60) for output Digital value (D8114) for output
0
0
20mA
2000
4mA
M8000
FNC 22
MUL
K2 D60
D62 K10
M8114
D62
D64
D64 D8114
FNC 23
DIV
D
FNC 12
MOV