Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
G-18
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
3G
-1DA-BD (1-channel analog Output)
5. Changing of Output Characteristics
The output characteristics can be changed using sequence programs in FX
3G
 Series PLCs.
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
For example, create the following program to change the digital output data (D100) of the 1st analog board.
0
10000
S
p
ec
if
ie
d di
gi
ta
l out
put
va
lu
e
 to
 b
e
 a
c
tu
a
lly
s
ubj
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
D103
K400
D107
FNC 20
ADD
D101
K10000
D103
FNC 23
DDIV
D100
K1600
D101
FNC 22
MUL
M10
M8001
M8260
FNC 12
MOV
D107
D8260
M8264
M10
FNC 230
LD>=
D100
K0
FNC 237
AND<=
D100 K10000
Normally
OFF
Sets the output mode of 1st board
to the voltage output mode (0V to 10V).
Sets the output mode to the
output holding mode.
Check to make sure the digital 
value (D100) is in range.
Calculation for changing output  
characteristics.
Stores the operation result in D8260.