Basic Program Example - Mitsubishi FX3U-4AD User Manual

Fx3g series fx3u series fx3uc series
Hide thumbs Also See for FX3U-4AD:
Table of Contents

Advertisement

FX
/FX
/FX
PLC User's Manual - Analog Control Edition
3G
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
3G
3U
The following program will select Pt1000 and will store the temperature measurement data (
*1
and 2 of the 3rd
channel 1, and "128" for channel 2.
M8000
Normally
ON
M8002
Initial
pulse
M8001
M8002
M8000
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
, FX
Series PLC
3UC
adapter in the D100 and the D101, respectively. The averaging time will be set to "32" for
MOV
D8288
RST
RST
MOV
K4M0
FNC 12
K32
MOV
FNC 12
K128
MOV
FNC 12
D8280
MOV
FNC 12
D8281
MOV
PLC.
3G
K4M0
*1
Error status of 3rd
adapter
M6
b6 = OFF (hardware error)
*1
Error status of 3rd
M7
adapter
b7 = OFF (communication data error)
D8288
Sets the temperature unit to
M8280
centigrade (°C)
M8281
Selects Pt1000
Sets the averaging time to "32" for
D8284
channel-1 data
Sets the averaging time to "128" for
D8285
channel-2 data
Stores the current value of the
channel-1 measurement
D100
temperature data to D100.
Stores the current value of the
D101
channel-2 measurement
temperature data to D101.
4 Programming
4.9 Basic Program Example
° C
) of channels 1
analog special
analog special
A
B
C
D
E
F
G
H
I
J
J-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents