164
4 OPERATION CONTROL PROGRAMS
4.8 Data Control
32-bit integer type scaling: DSCL
■Usable data
: Usable
■Description, data type of result
• 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 (X
N-1
, Y
N-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
< X
1
<.....< X
N-1
, Inverse conversion: Y
0
< Y
1
<.....< 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.
Format Number of basic steps Usable steps
F/FS G
DSCL(S1), (S2), (S3), (D) 15
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)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S1)
(S2)
(S3)
(D)
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