EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 106 - UNSCALE - Unscaling Values

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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, and
an 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 Values
The Unscaling Values UNSCALE function takes a real input value IN in engineering units
scaled between a low and a high limit LO_LIM and HI_LIM and converts it to an integer
value. 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 or
UNIPOLAR.
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 to
the 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.
Parameters
Parameter Declaration Data Type Memory Area Description
EN Input BOOL I, Q, M, D, L
n Enable
TRUE: activates the function
FALSE: deactivates the function
ENO Output BOOL I, Q, M, D, L
n Status
TRUE: function executed without
error
IN Input REAL I, Q, M, D, L, P, con-
stant
The input value to be unscaled to an integer
value
HI_LIM Input REAL I, Q, M, D, L, P, con-
stant
Upper limit in engineering units
LO_LIM Input REAL I, Q, M, D, L, P, con-
stant
Lower limit in engineering units
BIPOLAR Input BOOL I, Q, M, D, L A signal state of 1 indicates the input value
is bipolar and a signal state of "0" indicates
unipolar
OUT Output INT I, Q, M, D, L, P The result of the scale conversion
RET_VAL Output WORD I, Q, M, D, L, P Returns a value of W#16#0000 if the
instruction executes without error; see Error
Information for values other than
W#16#0000
Error information
Description
VIPA SPEED7
Standard
Converting > FC 106 - UNSCALE - Unscaling Values
HB00 | OPL_SP7 | Operation list | en | 18-30 801

Table of Contents

Related product manuals