This function does not detect any error conditions.15.1.9 FC 105 - SCALE - Scaling ValuesThe Scaling Values SCALE function takes an integer value IN and converts it to a realvalue in engineering units scaled between a low and a high limit LO_LIM and HI_LIM.The result is written to OUT. The SCALE function uses the equation:The constants K1 and K2 are set based upon whether the input value is BIPOLAR orUNIPOLAR.n BIPOLAR:– The input integer value is assumed to be between -27648 and 27648, therefore,K1 = -27648,0 and K2 = +27648,0.n UNIPOLAR:– The input integer value is assumed to be between 0 and 27648, therefore,K1 = 0,0 and K2 = +27648,0.If the input integer value is greater than K2, the output OUT is clamped to HI_LIM, and anerror is returned. If the input integer value is less than K1, the output OUT is clamped toLO_LIM, and an error is returned. Reverse scaling can be obtained by programmingLO_LIM > HI_LIM. With reverse scaling, the value of the output decreases as the value ofthe input increases.ParametersParameter Declaration Data Type Memory Area DescriptionEN INPUT BOOL I, Q, M, D, L n Enable– TRUE: activates the function– FALSE: deactivates the functionENO OUTPUT BOOL I, Q, M, D, L n Status– TRUE: function executed withouterrorIN INPUT INT I, Q, M, D, L, con-stantThe input value to be scaled to a REALvalue in engineering unitsHI_LIM INPUT REAL I, Q, M, D, L, P, con-stantUpper limit in engineering unitsLO_LIM INPUT REAL I, Q, M, D, L, P, con-stantLower limit in engineering unitsBIPOLAR INPUT BOOL I, Q, M, D, L A signal state of 1 indicates the input valueis bipolar, a signal state of "0" indicates uni-polarOUT OUTPUT REAL I, Q, M, D, L, P The result of the scale conversionRET_VAL INPUT WORD I, Q, M, D, L, P Returns a value of W#16#0000 if theinstruction executes without error; see ErrorInformation for values other thanW#16#0000Error InformationDescriptionVIPA SPEED7StandardConverting > FC 105 - SCALE - Scaling ValuesHB00 | OPL_SP7 | Operation list | en | 18-30800