Mitsubishi Electric FX3G User Manual page 430

Hide thumbs Also See for FX3G:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
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
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
/FX
• For 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.
J-26
PLC User's Manual - Analog Control Edition
3UC
/FX
/FX
/FX
Series PLC
3G
3GC
3U
3UC
FNC 12
D8288
K4M0
MOV
RST
M6
RST
M7
FNC 12
K4M0
D8288
MOV
M8280
FNC 12
K1
D8284
MOV
FNC 12
K5
D8285
MOV
FNC 12
D8280
D100
MOV
FNC 12
D8281
D101
MOV
/FX
/FX
3S
3G
3GC
Series PLC
3UC
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 (PTW-ADP hardware error)
*1
Error status of 3rd
analog special
adapter
b7 = OFF (PTW-ADP 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.
PLC.
Error status of 1st analog special
adapter
b6 = OFF (PTW-ADP hardware error)
Error status of 1st analog special
adapter
b7 = OFF (PTW-ADP 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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents