672
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.4 FNC259 – SCL / Scaling (Coordinate by Point Data)
Setting the conversion setting data table for scaling
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 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.
Set item
Setting device and setting contents
Remarks
When R0 is specified in
Setting
contents
Number of coordinate points R0 K10
Point 1
X coordinate
+1
R1 K5
Y coordinate
+2
R2 K7
Point 2
X coordinate
+3
R3 K20
Y coordinate
+4
R4 K30
Point 3
X coordinate
+5
R5 K50
Y coordinate
+6
R6 K100
Point 4
X coordinate
+7
R7 K200
When coordinates are specified using three points in this
way, the output value can be set to an intermediate value.
In this example, the output value (intermediate value) is
specified by the Y coordinate of the point 5.
If the X coordinate is the same at three points or more,
the value at the second point is also output.
Y coordinate
+8
R8 K25
Point 5
X coordinate
+9
R9 K200
Y coordinate
+10
R10 K70
Point 6
X coordinate
+11
R11 K200
Y coordinate
+12
R12 K250
Point 7
X coordinate
+13
R13 K250
Y coordinate
+14
R14 K90
Point 8
X coordinate
+15
R15 K350
When coordinates are specified using two points in this
way, the output value is the Y coordinate at the next point.
In this example, the output value is specified by the Y
coordinate of the point 9.
Y coordinate
+16
R16 K90
Point 9
X coordinate
+17
R17 K350
Y coordinate
+18
R18 K30
Point 10
X coordinate
+19
R19 K400
Y coordinate
+20
R20 K7
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
1