Model Code; Example Of Basic Program - Mitsubishi MELSEC-F FX3U Series User Manual

Programmable controllers
Hide thumbs Also See for MELSEC-F FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series PLC User's Manual - Analog Control Edition
3U
3UC
FX
-4AD-PT-ADP (4-channel Platinum Resistance Thermometer Data Input)
3U
4.7

Model Code

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:
1st
D8269
Use the above special data registers to check whether PT-ADP is connected or not.
1. Example of program
FNC224
LD =
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.
M8002
M8001
M8002
M8000
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.
E-20
Special data register
2nd
3rd
D8279
D8289
D8269
K20
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
4th
D8299
Model code
Checks the model code of the 1st
Y010
analog special adapter.
Error status of 1st analog special
adapter
b6 = OFF (hardware error)
Error status of 1st analog special
adapter
b7 = OFF (communication data error)
Sets the temperature unit to centigrade
(°C).
Sets the number of averaging time to "1"
for channel-1 data.
Sets the number of 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.7 Model Code
Initial value: K20
Numeric data type: Decimal (K)
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents