Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
29 Applied Instructions (Data Table Operation)
29.4 SCL / Scaling (Coordinate by Point Data)
692
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (SCL/SCLP)
The input value of the device specified by is processed by scaling for the specified conversion
characteristics, and stored to a device number specified by . Conversion for scaling is executed based
on the data table stored in a device specified in and later.
If the output data is not an integer, however, the number in the first decimal place is rounded.
For the method to set the conversion table for scaling, refer to the next page.
Conversion setting data table for scaling
2. 32-bit operation (DSCL/DSCLP)
The input value specified by is processed by scaling for the specified conversion table, and stored to a
device number specified in . Conversion for scaling is executed based on the data table stored in a
device specified in and later.
If the output data is not an integer, however, the number in the first decimal place is rounded.
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)
Point 1
X coordinate
+1
Y coordinate
+2
Point 2
X coordinate
+3
Y coordinate
+4
Point 3
X coordinate
+5
Y coordinate
+6
Point 4
X coordinate
+7
Y coordinate
+8
Point 5
X coordinate
+9
Y coordinate
+10
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]
SCL
EN
s1
ENO
d
s2
Command
input
*1
*2. Head device storing the conversion table used in scaling
*2
*3
*3. Device storing the output value controlled by scaling
*1. Input value used in scaling or device storing the input value
Operation
error
Output
value
Point 1
Point 2
Point 3
Point 4
Point 5
X
Y
Operation is enabled.
Operation
error
Input value( )
s1
(
d
)
Operation
error
Point 1
Point 2
Point 3
Point 4
Point 5
X
Y
Operation is enabled.
Operation
error
Input value( )
s1
(
d
)
Output
value
DSCL
EN
s1
ENO
d
s2
Command
input
*1
*2. Head device storing the conversion table used in scaling
*2
*3
*3. Device storing the output value controlled by scaling
*1. Input value used in scaling or device storing the input value