Data table, Program listing – Rockwell Automation 1746-NT4 Series B,D17466.6.1 SLC 500 4-Channel Thermocouple/mV Input Module User Manual User Manual
Page 89
Advertising

Publication 1746-UM007C-EN-P - July 2004
Application Examples 8-3
Program Listing
15
Rung 2.0
First Pass Bit
] [
S:1
MOVE
Source N10:0
Dest
O:3.0
Initialize Channel 0
of NT4
MOV
Rung 2.1
Convert the channel 0 data word (degrees F) to BCD 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
Rung 2.2
END
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.
.
Data Table
address 15 data 0 address 15 data 0
N10:0 0000 1001 0001 0000
Advertising
This manual is related to the following products: