E-20
4 Programming
4.7 Model Code
FX
3U
/FX
3UC
Series PLC User's Manual - Analog Control Edition
FX
3U
-4AD-PT-ADP (4-channel Platinum Resistance Thermometer Data Input)
4.7 Model Code
Initial value: K20
Numeric data type: Decimal (K)
When PT-ADP is connected, model code "20" will be stored in the special data register.
The following table shows the special data registers that store the model code:
Use the above special data registers to check whether PT-ADP is connected or not.
1. Example of program
4.8 Example of Basic Program
Create an example of basic program to read out the temperature measurement data.
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 number of averaging time is set to "1" (immediate data) for
channel 1, and "5" for channel 2.
Even if the temperature measurement data is not stored in D100 or D101, D8260 or D8261 can be directly
used in the arithmetic operation instruction or PID instruction.
Special data register
Description
1st 2nd 3rd 4th
D8269 D8279 D8289 D8299 Model code
FNC224
LD =
D8269 K20
Checks the model code of the 1st
analog special adapter.
Y010
M8002
M8001
M8260
Sets the temperature unit to centigrade
(
°
C).
M8002
FNC 12
MOV
K1 D8264
FNC 12
MOV
K5 D8265
Sets the number of averaging time to "1"
for channel-1 data.
Sets the number of averaging time to "5"
for channel-2 data.
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
temperature measurement data in the D100.
Stores the average value of the channel-2
temperature measurement data in the D101.