Program listing – Rockwell Automation 1746-NI8 SLC 500 Analog Input Modules User Manual User Manual
Page 73
8–8
Application Examples
Publication 1746Ć6.8 - April 1997
Program Listing
The first rung of this program sends the channel setup information to
the 1746-NI8 module. The next four rungs send the scaled data to
the LED display based on the position of the selector switch.
Scale w/Parameters
Input
I:1.0
0 <
Input Min.
3500
3500 <
Input Max.
20500
20500 <
Scaled Min.
0
0 <
Scaled Max.
400
400 <
Output
N7:0
0 <
SCP
Copy File
Source
#N10:0
Dest
#O:1.0
Length
5
15
0000
First Pass Bit
] [
S2:1
Initialize the 1746ĆNI8
Module Channels 0-4
COP
Scale the data word containing the
current values from L1, L2, and L3.
0001
Scale w/Parameters
Input
I:1.1
0 <
Input Min.
3500
3500 <
Input Max.
20500
20500 <
Scaled Min.
0
0 <
Scaled Max.
400
400 <
Output
N7:1
0 <
SCP
Scale w/Parameters
Input
I:1.2
0 <
Input Min.
3500
3500 <
Input Max.
20500
20500 <
Scaled Min.
0
0 <
Scaled Max.
400
400 <
Output
N7:2
0 <
SCP