Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
G-17
4 Programming
4.8 Basic Program Example
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3G
-1DA-BD (1-channel analog Output)
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.8
Basic Program Example
Create the following basic program example to output D/A converted analog data.
The following program will set the 1st board to the voltage output mode and 2nd board to current output
mode, and will set digital data in D100 and D101 for D/A conversion.
Using the indicator or the sequence program, input the digital data to be subject to D/A conversion (to be
output as analog data) in D100 and D101.
M8001
Normally 
OFF
Normally 
ON
M8260
M8000
M8270
Sets the output mode of the 1st board to the voltage
output mode (0 V to 10 V).
Sets the output mode of the 2nd board to the current
output mode (4 mA to 20 mA).
M8000
FNC 12
MOV
D100
D8260
FNC 12
MOV
D101
D8270
Performs D/A conversion with the digital data stored
in D100 for the 1st board.
Performs D/A conversion with the digital data stored
in D101 for the 2nd board.
M8264
Sets the output holding function for the 1st board.
M8274
Cancels the output holding function for the 2nd board.