User`s manual
10 - 4 10 - 4
MELSEC-Q
10 COMPENSATION OPERATION INSTRUCTIONS
Control data
(1) Data specified in S.IFG instruction
Specified position Symbol Name Recommended range
*1
Unit Data format
Standard
value
Store
Input data
S1
+0
+1
E1 Input value -999999 to 999999
Real number U
Block
memory
D1
+0
+1
BW Output value (-999999 to 999999)
Real number S
Operation
constant
S2
+0 SN
Number of
polygon points
0 to 48
BIN
16Bit
0U
D2
+0
+1
X1
Polygon point
coordinates
+2
+3
Y1
Polygon point
coordinates
+4
+5
X2
Polygon point
coordinates
+6
+7
Y2
Polygon point
coordinates
+4SN-4
+4SN-3
Xn
Polygon point
coordinates
Local
work
memory
+4SN-2
+4SN-1
Yn
Polygon point
coordinates
-999999 to 999999
Real number U
*1: The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the system.
Users cannot set the data.
Processing contents
(1) The S.IFG instruction performs the following operation.
Condition Output value (BW)
E1 Y1 BW X1
Y
i-1
E1 Y
i
(i
2 to n)
Y
i
(E1 Y
i 1
) X
i 1
BW
Y
i
1
X
i
X
i
1
Yn E1 BW Xn
(2) When n
0 there is no processing.
(3) When Y
i-1
Y
i
, the value is cut off to n
i-1
(Data after that is ignored.)
When there are multiple X
i
for the same Y
i
, the lowest i is selected.
ERROR
• When an operation error occurs Error code: 4100
• When (n
0) or (n 48) Error code: 4100










