Arithmetic instructions
478
Part III FP Instructions
F354_FSCAL
Scaling of Real Number Data
For a detailed description, refer to the instructions: F282_SCAL (see page 468) and F283_DSCAL
(see pa
ge 471).
This instru
ction also exists as a P instru
ction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F354_FSCAL (see page 1325)
Variable Data type Function
x REAL Input value (X)
xy_data INT First element of the data unit type table used for scaling
y REAL Output value (Y)
For Relay T/C Register Constant
x WX WY WR WL SV EV DT LD FL real
xy_data WX WY WR WL SV EV DT LD FL -
y - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the specified address using the index
modifier exceeds a limit.
a non-real number value is input into 'x'.
the number of values (first element of the
DUT) < 2 or > 99.
a non- real number value is specified to be
the real numerical value (xt, yt) specified in
'xy_data'.
the linear table of 'xy_data' is not registered
in ascending order of the x-sequence.
the linear table of 'xy_data' exceeds the
area.
an overflow (operation is unable) occurs
during the scaling operation.
Description
This function performs scaling (linearization) of a real number data table and renders the output (Y)
for an input value (X).
Data types
Operands
Error flags