32-Bit Integer Type Scaling: Dscl - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

32-bit integer type scaling: DSCL

Format
DSCL(S1), (S2), (S3), (D)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
device
(S1)
(S2)
(S3)
(D)
■Description, data type of result
Setting data
Description
(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
Processing details
• 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
to the input value should be set in ascending order. (Positive conversion: X
<.....< Y
)
N-1
• The calculation method for output value is the same as 16-bit integer type scaling. (Page 161 When the input value is
between two points of scaling conversion data, Page 161 When the input value is not between two points of scaling
conversion data)
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.
4 OPERATION CONTROL PROGRAMS
164
4.8 Data Control
Number of basic steps
15
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
, Y
) to (X
0
0
Usable steps
F/FS
Constant
16-bit
32-bit
integer
integer
type
type
(K/H)
(K/H, L)
, Y
), N: the number of points) are defined. The point data corresponding
N-1
N-1
G
Calculation
Bit
expression
conditional
64-bit
expression
floating
point
type (K)
Data type of result
< X
<.....< X
, Inverse conversion: Y
0
1
N-1
Comparison
conditional
expression
< Y
0
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents