Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
H-33
5 Changing of Input/output Characteristics
5.2 Example: Changing of Voltage Output Characteristics
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX
3U
-3A-ADP (2-channel analog Input, 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
3. Example of program 2 (FX3G Series PLC)
For example, create the following program to change the digital output data (D120) 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 to the voltage
output mode.
D123 K400 D127
FNC 20
ADD
D121 K10000 D123
FNC 23
DDIV
D120 K1600 D121
FNC 22
MUL
M20
M8001
Normally
OFF
M8282
FNC 12
MOV
D127 D8282
M8286
Sets the output holding function.
M20
FNC 230
LD>=
D120 K0
FNC 237
AND<=
D120
K10000
Check to make sure the digital
value (D120) is in range.
Calculation for changing output
characteristics.
Stores the operation result in D8282.