EasyManua.ls Logo

Mitsubishi Electric R16MTCPU - Page 163

Mitsubishi Electric R16MTCPU
354 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4 OPERATION CONTROL PROGRAMS
4.8 Data Control
161
4
When the input value is between two points of scaling conversion data
The output value is calculated from the nearest two points of the input value.
N: Number of points
When the input value is not between two points of scaling conversion data
The output value is calculated from the first or last two points of scaling conversion data.
N: Number of points
When the input value is outside the range of scaling conversion data or calculation result of output value is
outside the range of -32768 to 32767, an operation error will occur.
Positive conversion Inverse conversion
X
0
X (Input value) X
N-1
Y
0
Y (Input value) Y
N-1
Positive conversion Inverse conversion
X (Input value) < X
0
Y (Input value) < Y
0
X
N-1
< X (Input value) Y
N-1
< Y (Input value)
X
Y
×
(X - X
i
)
Y = Y
i +
Y
i+1
- Y
i
X
i+1
- X
i
Input value: X
(X
0
, Y
0
)
(X
i
, Y
i
)
(X
i+1
, Y
i+1
)
(X
N-1
, Y
N-1
)
Output
value: Y
X
Y
×
(Y - Yi)
Input
value: Y
Output value: X
(X
0, Y0)
(X
i, Yi)
(X
i+1, Yi+1)
(X
N-1, YN-1)
X = X
i +
Xi+1 - Xi
Yi+1 - Yi
×
(X - X
0
)
X
Y
Y
1
- Y
0
X
1
- X
0
(Y < Y
0
)
Y = Y
0
+
Output value: Y
Input value: X
(X
0
, Y
0
)
(X
1
, Y
1
)
X
Y
X = X
0
+
X
1
-
X
0
Y
1
-
Y
0
×
(Y - Y
0
)
(X < X
0
)
Input value: Y
Output value: X
(X
1
, Y
1
)
(X
0
, Y
0
)
X
Y
Output value: Y
Input value: X
(X
N-2
, Y
N-2
)
(X
N-1
, Y
N-1
)
Y = Y
N-1
+
Y
N-1
- Y
N-2
X
N-1
- X
N-2
×
(X - X
N-1
)
(Y
N-1
< Y)
X
Y
(X
N-1
, Y
N-1
)
(X
N-2
, Y
N-2
)
Output value: X
Input value: Y
X = X
N-1
+
X
N-1
- X
N-2
Y
N-1
- Y
N-2
×
(Y - Y
N-1
)
(X
N-1
< X)

Table of Contents

Other manuals for Mitsubishi Electric R16MTCPU

Related product manuals