n If the input integer value is greater than K2, the output OUT is clamped to HI_LIM,and an error is returned.n If the input integer value is less than K1, the output OUT is clamped to LO_LIM, andan error is returned.n The signal state of ENO is set to FALSE and RET_VAL is set equal to W#16#0008.15.1.10 FC 106 - UNSCALE - Unscaling ValuesThe Unscaling Values UNSCALE function takes a real input value IN in engineering unitsscaled between a low and a high limit LO_LIM and HI_LIM and converts it to an integervalue. The result is written to OUT. The UNSCALE function uses the equation:and sets the constants K1 and K2 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 value is outside the LO_LIM and HI_LIM range, the output OUT is clamped tothe nearer of either the low limit or the high limit of the specified range for its type(BIPOLAR or UNIPOLAR), and an error is returned.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 REAL I, Q, M, D, L, P, con-stantThe input value to be unscaled to an integervalueHI_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 and a signal state of "0" indicatesunipolarOUT Output INT I, Q, M, D, L, P The result of the scale conversionRET_VAL Output 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 SPEED7 StandardConverting > FC 106 - UNSCALE - Unscaling ValuesHB00 | OPL_SP7 | Operation list | en | 18-30 801