Mitsubishi Electric R16MTCPU Programming Manual page 163

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

■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
Positive conversion
 X (Input value)  X
X
0
N-1
Y
Output
value: Y
(X
, Y
)
i
i
(X
, Y
)
0
0
Input value: X
■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
Positive conversion
X (Input value) < X
0
Y
- Y
1
0
× (X - X
Y = Y
+
)
0
0
X
- X
1
0
(Y < Y
)
0
Output value: Y
Input value: X
X
< X (Input value)
N-1
Y
Output value: Y
(X
, Y
N-1
(X
, Y
)
N-2
N-2
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.
(X
, Y
)
N-1
N-1
(X
, Y
)
i+1
i+1
Y
- Y
i+1
i
× (X - X
Y = Y
)
i +
i
X
- X
i+1
i
X
Y
(X
, Y
)
1
1
(X
, Y
)
0
0
Y
- Y
N-1
N-2
× (X - X
Y = Y
+
N-1
N-1
X
- X
N-1
N-2
(Y
< Y)
N-1
)
N-1
Input value: X
Inverse conversion
 Y (Input value)  Y
Y
0
N-1
Y
Input
value: Y
(X
(X
, Y
0
0
Inverse conversion
Y (Input value) < Y
0
X
- X
1
0
× (Y - Y
X = X
+
0
Y
- Y
1
0
(X < X
)
0
X
Input value: Y
Output value: X
Y
< Y (Input value)
N-1
Y
)
Input value: Y
(X
(X
, Y
N-2
X
4 OPERATION CONTROL PROGRAMS
(X
, Y
)
N-1
N-1
(X
, Y
)
i+1
i+1
, Y
)
i
i
X
- X
i+1
i
× (Y - Y
X = X
i +
Y
- Y
i+1
i
)
Output value: X
Y
)
0
(X
, Y
)
1
1
(X
, Y
)
0
0
X
- X
N-1
N-2
× (Y - Y
X = X
+
N-1
Y
- Y
N-1
N-2
(X
< X)
N-1
, Y
)
N-1
N-1
)
N-2
Output value: X
4.8 Data Control
4
)
i
X
X
)
N-1
X
161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents