User`s manual

10 - 2 10 - 2
MELSEC-Q
10 COMPENSATION OPERATION INSTRUCTIONS
Control data
(1) Data specified in S.FG 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.FG instruction performs the following operation.
Condition Output value (BW)
E1 X1 BW
Y1
X
i-1
E1 X
i
(i
2 to n)
X
i
(E1 X
i 1
) Y
i 1
BW
X
i
1
Y
i
Y
i
1
Xn E1 BW
Yn
(2) When n
0 there is no processing.
(3) When X
i-1
X
i
, the value is cut off to n
i-1
(Data after that is ignored.)
When there are multiple Y
i
for the same X
i
, the lowest i is selected.
ERROR
When an operation error occurs Error code: 4100
When (n
0) or (n 48) Error code: 4100
10