5 Temperature Measurement Module DVP 04TC-E 2
5. Program exa
mple
Ladder diagram: Explanation:
Set CH1 as mode 0 (J-Type)
Set the Offset value of CH1
X0
M0
X1
K0 K40
K1
K0
K1TOP
K0
K1
M0
TOP
TOP
X1
SET
H0
K20
H1
K2
K28
Disable CH1 set value changing
5.8 Applications
5.8.1 Thermocouple Temperature Measurement System
1. Description
Measuring temperature by thermocouple temperature sensor.
2. Devices
M0: set the average times.
M1: switch the temperature unit of average and present temperature
D20 ~ D23: average Celsius temperature at CH1 ~ CH4
D30 ~ D33: average Fahrenheit temperature at CH1 ~ CH4
D40 ~ D43: present Celsius temperature at CH1 ~ CH4
D50 ~ D53: present Fahrenheit temperature at CH1 ~ CH4
3. Program explanation
M0=Off, set the average times of input signals at CH1 ~ CH4 as 10, M0=On set the average times of input
signals at CH1 as 1.
M1=Off, temperature unit = °C; M1=On temperature unit = °F.
M0=Off, M1=Off, Store the average Celsius temperature at CH1 ~ CH4 into D20 ~ D23.
M0=Off, M1=On, Store the average Fahrenheit temperature at CH1 ~ CH4 into D30 ~ D33.
M0=On, M1=Off, Store the present Celsius temperature at CH1 ~ CH4 into D40 ~ D43.
M0=On, M1=On, Store the present Fahrenheit temperature at CH1 ~ CH4 into D50 ~ D53.
DVP04TC-E2 stores the obtained temperature value to special registers. Therefore, you only need to read
the content in the special registers to obtain the measured temperature. Unit of the temperature: 0.1°C or
0.1°F.
4. Program example
Ladder diagram: Explanation:
Set the average times at CH1 ~ CH4 as
10
Set the average times at CH1 ~ CH4 as
1
Display Celsius degrees (
°C)
Display Fahrenheit degrees (
°F)
Read average Celsius degrees at CH1 ~
CH4
Read average Fahrenheit degrees at
CH1 ~ CH4
Read present Celsius temperature at
CH1 ~ CH4
Read present Fahrenheit temperature at
CH1 ~ CH4
END
K0
K4TOP K2
K1
K0 K1
TOP K7
H1
M1
K0
K1TOP K7
H0
M1
K0 K4TOP K2 K10
M0
M0
M0 M1
M1
M0 M1
M1
D9900
D40
D9900
D50
D9900
D20
D9900
D30
K4
K4
K4
K4
BMOV
BMOV
BMOV
BMOV
DVP-ES2 Module Manual
5-15