EasyManua.ls Logo

Mitsubishi Electric Q173DSCPU - 32-Bit Integer Type Scaling: DSCL

Mitsubishi Electric Q173DSCPU
556 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...
5 - 149
5 OPERATION CONTROL PROGRAMS
F/FS G
5.16.2 32-bit integer type scaling: DSCL
QDS
Format DSCL(S1), (S2), (S3), (D) Number of basic steps 8
[Usable data]
Setting
data
Usable Data
Bit device
Word device Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
(S1)
(S2)
(S3)
(D)
: Usable
[Setting data]
Setting data Description Data type of result
(S1)
Data which specifies the search/conversion method
0 Positive conversion by sequential search
1: Inverse conversion by sequential search
2: Positive conversion by binary search
3: Inverse conversion by binary search
(S2)
Input value for positive/inverse conversion
(S3)
Start device No. which stores the scaling
conversion data
(D)
Device No. which stores the conversion result
[Overview]
(1) 32-bit integer type scaling calculates the output value from the set input value
based on the scaling conversion data where a maximum of 2000 points data ((X
0,
Y
0) to (XN-1, YN-1), N: the number of points) are defined.
The point data corresponding to the input value should be set in ascending order.
(Positive conversion: X
0 < X1 <.....< XN-1, Inverse conversion: Y0 < Y1 <.....< YN-1)
(2) The calculation method for output value is the same as 16-bit integer type scaling.
(Refer to Section 5.16.1.)
POINT
When the input value is outside the scaling conversion data or calculation result of
output value is outside the range of -2147483648 to 2147483647, an operation
error will occur.

Table of Contents

Related product manuals