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

Page 109

Advertising
background image

Publication 1746-UM008B-EN-P - December 2006

Application Examples 109

Program Listing

Because a seven-segment LED indicator display is used to display
temperature, the temperature data must be converted to BCD. The
16-bit data word representing the temperature value is converted into
BCD values by the program shown in the Program to Convert °F to
BCD
.

Bits
0…3

Input Type Selected

0000 = 100

Ω Pt. (385)

0001 = 200

Ω Pt. (385)

0010 = 500

Ω Pt. (385)

0011 = 1000

Ω Pt. (385)

0100 = 100

Ω Pt. (3916)

0101 = 200

Ω Pt. (3916)

0110 = 500

Ω Pt. (3916)

0111 = 1000

Ω Pt. (3916)

1000 = 10

Ω Cu (426)

(1)

1001 = 120

Ω Ni (618)

(2)

1010 = 120

Ω Ni (672)

1011 = 604

Ω Ni-Fe (518)

1100 = 150

Ω Potentiometer

1001 = 500

Ω Potentiometer

1110 = 1000

Ω Potentiometer

1111 = 3000

Ω Potentiometer

Bits 4
and 5

Data Format Select

00 = engineering units, x 1

(3)

01 = engineering units, x10

(4)

10 = scaled-for-PID (0…16,383)
11 = proportional counts (-32,768 …32,767)

Bits 6
and 7

Broken Input Select 00 = zero

01 = upscale

10 = downscale

11 = invalid

Bits 8

Temperature Units
Select

0 = degrees Celsius

1 = ° F

Bits 9
and 10

Filter Frequency
Select

00 = 10 Hz

01= 50 Hz

10 = 60 Hz

11 = invalid

Bit 11

Channel Enable

0 = channel disabled

1 = channel enabled

Bit 12

Excitation Current
Select

0 = 2.0 mA

1 = 0.5 mA

Bit 13
and 14

Scaling Select

00 = module defined scaling
(default)

01 = config. words 4 and 5
for scaling

10 = config words
6 and 7 for scaling

11 = Not used (config
error)

Bits 15

Not Used

0 = always make this setting

(1)

Actual value at 0 °C (32 °F) is 9.042

Ω per SAMA standard RC21-4-1966.

(2)

Actual value at 0 °C (32 °F) is 100

Ω per DIN standard.

(3)

Values are 0.1 °/step or 0.1

Ω /step for all resistance input types except 150 Ω. For the 150 Ω resistance input type, the values are in 0.01Ω /step.

(4)

Values are 1 °/step or 1

Ω /step for all resistance input types except 150 Ω. For the 150 Ω resistance input type, the values are in 0.1Ω /step.

Advertising