EasyManua.ls Logo

Mitsubishi Electric R64MTCPU - Page 168

Mitsubishi Electric R64MTCPU
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...
166
4 OPERATION CONTROL PROGRAMS
4.8 Data Control
Program example
Program which sets 4 points of scaling conversion data to D3000 to D3017 and substitutes the
output value, which is positively converted based on the input value "-65000", to D3106L.
0
END
//Scaling conversion data set
D3000=K4 //Number of point=4
D3001=K0 //Unusable area
//Set the point 0 to 3
D3002L=K-100000L //Point 0
D3004L=K-70000L //(X0, Y0)=(-100000, -70000)
D3006L=K-40000L //Point 1
D3008L=K-60000L //(X1, Y1)=(-40000, -60000)
D3010L=K-20000L //Point 2
D3012L=K-30000L //(X2, Y2)=(-20000, -30000)
D3014L=K0L //Point 3
D3016L=K-10000L //(X3, Y3)=(0, -10000)
X
Y
-65000
32-bit scaling
X0 //Standby until X0 turns ON
[F10]
[G10]
[F20]
Point 2
Point 1
Point 0
Point 3
-40000-80000
-40000
-80000
-64166.666...
D3107D3106
K-64166
Output value = -70000 +
(-60000 - (-70000))
(-40000 - (-100000))
(-65000 - (-100000))
×
= -64166.666...
//Positive conversion execution (Output value is
stored in D3106L)
DSCL K0,K-65000,D3000,D3106L
A fractional portion is rounded down.
The output value is calculated from the setting value of Point 0 and 1
since the input value "-65000" is between Point 0 and 1.

Table of Contents

Other manuals for Mitsubishi Electric R64MTCPU

Related product manuals