Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 158

1 Ladder Program Instructions
1.7.10 INVERSE FUNCTION GENERATOR Instruction (IFGN)
1-148
If the data set in the parameter table for the IFGN instruction are X
n
and Y
n
, the data must be
set so that X
n
≤ Y
n+1
. The IFGN instruction searches for an X
n
/ Y
n
pair within the parame-
ter table for which Y
n
≤ Y ≤ Y
n+1
and computes the output value Y according to the follow-
ing formula:
If the X
n
/ Y
n
pair, which satisfies Y
n
≤ Y ≤ Y
n+1
for an input value Y, does not exist in the
parameter table, the result will be as follows:
• IF X < Y
1
• IF Y > Y
1
Table 1.25 Double-length Integer or Real Type IFGN Instruction Parameters
ADR
Type
Symbol
Name
Specifications
I/O
0
W
N
Number of data
Number of pairs of X and Y
IN
1
W
−
(Reserved)
Reserved register
IN
2
L/F
X1
Data 1
IN
4
L/F
Y1
Data 1
IN
6
L/F
X2
Data 2
IN
8
L/F
Y2
Data 2
IN
•••
•••
•••
•••
•••
•••
4N-2
L/F
XN
Data N
IN
4N
L/F
YN
Data N
IN
X
n+1
– X
n
X
= X
n
+
Y
n+1
– Y
n
× (Y – Y
n
)
X
2
– X
1
X
= X
1
+
Y
2
– Y
1
( Y – Y
1
)
X
n
– X
n-1
X
= X
n+1
+
Y
n
– Y
n -1
( Y – Y
1
)
X 1 X 2 X
X 3
X 4
Y 1
Y 2
Y
Y 3
Y 4
Ouput value
Input
value