7 Applied Instructions
7.23 Data Table Operation
728
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
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
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]
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
Label 1
*1
Label 2
*2
Label 3
*3
This defines the input value used in scaling
or device storing the input value.
*1.
This defines the head device storing
the conversion table used in scaling.
*2.
This defines the device storing
the output value controlled by scaling.
*3.