Справочник Пользователя для Mitsubishi Electronics FX3S-30MT/ES-2AD

Скачать
Страница из 216
11 Use of Built-in Analog
105
FX
3S
 Series Programmable Controllers
User's Manual - Hardware Edition
11
Bui
lt-
in Anal
og
12
O
utpu
t Wi
ring
13
Wiri
ng for
Va
rious U
ses
14
Te
st R
un,
M
ain
tenanc
e,
Troub
le
shooting
15
Oth
er Ex
tensi
on
U
nit
s and
Opti
ons
16
Displ
ay
 Modul
(FX
3S
-5
D
M
)
17
Me
m
ory
C
ass
ette
A
Spec
ial D
evices 
(M
8000-,
 D8000-)
B
Instruc
tion Li
st
C
Di
sc
onti
nued
model
s
11.3 Built-in analog input function
11.3.8 Program example
Create the following program to read out analog conversion (A/D conversion) data.
The following program will store the converted A/D value of channel-1 data into D100 and that of channel-2
data into D101.
Even if the input data is not stored into D100 or D101, the data registers D8270 or D8271 can be directly used
as timer/counter setting value or in a PID instruction.
11.3.9 Changing of input characteristics
The input characteristics can be changed using a sequence program in the PLC.
Example: Changing of input characteristics
This section describes an example of a program that can change the digital output range of 100 to 500 (when
the voltage input is 1 to 5 V) to 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:
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
M8000
M8000
Normally 
ON
Normally 
ON
Sets the averaging time for channel-1
Sets the averaging time for channel-2
Stores the A/D converted
channel-1 digital data into D100.
Stores the A/D converted
channel-2 digital data into D101.
D8274
D8275
D8270
D8271
D100
D101
K5
K5
Digital output
Voltage input characteristics
(product specifications)
1000
500
100
0
1 V
5 V
10 V
Analog input
Digital output value to be changed
Y-axis
10000
Digital output to 
be calculated
(D100)
0 100 (1 V) 500 (5 V)
X-axis
Digital value actually obtained 
by A/D conversion
FNC 12
MOV
FNC 12
MOV
FNC230
LD>=
FNC237
AND<=
FNC 21
SUB
FNC 22
MUL
FNC 23
DDIV
Normally ON
Normally ON
Sets the averaging scaling to "1" for 
the channel-1 data.
Check to make sure the digital value 
(D110) is in range.
Calculation for changing input 
characteristics.
Stores the operation result in D100.
D8274
D8270
D110
D110
D111
D112
K100
K10000
K400
D111
D112
D100
K1
D110
D110 K500
M100
K100
M8000
M8000
M100