Mitsubishi FX1S Series Programming Manual page 405

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controllers
Example Application Program #1
Output an analog value in the range of 0 to 10 Volts when the digital value in the user program
is 0 ~ 10000.
M8001
M8000
M8000
FNC 12
MOV
FNC 12
MOV
D0 ranges from 0 ~10000. To convert D0 to the 0 ~ 4000 value needed for D8114:
D8114 = [D0 x 4000] / 10000 or [D x 2] /5
M8001
M8000
FNC 22
MUL
FNC 23
D
DIV
FNC 12
MOV
Example Application Program #2
An output of 0 ~ A [ 0 < A < 10] is desired in the program that is using a digital range of 0~4000
that is stored in register D10.
Digital value
(D8114) for practical
analog output
Because A is smaller than 10 Volts, the digital value of 0~4000 must be converted to a value of
0~A' as shown in the graphs above. 4000/10V = A'/A or A' = [4000/10] x A = 400 x A
D8114 = [A'] x (D10 / 4000) = [400 x A] x [D10 / 4000) = (A x D10) / 10.
If A = 8
M8001
M8000
FNC 22
FNC 23
FNC 12
Ch1 is set for the voltage input (0 to 10V).
M8112
M8113
Ch2 is set for the current input (4 to 20mA).
The digital value gained through AD conversion of Ch1 is stored at D0.
D8112
D0
The digital value gained through AD conversion of Ch2 is stored at D2.
D8113
D2
M8114
K2
D0
D2
D2
K5
D4
D4
D8114
A'
0
0
Digital value (D10) for output
K8
D10
MUL
D12
K10
DIV
D
D14
D8114
MOV
Analog
output value
4000
M8114
D12
D14
Assigning System Devices 9
10V
A
0
0
A'
Digital value (D8114) for output
4000
9-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents