Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
K-28
4 Programming
4.9 Basic Program Example
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD-PNK-ADP (4-channel Resistance Thermometer Data Input)
•For FX3U, FX3UC Series PLC
The following program will select Pt1000 and will store the temperature measurement data (
°
C
) of channels 1
and 2 of the 1st adapter in the D100 and the D101, respectively. The averaging time will be set to "32" for
channel 1, and "128" for channel 2.
Even if the temperature measurement data is not stored to D100 or D101, data registers D8260 or D8261 can
be directly used in the arithmetic operation instruction or a PID instruction.
M8002
M8001
M8260
Sets the temperature unit to
centigrade (°C)
M8002
FNC 12
MOV
K32 D8264
FNC 12
MOV
K128 D8265
Sets the averaging time to "32" for
channel-1 data
Sets the averaging time to "128" for
channel-2 data
M8261
Selects Pt1000
RST D8268.6
RST D8268.7
Error status of 1st analog special
adapter
b6 = OFF (hardware error)
Error status of 1st analog special
adapter
b7 = OFF (communication data error)
M8000
FNC 12
MOV
D8260 D100
FNC 12
MOV
D8261 D101
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.