Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
F-24
5 Changing of Output Characteristics
5.1 Example: Changing of Voltage Output Characteristics
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3U
-4DA-ADP (4-channel analog Output)
5. Changing of Output Characteristics
Use the scaling instruction (SCL/FNC 259) for the FX
3U
/FX
3UC
 Series PLC to change the output
characteristics.
FX
3G
 Series PLCs do not support the scaling instruction. Use sequence programs to change the output
characteristics.
→ For a detailed description of scaling instruction, refer to the FX
3G
/FX
3U
/FX
3UC
 Series Programming
Manual - Basic & Applied Instruction.
5.1
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 D100.
1. Output characteristics
2. Example of program 1 (For FX
3U
, FX
3UC
 Series PLC)
• For example, create the following program to change the digital output of the 1st analog special adapter.
0
10000
S
pec
if
ie
d di
gi
ta
l out
put
va
lu
e
 to
 b
e
 a
c
tu
a
lly
s
u
bj
ec
t t
o
 D/
A
 c
onv
ers
ion
2000
(5V)
400
(1V)
Desired digital value (D100)
Voltage output characteristics
(product specifications)
Digital value characteristics
to be changed
X-axis
0
4000
10V
A
n
alog output
Digital value input
400
2000
5V
1V
Y-axis
M8001
M8260
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 D8260.
M8264
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
D100
D50
D8260