Mitsubishi Electric FX3G User Manual page 461

Hide thumbs Also See for FX3G:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
3UC
FX
-4AD-PNK-ADP (4-channel Resistance Thermometer Data Input)
3U
4.9
Basic Program Example
Create the following basic program to read out the temperature measurement data.
• For FX
/FX
3S
3G
The following program will select Pt1000 and will store the temperature measurement data (
channels 1 and 2 of the 3rd
set to "32" for channel 1, and "128" 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 to D100 or D101, data registers D8280 or D8281
can be directly used in the arithmetic operation instruction or a PID instruction.
*1.
"1st" for the FX
PLC User's Manual - Analog Control Edition
/FX
/FX
/FX
Series PLC
3GC
3U
3UC
*1
adapter in the D100 and the D101, respectively. The averaging time will be
FNC 12
D8288
K4M0
MOV
RST
M6
RST
M7
FNC 12
K4M0
D8288
MOV
M8280
M8281
FNC 12
K32
D8284
MOV
FNC 12
K128
D8285
MOV
FNC 12
D8280
D100
MOV
FNC 12
D8281
D101
MOV
/FX
/FX
PLC.
3S
3G
3GC
*1
Error status of 3rd
analog special
adapter
b6 = OFF (PNK-ADP hardware error)
*1
Error status of 3rd
analog special
adapter
b7 = OFF (PNK-ADP communication data error)
Sets the temperature unit to
centigrade (C)
Selects Pt1000
Sets the averaging time to "32" for
channel-1 data.
Sets the averaging time to "128" for
channel-2 data.
Stores the current value of the
channel-1 measurement
temperature data to D100.
Stores the current value of the
channel-2 measurement
temperature data to D101.
4 Programming
4.9 Basic Program Example
° C
) of
K-27
K
L
M

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents