1352
11 PROCESS CONTROL INSTRUCTIONS
11.4 Correction Operation Instructions
This instruction outputs values according to the function generator pattern consisting of n break points as specified by (s2)
with regard to the input value (E1).
The S.FG instruction performs the following operations.
• If the value specified in (n) is 0, no processing is performed.
• If X
i - 1
> X
i
, processing is stopped when n = i - 1. (The subsequent data is ignored.)
• When there are two or more X
i
for the same Y
i
, the Y with smaller i is selected.
Condition Output value (BW)
E1X1 BW=Y1
X
i-1
<E1X
i
(i=2 to n)
X
n
<E1 BW=Y
n
Error code Error content
3400H An invalid operation (such as division by zero) is performed.
3402H The value specified by (s1) or (d2) is a subnormal number or NaN (not a number).
3403H An overflow has occurred.
3405H The number of break points (SN) is less than 0 or greater than 48.
E1
BW
(X
1
, Y
1
)
(X
2
, Y
2
)
(X
3
, Y
3
)
(X
4
, Y
4
)
Y
X
BW= ×(E1-X
i-1
)+Y
i-1
X
i
-X
i-1
Y
i
-Y
i-1