Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
F-25
5 Changing of Output Characteristics
5.1 Example: Changing of Voltage Output Characteristics
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4DA-ADP (4-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
3. Example of program 2 (For FX3G Series PLC)
For example, create the following program to change the digital output data (D100) of the 1st analog
special adapter.
4. Cautions regarding programming
GX Developer version 8.13P or later supports scaling instruction (SCL/FNC259).
If the input digital value for the D/A conversion is out of the data table range specified by scaling instruction
(SCL/FNC259), the FX Series PLC will detect an operation error (error code: K6706).
Sets the output mode of channel 1 to the
voltage output mode.
D103 K400 D107
FNC 20
ADD
D101 K10000 D103
FNC 23
DDIV
D100 K1600 D101
FNC 22
MUL
M10
M8001
M8280
FNC 12
MOV
D107 D8280
M8284
Sets the output holding function for
channel 1.
M10
FNC 230
LD>=
D100 K0
FNC 237
AND<=
D100
K10000
Check to make sure the digital
value (D100) is in range.
Calculation for changing output
characteristics.
Stores the operation result in D8280.