32-Bit Integer Type Scaling: Dscl - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.16.2 32-bit integer type scaling: DSCL

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S1)
(S2)
(S3)
(D)
[Setting data]
Setting data
[Overview]
DSCL(S1), (S2), (S3), (D)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Data which specifies the search/conversion method
0 Positive conversion by sequential search
(S1)
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
Start device No. which stores the scaling
(S3)
(D)
Device No. which stores the conversion result
(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
Y
) to (X
, Y
), N: the number of points) are defined.
0
N-1
N-1
The point data corresponding to the input value should be set in ascending order.
(Positive conversion: X
(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.
QDS
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
conversion data
< X
<.....< X
, Inverse conversion: Y
0
1
N-1
5 - 149
F/FS
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
< Y
0
1
G
8
Comparison
conditional
expression
: Usable
,
0
<.....< Y
)
N-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents