Basic Program Example - Mitsubishi FX3U-4AD User Manual

Fx3g series fx3u series fx3uc series
Hide thumbs Also See for FX3U-4AD:
Table of Contents

Advertisement

FX
/FX
/FX
PLC User's Manual - Analog Control Edition
3G
3U
3UC
FX
-4AD-ADP (4-channel analog Input)
3U
4.8

Basic Program Example

Create the following basic program example to read out analog conversion (A/D conversion) data.
• For FX
, FX
3G
The following program will set channel 1 of the 3rd
input mode, and will store the converted A/D value of channel-1 data into D100 and that of channel-2 data
into D101.
M8001
M8000
M8000
M8002
Initial
pulse
M8000
M8000
Even if the input data is not stored into D100 or D101, the data registers D8280 or D8281 can be directly used
in the timer/counter setting value or in a PID instruction.
*1.
"1st" for the FX
C-24
, FX
Series PLC
3U
3UC
MOV
D8288
RST
RST
MOV
K4M0
FNC 12
K5
MOV
FNC 12
K5
MOV
FNC 12
D8280
MOV
FNC 12
D8281
MOV
PLC.
3G
*1
adapter to voltage input mode and channel 2 to current
Sets the input mode of channel
M8280
1 to the voltage input mode
(0 V to 10 V).
Sets the input mode of channel
M8281
2 to the current input mode
(4 mA to 20 mA).
K4M0
Error status: b6 = OFF
M6
M7
Error status: b7 = OFF
D8288
Sets the averaging time to "5"
D8284
for channel-1 data.
Sets the averaging time to "5"
D8285
for channel-2 data.
Stores the A/D converted
D100
channel-1 digital data into D100.
Stores the A/D converted
D101
channel-2 digital data into D101.
4 Programming
4.8 Basic Program Example

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents