Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
H-32
5 Changing of Input/output Characteristics
5.2 Example: Changing of Voltage Output Characteristics
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX
3U
-3A-ADP (2-channel analog Input, 1-channel analog output)
5.2 Example: Changing of Voltage Output Characteristics
This section describes an example of a program that can change the digital value range from 400 to 2000
(when analog output range is 1 to 5V) to 0 to 10000.
A specified digital value is inputted into D120.
1. Output characteristics
2. Example of program 1 (FX
3U, FX3UC Series PLC)
For example, create the following program to change the digital output of the 1st analog special adapter.
0
10000
Specified digital output
value to be actually
subject to D/A conversion
2000
(5V)
400
(1V)
Desired digital value (D120)
Voltage output characteristics
(product specifications)
Digital value characteristics
to be changed
X-axis
0
4000
10V
Analog output
Digital value input
400 2000
5V
1V
Y-axis
M8001
M8262
Sets the output mode of channel 1 to the voltage output
mode.
M8002
FNC 12
MOV
K2 D50
FNC 12
MOV
K0 D51
FNC 12
MOV
K400 D52
FNC 12
MOV
K10000 D53
FNC 12
MOV
K2000 D54
M8000
Program for setting scaling instruction data table
The result of operation by scaling instruction will be stored
in the D8262.
M8266
Sets the output holding function for channel 1.
Item
Number of points
Start
point
X-
coordinate
Y-
coordinate
End
point
X-
coordinate
Y-
coordinate
Description
Sets the number of points.
Digital value of specified
start point on X-axis
Digital value of desired D/A
conversion start point
2
Value Device
D50
0 D51
400 D52
Digital value of specified end
point on X-axis
Digital value of desired D/A
conversion end point
10000
D53
2000
D54
FNC 259
SCL
D120 D50 D8262
Normally
OFF