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

1.7 DDC Instructions
1-145
1
If the data set in the parameter table for the FGN instruction are X
n
and Y
n
, the data must be
set so that X
n
≤ Y
n+1
. The FGN instruction searches for an X
n
/ Y
n
pair within the parameter
table for which X
n
≤ X ≤ Y
n+1
and computes the output value Y according to the following
formula:
If the X
n
/ Y
n
pair, which satisfies X
n
≤ X ≤ Y
n+1
for an input value X, does not exist in the
parameter table, the result will be as follows:
• IF X < X
1
• IF X > X
1
Table 1.23 Double-length lnteger or Real Type FGN 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
Y
n+1
– Y
n
Y
= Y
n
+
X
n+1
– X
n
× (X– X
n
) (1
≤ ≤
n
N – 1)
Y
2
– Y
1
Y = Y
1
+
X
2
– X
2
(X– X
1
)
Y
n
– Y
n
-
1
Y = Y
n+
1
+
X
n
– X
n
-
1
(X – X
1
(
X1
X2
X
X3
X 4
Y 1
Y 2
Y
Y 3
Y 4
Input value
Output
value