Mitsubishi Electronics FX3G User Manual

Page of 964
671
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.4 FNC259 – SCL / Scaling (Coordinate by Point Data)
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
2. 32-bit operation (DSCL and DSCLP)
The input value specified in [
+1, 
] is processed by scaling for the specified conversion characteristics,
and stored to a device number specified in [
+1, 
]. Conversion for scaling is executed based on the data
table stored in a device specified in [
+1, 
] and later.
If the output data is not an integer, however, the number in the first decimal place is rounded.
3. Setting the conversion table for scaling
The conversion table for scaling is set based on the data table stored in a device specified in [
+1, 
] and
later.
The data table has the following configuration:
→ For a setting example, refer to the following.
Setting example of the conversion table for scaling 
A setting example for the 16-bit operation is shown below.
For the 32-bit operation, set each item using a 32-bit binary value.
In the case of the conversion characteristics for scaling shown in the figure below, set the following data table.
Conversion setting data table for scaling
Set item
Device assignment in 
setting data table
Number of coordinate points
(“5” in the case shown in the left 
figure)
[
+1,
]
Point 1
X coordinate
[
+3,
+2]
Y coordinate
[
+5,
+4]
Point 2
X coordinate
[
+7,
+6]
Y coordinate
[
+9,
+8]
Point 3
X coordinate
[
+11,
+10]
Y coordinate
[
+13,
+12]
Point 4
X coordinate
[
+15,
+14]
Y coordinate
[
+17,
+16]
Point 5
X coordinate
[
+19,
+18]
Y coordinate
[
+21,
+20]
Set item
Device assignment in setting data table
16-bit operation
32-bit operation
Number of coordinate points
[
+1,
]
Point 1
X coordinate
+1
[
+3,
+2]
Y coordinate
+2
[
+5,
+4]
Point 2
X coordinate
+3
[
+7,
+6]
Y coordinate
+4
[
+9,
+8]
. .
 .
. .
 .
. .
 .
. .
 .
Point n (last)
X coordinate
+2n-1
[
+4n-1,
+4n-2]
Y coordinate
+2n
[
+4n+1,
+4n]
  
S
1
  
S
1
   
D
   
D
  
S
2
  
S
2
FNC259
DSCL
X
Y
Command
input
S
S
Point 2
Point 5
Point 3
Point 4
Point 1
Output
value
(          )
Operation
error
Operation
error
Operation is enabled.
Input value (          )
S
  
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
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
2
Point 1(5,7)
X
Y
Point 2
(20,30)
Point 3
(50,100)
Point 5
(200,70)
Point 4(200,25)
Point 6(200,250)
Point 7
(250,90)
Point 8(350,90)
Point 9
(350,30)
Point 10(400,7)