
7 APPLICATION INSTRUCTION
7.10 Data control instruction
495
7
• Setting example of the conversion table for scaling
*1
When coordinates are specified using three points as shown in the points 4, 5 and 6, 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.
Even if the X coordinate is the same at three points or more, the value at the second point is output.
*2
When coordinates are specified using two points as shown in the points 8 and 9, 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.
Operation error
In the case of the conversion characteristics for scaling shown in the figure below, set each value as shown in the following data table.
Setting item
Setting device and setting contents
Remarks
When R0 is specified in (s2)
Setting details
Number of coordinate points
(s2)+1, (s2)
R1, R0
K10
X coordinate
Point 1
(s2)+3, (s2)+2
R3, R2
K5
Point 2
(s2)+5, (s2)+4
R5, R4
K20
Point 3
(s2)+7, (s2)+6
R7, R6
K50
Point 4
(s2)+9, (s2)+8
R9, R8
K200
Refer to
Point 5
(s2)+11, (s2)+10
R11, R10
K200
Point 6
(s2)+13, (s2)+12
R13, R12
K200
Point 7
(s2)+15, (s2)+14
R15, R14
K250
Point 8
(s2)+17, (s2)+16
R17, R16
K350
Refer to
Point 9
(s2)+19, (s2)+18
R19, R18
K350
Point 10
(s2)+21, (s2)+20
R21, R20
K400
Y coordinate
Point 1
(s2)+23, (s2)+22
R23, R22
K7
Point 2
(s2)+25, (s2)+24
R25, R24
K30
Point 3
(s2)+27, (s2)+26
R27, R26
K100
Point 4
(s2)+29, (s2)+28
R29, R28
K25
Refer to
Point 5
(s2)+31, (s2)+30
R31, R30
K70
Point 6
(s2)+33, (s2)+32
R33, R32
K250
Point 7
(s2)+35, (s2)+34
R35, R34
K90
Point 8
(s2)+37, (s2)+36
R37, R36
K90
Refer to
Point 9
(s2)+39, (s2)+38
R39, R38
K30
Point 10
(s2)+41, (s2)+40
R41, R40
K7
Error code
(SD0/SD8067)
Description
3405
The Xn data is not set in the ascending order in the data table.
However, the instructions before the occurrence of an error are executed.
The input value specified by (s1) is out of the range for the set scaling conversion data.
The value in the middle of operation exceeds the 32-bit data range.
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.
The number of coordinate points from the device specified by (s2) is 0 or less.
X
Y
Point 1 (5, 7)
Point 10 (400, 7)
Point 2
Point 3
(50, 100)
Point 4 (200, 25)
Point 5
(200, 70)
Point 6 (200, 250)
Point 7
(250, 90)
Point 8 (350, 90)
Point 9
(350, 30)
(20, 30)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......