Mitsubishi FX1S Series Programming Manual page 407

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

Advertisement

FX Series Programmable Controllers
[(4000 - 0) / (B-A)] = D8114 / (D30 - A)
D8114 = [4000 x D30 / (B - A)] - [(4000 x A) / (B - A)]
If A = 500 and B = 5500, then
D8114 = (4/5) X D30 - 400
Example Application Program #5
If using a digital range of C ~ D in the program to output an analog value of A ~ B, the digital
value must be converted to the 0 ~ 4000 equivalent and the analog value must be converted to
0 ~ 10 Volt equivalent.
Digital Values for conversion to analog are stored in D8114.
Digital value
(D8114) for practical
analog output
Please see prior programming examples for sample equations for the conversion of data
ranges.
D8114 = [(B'-A') x D40] / (D-C) + [(A' x D) - (B' x C) / (D - C)
D8114 = [(400 x B - 400 x A) x D20] / (D-C) + [(400 x A x D) - (400 x B x C)] / (D - C) (from prior
examples A' = 400 x A and B' = 400 x B
D8114 = [400 x (B - A)] / (D - C) + 400 x [(A x D) - (B x C)] / (D - C)
If A = 1, B = 5.5, C = 1000, and D = 5500, then
D8114 = (2 x D40) / 5
M8001
FNC 22
MUL
FNC 23
D
FNC 12
MOV
M8001
M8000
FNC 22
FNC 23
FNC 21
FNC 12
4000
B'
A'
0
0
C
Digital value (D40) for output
M8114
K2
D40
D42
D42
K5
D44
DIV
D44
D8114
K4
D30
MUL
D32
K5
D
DIV
D34
K400
D
SUB
D38
D8114
PIOV
Analog
output value
D
Assigning System Devices 9
M8114
D32
D34
D38
10V
B
A
0
0
A'
B'
Digital value (D8114) for output
4000
9-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents