EasyManua.ls Logo

Mitsubishi Electric MELSEC-FX3S Series - Page 400

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...
I-26
4 Programming
4.8 Basic Program Example
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX
3U
-4AD-PT-ADP (4-channel Platinum Resistance Thermometer Data Input)
4.8 Basic Program Example
Create the following basic program example to read out the temperature measurement data.
•For FX
3S/FX3G/FX3GC/FX3U/FX3UC Series PLC
The following program will store the temperature measurement data (°C) from channels 1 and 2 of the
3rd
*1
adapter to D100 and D101, respectively. The averaging time is set to "1" (immediate data) for
channel 1, and "5" for channel 2.
Even if the temperature measurement data is not stored in D100 or D101, data register D8280 or D8281
can be directly used in the arithmetic operation instruction or a PID instruction.
*1. "1st" for the FX
3S/FX3G/FX3GC PLC.
•For FX
3U/FX3UC Series PLC
The following program will store the temperature measurement data (°C) from channels 1 and 2 of the 1st
adapter to D100 and D101, respectively. The averaging time is set to "1" (immediate data) for channel 1,
and "5" for channel 2.
Even if the temperature measurement data is not stored in D100 or D101, data register D8260 or D8261
can be directly used in the arithmetic operation instruction or a PID instruction.
M8002
M8001
M8280
Sets the temperature unit to centigrade
(C).
M8002
K1 D8284
K5 D8285
Sets the averaging time to "1" for
channel-1 data.
Sets the averaging time to "5" for
channel-2 data.
RST M6
RST M7
Error status of 3rd
*1
analog special
adapter
b6 = OFF (PT-ADP hardware error)
Error status of 3rd
*1
analog special
adapter
b7 = OFF (PT-ADP communication data error)
M8000
D8280 D100
D8281 D101
Stores the current value of the channel-1
temperature measurement data in the D100.
Stores the average value of the channel-2
temperature measurement data in the D101.
Initial
pulse
Initial
pulse
M8000
Normally ON
Normally OFF
Normally
ON
D8288 K4M0
K4M0 D8288
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
M8002
Normally OFF
Initial
pulse
Normally
ON
M8001
M8260
Sets the temperature unit to centigrade
(C).
M8002
FNC 12
MOV
K1 D8264
K5 D8265
Sets the averaging time to "1" for
channel-1 data.
Sets the averaging time to "5" for
channel-2 data.
RST D8268.6
RST D8268.7
Error status of 1st analog special
adapter
b6 = OFF (PT-ADP hardware error)
Error status of 1st analog special
adapter
b7 = OFF (PT-ADP communication data error)
M8000
D8260 D100
D8261 D101
Stores the current value of the channel-1
temperature measurement data in the D100.
Stores the average value of the channel-2
temperature measurement data in the D101.
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
Initial
pulse

Table of Contents

Related product manuals