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

Page 110

Advertising
background image

Publication 1746-UM008B-EN-P - December 2006

110 Application Examples

Program to Convert °F to BCD

15

Rung 2.0

First Pass Bit

] [

S:1

MOVE
Source

N10:0

Dest

O:3.0

Initialize Channel 0
of RTD Module.

MOV

Rung 2.1

Convert the channel 0 data word (degrees F) to BCD values and write this to the LED display. If channel 0 is
ever disabled, a zero is written to the display

.

TO BCD
Source

I:3.0

Dest

N7:0

TOD

MASKED MOVE
Source

N7:0

Mask

0FFF

Dest

O:2.0

MVM

➀ The use of the masked move instruction with the 0FFF mask allows you to use outputs 12, 13, 14, and 15 for

other output devices in your system. The 7-segment display uses outputs 0-11.

Rung 2.2

END

Advertising