Mitsubishi Electronics Mitsubishi Digital Electronics Home Theater Server MELSEC-F ユーザーズマニュアル

ページ / 504
D-19
4 Programming
4.7 Model Code
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3G
-2AD-BD (2-channel analog Input)
A
Comm
on I
te
ms
B
FX
3U
-4AD
FX
3UC
-4
A
D
C
FX
3U
-4A
D
-A
D
P
D
FX
3G
-2A
D
-BD
E
FX
3U
-4DA
F
FX
3U
-4D
A
-AD
P
G
FX
3G
-1D
A
-BD
H
FX
3U
-3
A-
ADP
I
FX
3U
-4
A
D
-P
T
       
         
   -
A
D
P
J
FX
3U
-4A
D
-P
TW
     
        
      -
A
D
P
4.7
Model Code
Initial value: K3
Numeric data type: Decimal (K)
When the 2AD-BD is connected, model code "3" is stored in the corresponding special data register.
The following table shows the special data registers that store the model code:
Use the special data registers above to check whether a 2AD-BD is connected or not.
1. Program Example
4.8
Basic Program Example
Create the following basic program example to read out analog conversion (A/D conversion) data.
The following program will set the 1st board to voltage input mode and channel 2 to current input mode, and
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 D8260 or D8261 can be directly used
in the timer/counter setting value or in a PID instruction.
Special data register
Description
1st board
2nd board
D8269
D8279
Model code
Checks the model code of the 1st
analog board
FNC224
LD =
D8269
K3
Y007
M8001
Normally 
ON
Normally 
OFF
M8260
M8000
M8000
M8261
Sets the input mode of the 1st board
to the voltage input mode
(0 V to 10 V).
Sets the input mode of the 2nd board
to the current input mode
(4 mA to 20 mA).
M8002
Initial
pulse
RST
M6
RST
M7
Error status: b6 = OFF
Error status: b7 = OFF
M8000
FNC 12
MOV
K5
D8264
FNC 12
MOV
K5
D8265
Sets the averaging time to "5"
for channel-1 data.
Sets the averaging time to "5"
for channel-2 data.
M8000
FNC 12
MOV
D8260
D100
FNC 12
MOV
D8261
D101
Stores the A/D converted
channel-1 digital data into D100.
Stores the A/D converted
channel-2 digital data into D101.
FNC 12
  MOV
D8268
K4M0
D8268
K4M0
FNC 12
  MOV