Programming examples, Chapter 5, Initial programming – Spectrum Controls 1746sc-NI8u User Manual
Page 63

Chapter 5: Ladder Program Examples
51
Programming Examples
Earlier chapters explained how the configuration word defines the way a
channel operates. This chapter shows the programming required to
enter the configuration word into the processor memory. It also
provides you with segments of ladder logic specific to unique situations
that might apply to your programming requirements. The example
segments include:
• initial programming of the configuration word
• dynamic programming of the configuration word
• verifying channel configuration changes
• interfacing the universal module to a PID instruction
• monitoring channel status bit
Initial Programming
To enter data into the channel configuration word (O:e.0 through O:e.7)
when the channel is disabled (bit 0 = 0), follow these steps. Refer to
page 30 (Table 9) for specific configuration details.
Example - Configure eight channels of a universal module residing in
slot 3 of a 1746 chassis. Configure each channel with the same
parameters.
Figure 5.1
Channel configuration
Configure Channel For:
Channel Enable Bit
± 10.0 V Range
Engineering Units x 10
Open Circuit Disabled
Degrees C (N/A)
10 Hz Filter
RTD Type (N/A)
Auto-cal Disable Bit
Channel Data Word
15
14
13
12 11
10
9
8
7 6
5
4
3
2
1
0
1
0
0
0
0
0
1
1
0 1
0
1
0
0
1
1
This example transfers configuration data and sets the channel enable
bits of all eight channels with a single File Copy instruction.
Chapter 5