C-30
5 Changing of Input Characteristics
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD-ADP (4-channel Analog Input)
5.1 Example: Changing of Voltage Input Characteristics
3. Example of program 2 (For FX3S/FX3G/FX3GC Series PLC)
For example, create the following program to change the digital input data (D110) of the 1st analog special
adapter:
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
FNC230
LD>=
D110 K400
FNC237
AND<=
D110 K2000
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
Initial
pulse
Normally
OFF
Normally
ON
Normally
ON
Normally
ON