Mitsubishi Electronics FX3UC Garage Door Opener User Manual


 
680
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data)
29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data)
Outline
This instruction executes scaling of the input value using a specified data table, and outputs the result.
SCL (FNC259) is also available with a different data table configuration for scaling.
SCL2 instruction is supported in the FX
3UC Series Ver. 1.30 or later.
For SCL (FNC259) instruction, refer to Section 29.4.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (SCL2 and 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.
Operand Type Description Data Type
Input value used in scaling or device number storing the input value
16- or 32-bit binaryHead device number storing the conversion table used in scaling
Device number storing the output value controlled by scaling
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
 


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
P
FNC 269
SCL2
D
Mnemonic Operation Condition
16-bit Instruction
7 steps
SCL2
SCL2P
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
13 steps
DSCL2
DSCL2P
Continuous
Operation
Pulse (Single)
Operation
S
1
S
2
D
S
1
S
2
D
S
1
D
S
2
FNC 269
SCL2
Operation
error
Output
value
( )
Point 2
X
Y
Operation is enabled.
Command
input
S
1
S
2
D
Operation
error
Point 5
Point 3
Point 4
Point 1
D
Input value ( )S
1
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2