160
4 OPERATION CONTROL PROGRAMS
4.8 Data Control
4.8 Data Control
16-bit integer type scaling: SCL
■Usable data
: Usable
■Description, data type of result
• 16-bit integer type scaling calculates the output value from the set input value based on the scaling conversion data where
a maximum of 4000 points data ((X
0
, Y
0
) to (X
N-1
, Y
N-1
), N: the number of points) are defined. Set the point data
corresponding to the input value in ascending order. (Positive conversion: X
0
< X
1
<.....< X
N-1
, Inverse conversion: Y
0
< Y
1
<.....< Y
N-1
)
• The method for output value calculation is either positive conversion (Input value: point X, Output value: point Y) or inverse
conversion (Input value: point Y, Output value: point X) and is specified with (S1). Each of the calculation methods is as
follows.
Format Number of basic steps Usable steps
F/FS G
SCL(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