Spectrum Controls 1746sc-NI8u User Manual
Page 72

60
SLC 500
™
Universal Analog Input Module
Rung 2:1
This rung tests to see if T4:0.ACC is at a value between 800 and 950
counts. If so, the channel configuration words are defined (through the
Fill File command) to send status information.
FLL
FILL FILE
Source
151
Dest
#O:2.0
Length 8
LIM
LIMIT TEST
Low Lim
800
Test
T4:0.ACC
0
High Lim
950
Rung 2:2
This rung executes a Copy File command to move the channel status
word (as enabled in the previous rung) into registers N7:10 through
N7:17 for all channels.
Though the module is quick about switching from sensor data to status
information, it is a good idea to give the module a little time to switch
modes. That is why this example uses a half second period in time
between when the channel is set-up to send the status word and when
the status word is read into the N7 table.
COP
COPY FILE
Source #I:2.0
Dest
#N7:10
Length 8
LIM
LIMIT TEST
Low Lim
950
Test
T4:0.ACC
0
High Lim
1000