1354
11 PROCESS CONTROL INSTRUCTIONS
11.4 Correction Operation Instructions
■Block memory
■Operation constant
■Local work memory
This instruction outputs values according to the inverse function generator pattern consisting of n break points as specified by
(s2) with regard to the input value (E1).
The S.IFG 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 X with smaller i is selected.
Operand: (d1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
BW Output value -999999 to 999999 Single-precision
real number
System
Operand: (s2)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0 SN Number of break
points
0 to 48 16-bit unsigned
binary
0User
Operand: (d2)
Position Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
X1 Break point
coordinates
-999999 to 999999 Single-precision
real number
User
+2
+3
Y1 Break point
coordinates
+4
+5
X2 Break point
coordinates
+6
+7
Y2 Break point
coordinates
+4SN-4
+4SN-3
Xn Break point
coordinates
+4SN-2
+4SN-1
Yn Break point
coordinates
Condition Output value (BW)
E1Y1 BW=X1
Y
i-1
<E1Y
i
(i=2 to n)
Y
n
<E1 BW=X
n
E1
BW
X
Y
(X
1
, Y
1
)
(X
2
, Y
2
)
(X
3
, Y
3
)
(X
4
, Y
4
)
BW= ×(E1-Y
i-1
)+X
i-1
X
i
-X
i-1
Y
i
-Y
i-1