How to Read Temperature with a J-Thermocouple Using a 0-5V Analog Configuration
This tutorial shows you how to wire and program a J-Thermocouple using a 0-5V Analog signal conditioner, with an HMI+PLC combo, while displaying on the user-interface.
Software Required
Hardware Required
- HMC4070A-M – Other HMC2000/HMC4000 models can also be used
- HMC3-M1212P0200 V2 – Other HMC3 I/O modules with Analog Inputs can also be used
- 24 VDC Power Supply (4010-0011)
- Thermocouple Input Signal Conditioner
- Hollow Tube J-Thermocouple
Note:
- A Signal Generator was used in this sample project to produce a J-Thermocouple signal.
- Other J-Thermocouples and signal conditioners can be used. These are just examples.
Wiring and Circuit Design
Power Supply to Signal Conditioner:
Red Wire: 24V Power Supply to Signal Conditioner
Black Wire 0V:Power Supply to Signal Conditioner
Signal Conditioner to Analog Input on I/O Module:
Red Wire: Output 5V to Voltage Input on I/O (V1)
Black Wire: Output 0V to Ground on I/O (AGND)
J-Thermocouple to Signal Conditioner:
Red Wire: 24V to positive on Signal Conditioner
Black Wire: 0V to negative on Signal Conditioner
This wiring diagram can also be applied to any HMC3 I/O Module with Digital Output capabilities
J-Thermocouple to I/ Module:
Red Wire: 24V to IN1+ on I/O Module
Black Wire: 0V to IN1- on I/O Module
Black Jumper Wire: IN1- to AGND
This wiring diagram can also be applied to an HMC3-M0808Y0401T I/O Module
Software Code
Ladder Diagram
Structured Text
Another type of IEC Language you can use
Temp_Real := any_to_real ( Slot01_CH0_AnalogIPReg );
Temp_Scaled := ScaleLin ( Temp_Real, 0.0, 65000.0, 0.0, 300.0 ) ;
User Interface
Sample Project
The project shown above was designed for the specific hardware mentioned at the beginning of the tutorial and is intended to provide you guidance when programming your unit. If you are using models other than the ones specified in this sample project, similar steps can be duplicated within your own project.
Download MAPware Sample Project
Resources & Documentation
HMC/MAPware-7000 Resources
MAPware-7000 Getting Started Guide
MAPware-7000 Programming Manual
IEC 61131-3 Programming Guide for MAPware-7000
HMC3 I/O Module Guide
More
See our Support Center for a complete list of Quick Start and Installation Guides