Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
C-28
5 Changing of Input Characteristics
5.1 Example: Changing of Voltage Input Characteristics
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD-ADP (4-channel analog Input)
3. Example of program 2 (For FX3G Series PLC)
For example, create the following program to change the digital input data (D110) of the 1st analog special
adapter:
4. Cautions regarding programming
GX Developer version 8.13P or later supports scaling instruction (SCL/FNC 259).
If the A/D converted digital value is out of the data table range specified by the scaling instruction (SCL/
FNC 259), the FX Series PLC will detect an operation error (error code: K6706).
D110 K400 D111
FNC 21
SUB
M8002
RST M6
RST M7
Error status: b6 = OFF
Error status: b7 = OFF
M8000
K1 D8284
Sets the averaging scaling to "1"
for the channel-1 data.
Check to make sure the digital
value (D110) is in range.
Calculation for changing input
characteristics.
Stores the operation result in D100.
M8000
D8280 D110
M8000
FNC 12
MOV
D8288 K4M0
M8001
M8280
Sets the input mode of channel 1 to the
voltage input mode
(0V to 10V).
D111 K10000 D112
FNC 22
MUL
D112 K1600 D100
FNC 23
DDIV
K4M0 D8288
M10
M10
FNC 230
LD>=
D110 K400
FNC 237
AND<=
D110 K2000
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV