EasyManua.ls Logo

Mitsubishi Electric MELSEC-FX3S Series - Basic Program Example

Mitsubishi Electric MELSEC-FX3S Series
532 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
C-26
4 Programming
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD-ADP (4-channel Analog Input)
4.8 Basic Program Example
4.8 Basic Program Example
Create the following basic program example to read out analog conversion (A/D conversion) data.
•For FX
3S/FX3G/FX3GC/FX3U/FX3UC Series PLC
The following program will set channel 1 of the 3rd
*1
adapter to voltage input mode and channel 2 to
current input mode, and will store the converted A/D value of channel-1 data into D100 and that of channel-
2 data into D101.
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
3S/FX3G/FX3GC PLC.
M8001
M8280
M8000
M8000
M8281
Sets the input mode of channel
1 to the voltage input mode
(0 V to 10 V).
Sets the input mode of channel
2 to the current input mode
(4 mA to 20 mA).
M8002
Initial
pulse
Normally
OFF
Normally
ON
Normally
ON
Normally
ON
Normally
ON
RST
M6
RST M7
Error status: b6 = OFF
Error status: b7 = OFF
M8000
K5 D8284
K5 D8285
Sets the averaging time to "5"
for channel-1 data.
Sets the averaging time to "5"
for channel-2 data.
M8000
D8280 D100
D8281 D101
Stores the A/D converted
channel-1 digital data into D100.
Stores the A/D converted
channel-2 digital data into D101.
D8288 K4M0
D8288K4M0
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV

Table of Contents

Related product manuals