Program listing – Rockwell Automation 1746-NR4 SLC RTD/Resistance Input Module User Manual User Manual

Page 115

Advertising
background image

Publication 1746-UM008B-EN-P - December 2006

Application Examples 115

Program Listing

The first two rungs of this program send the correct channel setup
information to the RTD module based on the position of the degrees
selector switch.

Program to Display Data on LED Displays

0

Rung 2.0

Degrees
Selector Switch ±
Fahrenheit

] [

I:2.0

If the degrees selector switch is turned to the Fahrenheit position, set up all four channels to read in degrees
Fahrenheit.

OSR

B3

0

Configure R TD
Module Channels

COP

COPY FILE
Source

#N10:0

Dest

#O:1.0

Length

4

0

Rung 2.1

Degrees
Selector Switch ±
Celsius

]/[

I:2.0

If the degrees selector switch is turned to the Celsius position, set up all four channels to read in degrees Celsius.

OSR

B3

1

Configure R TD
Module Channels

COP

COPY FILE
Source

#N10:4

Dest

#O:1.0

Length

4

Rung 2.2

TO BCD
Source

I:1.0

Dest

O:3.0

Write RTD Module Ambient

Temperature to Display

TOD

Rung 2.3

TO BCD
Source

I:1.1

Dest

O:4.0

Write RTD Module Bath
Temperature to Display

TOD

Advertising