Mitsubishi FX3U-4AD User Manual page 365

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-PTW-ADP (4-channel Platinum Resistance Thermometer Data Input)
3U
4.8
Basic Program Example
Create the following basic program example to read out the temperature measurement data.
• For FX
, FX
3G
3U
The following program will store the temperature measurement data (°C) from channels 1 and 2 of the 3rd
adapter to D100 and D101, respectively. The averaging time is set to "1" (immediate data) for channel 1, and
"5" for channel 2.
M8000
Normally
ON
M8002
Initial
pulse
M8001
M8002
M8000
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
• For FX
, FX
3U
3UC
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.
M8002
M8001
M8002
M8000
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.
, FX
Series PLC
3UC
D8288
K4M0
MOV
RST
M6
RST
M7
MOV
K4M0
D8288
M8280
FNC 12
K1
D8284
MOV
FNC 12
K5
D8285
MOV
FNC 12
D8280
D100
MOV
FNC 12
D8281
D101
MOV
PLC.
3G
Series PLC
RST
D8268.6
RST
D8268.7
M8260
FNC 12
K1
D8264
MOV
FNC 12
K5
D8265
MOV
FNC 12
D8260
D100
MOV
FNC 12
D8261
D101
MOV
*1
Error status of 3rd
analog special
adapter
b6 = OFF (hardware error)
*1
Error status of 3rd
analog special
adapter
b7 = OFF (communication data error)
Sets the temperature unit to centigrade
(°C).
Sets the averaging time to "1" for
channel-1 data.
Sets the averaging time to "5" for
channel-2 data.
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.
Error status of 1st analog special
adapter
b6 = OFF (hardware error)
Error status of 1st analog special
adapter
b7 = OFF (communication data error)
Sets the temperature unit to centigrade
(°C).
Sets the averaging time to "1" for
channel-1 data.
Sets the averaging time to "5" for
channel-2 data.
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.
4 Programming
4.8 Basic Program Example
*1
I-25
A
B
C
D
E
F
G
H
I
J

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents