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