139
4
4 Instructions 4.4.4 Table Operations
Setting
Element Assignment for the
Data Table
Assume that the number of coordinate
points is 5.
[S2]
Point 1
X coordinate [S2+1]
Y coordinate [S2+2]
Point 2
X coordinate [S2+3]
Y coordinate [S2+4]
Point 3
X coordinate [S2+5]
Y coordinate [S2+6]
Point 4
X coordinate [S2+7]
Y coordinate [S2+8]
Point 5
X coordinate [S2+9]
Y coordinate [S2+10]
2) 32-bit Instruction
The output value in [D+1, D] that corresponds to the input value in [S1+1, S1] is identied based on the
graph determined by the table in [S2+1, S2]. If the output value is not an integer, the rst digit of the
fractional part is rounded.
The [S2] data organizational form in the 32-bit instruction is as follows:
Setting
Element Assignment for the
Data Table
Assume that the number of coordinate
points is 5.
[S2+1, S]
Point 1
X coordinate [S2+3, S2+2]
Y coordinate [S2+5, S2+4]
Point 2
X coordinate [S2+7, S2+6]
Y coordinate [S2+9, S2+8]
Point 3
X coordinate [S2+11, S2+10]
Y coordinate [S2+13, S2+12]
Point 4
X coordinate [S2+15, S2+14]
Y coordinate [S2+17, S2+16]
Point 5
X coordinate [S2+19, S2+18]
Y coordinate [S2+21, S2+20]
An error is returned in the following conditions. The error ag M8067 is set to ON to identify this error and
the error code is stored in D8067.
• Error 6706 is returned when the x coordinates of table data are not sorted in ascending order.
• However, the SCL instruction is still executed properly for coordinate output within the x-coordinate
ascending sorting range.
• Error 6706 is returned when the value in [S1] exceeds the range of the table data.