Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
D-20
5 Changing of Input Characteristics
5.1 Example: Changing of Voltage Input Characteristics
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3G
-2AD-BD (2-channel analog Input)
5. Changing of Input Characteristics
The input characteristics can be changed using sequence programs in FX
3G
 Series PLCs.
5.1
Example: Changing of Voltage Input Characteristics
This section describes an example of a program that can change the digital output range of 400 to 2000
(when the voltage input is 1 to 5V) to the digital output range of 0 to 10000.
1. Input characteristics
2. Example of program
For example, create the following program to change the digital input data of the 1st analog board:
0
4000
10V
Analog input
400
2000
5V
1V
0
10000
Digital value actually obtained
by A/D conversion
2000(5V)
400(1V)
Di
g
ita
l o
u
tp
u
t to
be c
a
lc
ulat
ed
(D110)
Voltage input characteristics
(product specifications)
Digital output value to be changed
X-axis
Y-axis
D
igital output
D110
K400
D111
FNC 21
SUB
M8002
RST
M6
RST
M7
M8000
K1
D8264
M8000
D8260
D110
M8000
FNC 12
MOV
D8268
K4M0
M8001
M8260
D111
K10000 D112
FNC 22
MUL
D112
K1600
D100
FNC 23
DDIV
K4M0
D8268
M10
M10
FNC 230
LD>=
D110
K400
FNC 237
AND<=
D110 K2000
Normally OFF
Normally ON
Sets the input mode of channel 1 to the 
voltage input mode (0V to 10V).
Error status : b6=OFF
Error status : b7=OFF
Sets the averaging scaling to "1" for
the channel-1 data.
Initial pulse
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
Check to make sure the digital 
value (D110) is in range.
Calculation for changing input  
characteristics.
Stores the operation result in D100.