Mitsubishi Electric FX3G User Manual page 400

Hide thumbs Also See for FX3G:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
FX
-4AD-PT-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
3S
The following program will store the temperature measurement data (°C) from channels 1 and 2 of the
*1
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
Normally OFF
M8002
Initial
pulse
M8000
Normally
ON
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
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
Initial
pulse
M8001
Normally OFF
M8002
Initial
pulse
M8000
Normally
ON
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.
I-26
PLC User's Manual - Analog Control Edition
3UC
/FX
/FX
/FX
Series PLC
3G
3GC
3U
3UC
FNC 12
D8288
MOV
RST
RST
FNC 12
K4M0
MOV
FNC 12
K1
MOV
FNC 12
K5
MOV
FNC 12
D8280
MOV
FNC 12
D8281
MOV
/FX
/FX
3S
3G
3GC
Series PLC
3UC
RST
RST
FNC 12
K1
MOV
FNC 12
K5
MOV
FNC 12
D8260
MOV
FNC 12
D8261
MOV
K4M0
Error status of 3rd
M6
adapter
b6 = OFF (PT-ADP hardware error)
Error status of 3rd
M7
adapter
b7 = OFF (PT-ADP communication data error)
D8288
Sets the temperature unit to centigrade
M8280
(C).
Sets the averaging time to "1" for
D8284
channel-1 data.
Sets the averaging time to "5" for
D8285
channel-2 data.
Stores the current value of the channel-1
D100
temperature measurement data in the D100.
Stores the average value of the channel-2
D101
temperature measurement data in the D101.
PLC.
Error status of 1st analog special
D8268.6
adapter
b6 = OFF (PT-ADP hardware error)
Error status of 1st analog special
D8268.7
adapter
b7 = OFF (PT-ADP communication data error)
Sets the temperature unit to centigrade
M8260
(C).
Sets the averaging time to "1" for
D8264
channel-1 data.
Sets the averaging time to "5" for
D8265
channel-2 data.
Stores the current value of the channel-1
D100
temperature measurement data in the D100.
Stores the average value of the channel-2
D101
temperature measurement data in the D101.
4.8 Basic Program Example
*1
analog special
*1
analog special
4 Programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents