Hide thumbs Also See for S7-1200:
Table of Contents
Basic instructions
7.7 Conversion operations
Note
SCALE_X parameter VALUE should be restricted to ( 0.0 <= VALUE <= 1.0 )
If parameter VALUE is less than 0.0 or greater than 1.0:
• The linear scaling operation can produce OUT values that are less than the parameter
MIN value or above the parameter MAX value for OUT values that fit within the value
range of the OUT data type. SCALE_X execution sets ENO = TRUE for these cases.
• It is possible to generate scaled numbers that are not within the range of the OUT data
type. For these cases, the parameter OUT value is set to an intermediate value equal to
the least-significant portion of the scaled real number prior to final conversion to the OUT
data type. SCALE_X execution sets ENO = FALSE in this case.
NORM_X parameter VALUE should be restricted to ( MIN <= VALUE <= MAX )
If parameter VALUE is less than MIN or greater than MAX, the linear scaling operation can
produce normalized OUT values that are less than 0.0 or greater than 1.0. NORM_X
execution sets ENO = TRUE in this case.
Table 7- 91
ENO status
ENO
Condition
1
No error
0
Result exceeds valid range for the OUT data
type
0
Parameters MAX <= MIN
0
Parameter VALUE = +/- INF or +/- NaN
252
Result OUT
Valid result
Intermediate result: The least-significant portion of a real
number prior to final conversion to the OUT data type.
SCALE_X: The least-significant portion of the Real number
VALUE to fill up the OUT size.
NORM_X: VALUE in VALUE data type extended to fill a
double word size.
VALUE is written to OUT
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller
Table of Contents
loading

Table of Contents