Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
29 Applied Instructions (Data Table Operation)
29.7 SCL2 / Scaling 2 (Coordinate by X/Y Data)
703
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Function and operation explanation
1. 16-bit operation (SCL2/SCL2P)
The input value specified in is processed by scaling for the specified conversion characteristics, 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.
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 (DSCL2/DSCL2P)
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)
X coordinate
Point 1
+1
Point 2
+2
Point 3
+3
Point 4
+4
Point 5
+5
Y coordinate
Point 1
+6
Point 2
+7
Point 3
+8
Point 4
+9
Point 5
+10
Set item
Conversion setting
data table for scaling
Number of coordinate points
("5" in the case shown in the left figure)
[+1,]
X coordinate
Point 1
[ +3, +2]
Point 2
[ +5, +4]
Point 3
[ +7, +6]
Point 4
[ +9, +8]
Point 5
[+11,+10]
Y coordinate
Point 1
[+13,+12]
Point 2
[+15,+14]
Point 3
[+17,+16]
Point 4
[+19,+18]
Point 5
[+21,+20]
SCL2
EN ENO
ds1
s2
Command
input
*1
*2
*3
Operation
error
Output
value
( )
Point 1
Point 2
Point 3
Point 4
Point 5
X
Y
Operation is enabled.
Operation
error
Input value( )
d
s1
Input value used in scaling or
device storing the input value
*1.
Head device storing the conversion
table used in scaling
*2.
Device storing the output value
controlled by scaling
*3.
Operation
error
Output
value
( )
Point 1
Point 2
Point 3
Point 4
Point 5
X
Y
Operation is enabled.
Operation
error
Input value ( )
d
s1
DSCL2
EN ENO
d
s1
s2
Command
input
*1
*2
*3
Input value used in scaling or
device storing the input value
*1.
Head device storing the conversion
table used in scaling
*2.
Device storing the output value
controlled by scaling
*3.