9 - application programming examples, Basic example (to display a temperature), Chapter 9 – Rockwell Automation 1746-INT4 Thermocouple/MV Isolated/ User Manual User Manual

Page 71: Application programming examples, Chapter

Advertising
background image

71

Publication 1746-UM614B-EN-P - September 2007

Chapter

9

Application Programming Examples

This chapter provides two application examples to help you use the
module.

Basic example

Supplementary example

The basic example lets you display a temperature.

The supplementary example lets you manually select the display of
temperature in °C or °F.

Basic Example
(to display a temperature)

This example lets you display the temperature of a bath °F on an LED
indicator display device. The display device requires BCD data, so the
program must convert the temperature reading to BCD.

Channel Configuration

Configure the thermocouple channel with the following setup:

Type J thermocouple (bits 3…0)

°F displayed in whole degrees with EU = x10 (bits 8, 5, 4)

Set the data word to zero in the event of an open-circuit
(bits 7, 6)

LED Indicator Display
(dc sinking inputs, BCD format)

Thermocouple Type J

Bath

1746-OB16

1746-INT4

SLC 5/02 Processor

Advertising