![Mitsubishi Electric MELSEC FX3G Programming Manual Download Page 727](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083727.webp)
725
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data)
21
FN
C
160-
FN
C
169
R
eal T
im
e C
lo
ck
22
FN
C
170-
FN
C
179
Exter
nal D
ev
ice
23
FN
C
180
Al
ter
nate
In
str
uc
tions
24
FN
C
181-
FN
C
189
O
ther
s
25
FN
C
190-
FN
C
199
B
lock D
ata
26
FN
C
200-
FN
C
209
C
har
acter
S
tring
27
FN
C
210-
FN
C
219
Da
ta
28
FN
C
220-
FN
C
249
Da
ta
29
FN
C
25
0-
FN
C
26
9
D
ata T
abl
e
30
FN
C
270-
FN
C
274
Ex
-D
ev
ice
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the Xn data is not set in the ascending order in the data table (error code: K6706)
The data table is searched from the low-order side of the device numbers in the data table in the operation.
Accordingly, even if only some Xn data is set in the ascending order in the data table, the instruction is
executed without operation error up to the area of the data table in which the Xn data is set in the
ascending order.
• When
is outside the data table (error code: K6706)
• When the value exceeds the 32-bit data range in the middle of operation (error code: K6706)
In this case, check whether the distance between points is not “65535” or more.
If the distance is “65535” or more, reduce the distance between points.
Program example
In the program example shown below, the value input to D0 is processed by scaling based on the conversion
table for scaling set in R0 and later, and output to D10.
Program
Operation
Conversion setting data table for scaling
Set item
Device
Setting
contents
Number of coordinate
points
R0
K6
X coordinate
Point 1
R1
K0
Point 2
R2
K10
Point 3
R3
K30
Point 4
R4
K40
Point 5
R5
K50
Point 6
R6
K60
Y coordinate
Point 1
R7
K0
Point 2
R8
K50
Point 3
R9
K100
Point 4
R10
K45
Point 5
R11
K30
Point 6
R12
K0
S
1
M8000
R0
D10
FNC 269
SCL2
END
D0
Input value(D0)=7
Output value
(D10)=35
Point 1
(0,0)
X
Y
Point 2
(10,50)
Point 3
(30,100)
Point 4
(40,45)
Point 5
(50,30)
Point 6
(60,0)