Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
G-17
4 Programming
4.8 Basic Program Example
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3G-1DA-BD (1-channel analog Output)
A
Common Items
B
FX
3U
-4AD
FX
3UC
-4AD
C
FX
3U
-4AD-ADP
D
FX
3G
-2AD-BD
E
FX
3U
-4DA
F
FX
3U
-4DA-ADP
G
FX
3G
-1DA-BD
H
FX
3U
-3A-ADP
I
FX
3U
-4AD-PT
-ADP
J
FX
3U
-4AD-PTW
-ADP
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.