Mitsubishi MELSEC-Q/L Programming Manual page 566

Table of Contents

Advertisement

SCL2, SCL2P, DSCL2, DSCL2P
Function
SCL2(P)
(1) This instruction executes scaling for the scaling conversion data (16-bit data units) specified by
specified by
, and then stores the operation result into the devices specified by
S1
The scaling conversion is executed based on the scaling conversion data stored in the device specified by
Scaling conversion data component
Setting item
Device assignment
S2
Number of coordinate points
Point 1
S2
+1
Point 2
S2
+2
X coordinate
Point n
S2
+n
Point 1
S2
+n+1
S2
Point 2
+n+2
Y coordinate
Point n
S2
+2n
n indicates the number of coordinates
specified by (S2).
(2) If the value does not result in an integer, this instruction rounds the value to the whole number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
(4) Set the input value
within the range of the scaling conversion data (within the range of
S1
(5) If some specified points have same X coordinates, the Y coordinate data of the highest point number will be output.
DSCL2(P)
(1) This instruction executes scaling for the scaling conversion data (32-bit data units) specified by
specified
, and then stores the operation result into the devices specified by
S1
The scaling conversion is executed based on the scaling conversion data stored in the device specified by
Scaling conversion data component
Setting item
Device assignment
Number of coordinate points
S2
,
S2
+1
Point 1
S2
,
S2
+3
+2
Point 2
S2
,
S2
+5
+4
X coordinate
S2
,
S2
Point n
+2n+1
+2n
S2
,
S2
Point 1
+2n+3
+2n+2
S2
,
S2
Point 2
+2n+5
+2n+4
Y coordinate
S2
,
S2
Point n
+4n+1
+4n
n indicates the number of coordinates
specified by (S2).
(2) If the value does not result in an integer, this instruction rounds the value to the whole number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
(4) Set the input value
within the range of the scaling conversion data (within the range of
S1
(5) If some specified points have same X coordinates, the Y coordinate data of the highest point number will be output.
(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.
When the coordinates of the scaling conversion data are set in ascending order, the searching methods change from one
to the other depending on the SM750 status. Therefore, the processing speed also change. The number of searches
determines the processing speed. Fewer number of searches make the processing run faster.
For details, refer to Page 560, Section 7.13.4.
564
Y
Point 2
Point 3
Output
D
value
Point 1
Input value
S1
Operation error
Operable range
Y
Operation
Operable range
error
D
Output
value
Point 1
Point 2
.
D
Point n 1
Point n
X
Operation error
.
D
Operation error
Input value
S1
X
Point n 1
Point n
with the input value
S2
and up.
S2
devices).
S2
with the input value
S2
and up.
S2
and
+1 devices).
S2
S2

Advertisement

Table of Contents
loading

Table of Contents