Mitsubishi FX1S Series Programming Manual page 406

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

Advertisement

FX Series Programmable Controllers
Example Application Program #3
The desired analog output is from values A to B where 0 < A < B < 10 and the digital values
range from 0 ~ 4000 in D20.
Digital value
(D8114) for practical
analog output
This example is equivalent to setting an offset and gain for the analog output.
The digital values must be converted to A' and B' per the graphs above.
[B - A] / [10 - 0] = [B' - A'] / [4000 - 0], therefore [B' - A'] = [B - A] x 400.
D8114 = [B' - A'] x (D20 / 4000) + A'
B' = 400 x B and A' = 400 x A (see previous example programs for calculation)
D8114 = [400 x (B - A)/4000] x D20 + (400 x A)
D8114 = [(B-A)/10] x D20 + (400 x A)
If A = 2 and B = 5, see the programming example below
M8001
M8000
FNC 22
MUL
FNC 23
D
FNC 20
D
FNC 12
MOV
Example Application Program #4
In Voltage Output Mode, a digital range of values A ~ B is used in the program for an analog
output of 0 ~ 10 Volts. The digital range of A ~ B stored in D30 must be converted to 0 ~ 4000
before the correct analog value can be output.
Digital value
(D8114) for practical
analog output
B'
A'
0
0
Digital value (D20) for output
M8114
K3
D20
D22
D22
K10
D24
DIN
D24
K800
D26
ADD
D26
D8114
4000
0
0
A
Digital value (D30) for output
10V
B
Analog
output value
A
0
4000
Digital value (D8114) for output
10V
Analog
output
value
0
B
Digital value (D8114) for output
Assigning System Devices 9
0
A'
B'
4000
0
4000
9-6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents