The text of a manual · part 3 of 9
Thermocouple/Millivolt Input Module (Cat. No. 1771-IXE Series D) User Manual, pages 21 to 30
Pages 21 to 30 of 85
The original document is the PDF (708 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1771-IXE
Page 21
Installing the Thermocouple/Millivolt Input Module
Interpret Status Indicators
Chapter Summary
2–7
The front panel of the thermocouple/mV input module contains a green RUN indicator and a red FAULT indicator. At power-up, the module momentarily turns on the red indicator as a lamp test, then checks for: • correct RAM operation • EPROM operation • EEPROM operation • a valid write block transfer with configuration data If there is no fault, the red indicator turns off. Thereafter, the module lights the green RUN indicator when operating without fault, or lights the red FAULT indicator when it detects fault conditions. If the red FAULT indicator is on, block transfers will be inhibited. Possible module fault causes and corrective action are discussed in Chapter 8, Troubleshooting.
In this chapter you learned how to install your input module in an existing programmable controller system and how to wire to the field wiring arm.
$
Page 22
2-8 Installing the Thermocouple/Millivolt Input Module
Publication 1771-6.5.130 - May 1999
Page 23
Chapter
- Chapter Objectives
3
In this chapter, we describe
• Block Transfer programming • Sample programs in the PLC–2, PLC–3 and PLC–5 processors • Module scan time issues
Block Transfer Programming
Your module communicates with the processor through bidirectional block transfers. This is the sequential operation of both read and write block transfer instructions. The block transfer write (BTW) instruction is initiated when the analog module is first powered up, and subsequently only when the programmer wants to write a new configuration to the module. At all other times the module is basically in a repetitive block transfer read (BTR) mode. The following example programs accomplish this handshaking routine. These are minimum programs; all rungs and conditioning must be included in your application program. You can disable BTRs, or add interlocks to prevent writes if desired. Do not eliminate any storage bits or interlocks included in the sample programs. If interlocks are removed, the program may not work properly. Your analog input module will work with a default configuration of all zeroes entered in the configuration block. See the configuration default section to understand what this configuration looks like. Also, refer to Appendix B for example configuration blocks and instruction addresses to get started. Your program should monitor status bits (such as overrange, underrange, alarms, etc.) and block transfer read activity. The following example programs illustrate the minimum programming required for communication to take place.
-
Page 24
3–2
Module Programming
PLC-2 Programming Example
Note that PLC–2 processors that do not have the block transfer instruction must use the GET–GET block transfer format which is outlined in Appendix D. Figure 3.1 PLC-2 Family Sample Program Structure
-
-
$$$
$$$
$$$ 32*
-
$$$
5&26+*5
-
32*
!
32*
32*
!
$$$
$$
$$$
$$
$ 32*
$ 32*
$
- %38 (&2 5*40&(* 7-* 486-'87732 9.7- & 7.1*5 '.7 73 .2.7.&7* 7-* '03(/ 75&26+*5 95.7* 32
& 7.1*) '&6.6 %38 (&2 &063 86* &2: 6735&,* '.7 .2 1*135:
- -; ; -
$
Page 25
Module Programming
3–3
Program Action Rung 1 – Block transfer read buffer: the file–to–file move instruction holds the block transfer read (BTR) data (file A) until the processor checks the data integrity. 1. If the data was successfully transferred, the processor energizes the BTR done bit, initiating a data transfer to the buffer (file R) for use in the program. 2. If the data is corrupted during the BTR operation, the BTR done bit is not energized and data is not transferred to the buffer file. In this case, the data in the BTR file will be overwritten by data from the next BTR. Rungs 2 and 3 – These rungs provide for a user–initiated block transfer write (BTW) after the module is initialized at power–up. Pressing the pushbutton locks out BTR operation and initiates a BTW that configures the module. Block transfer writes will continue for as long as the pushbutton remains closed. Rungs 4 and 5 – These rungs provide a ”read–write–read” sequence to the module at power–up. They also ensure that only one block transfer (read or write) is enabled during a particular program scan. Rungs 6 and 7 – These rungs are the conditioning block transfer rungs. Include all the input conditioning shown in the example program.
-
Page 26
3–4
Module Programming
PLC-3 Programming Example
Block transfer instructions with the PLC–3 processor use one binary file in a data table section for module location and other related data. This is the block transfer control file. The block transfer data file stores data that you want transferred to the module (when programming a block transfer write) or from the module (when programming a block transfer read). The address of the block transfer data files are stored in the block transfer control file. The industrial terminal prompts you to create a control file when a block transfer instruction is being programmed. The same block transfer control file is used for both the read and write instructions for your module. A different block transfer control file is required for every module. A sample program segment with block transfer instructions is shown in Figure 3.2, and described below. Figure 3.2 PLC-3 Family Sample Program Structure
-
!!!
!
!!!! !!!!
!
!!!! !!!!
-,&
/)1& -,&
,"#+&
- -,&
//-/
,"#+&
-
!!! -,&
!
!!!! !!!! //-/
!
!!!! !!!!
Program Action At power–up, the user program examines the BTR done bit in the block transfer read file, initiates a write block transfer to configure the module, and then does consecutive read block transfers continuously. The power–up bit can be examined and used anywhere in the program.
5 5
Page 27
Module Programming
3–5
Rungs 1 and 2 – Rungs 1 and 2 are the block transfer read and write instructions. The BTR enable bit in rung 1, being false, initiates the first read block transfer. After the first read block transfer, the module performs a block transfer write and then does continuous block transfer reads until the pushbutton is used to request another block transfer write. After this single block transfer write is performed, the module returns to continuous block transfer reads automatically.
PLC-5 Programming Example
The PLC–5 program is very similar to the PLC–3 program with the following exceptions:
• You must use enable bits instead of done bits as the conditions on each rung. • A separate control file must be selected for each of the BT instructions. Refer to Appendix B. Figure 3.3 PLC-5 Family Sample Program Structure
-
!
!
! !!! !!
!!! !!
!!
)"#(%
)"#(%
! !
!
!!! !!
!!! !!
!!
Program Action Rungs 1 and 2 – At power–up, the program enables a block transfer read and examines the power–up bit in the BTR file (rung 1). Then, it initiates one block transfer write to configure the module (rung 2). Thereafter, the program continuously reads data from the module (rung 1). A subsequent BTW operation is enabled by a pushbutton switch (rung 2). Changing processor mode will not initiate a block transfer write unless the first pass bit is added to the BTW input conditions.
2 2
Page 28
3–6
Module Programming
Module Scan Time
Scan time is defined as the amount of time it takes for the input module to read the input channels and place new data into the data buffer. Scan time for your module is shown in Figure 3.4. The following description references the sequence numbers in Figure Figure 3.4. Following a block transfer write “1” the module inhibits communication until after it has configured the data and loaded calibration constants “2”, scanned the inputs “3”, and filled the data buffer “4”. Write block transfers, therefore, should only be performed when the module is being configured or calibrated. Any time after the second scan begins “5”, a block transfer read (BTR) request “6” can be acknowledged. When operated in the default mode (RTS) = 00, a BTR will be released every 50 milliseconds. When operated in RTS = T, BTR will be waived until ”T”millseconds, at which time 1 BTR will be released. Figure 3.4 Block Transfer Time
'#
-
&'
-
Internal Scan time = 50msec T = 100ms, 200ms, 300ms ... 3.1sec.
Chapter Summary
In this chapter, you learned how to program your programmable controller. You were given sample programs for your PLC–2, PLC–3 and PLC–5 family processors. You also read about module scan time.
+ +
Page 29
Chapter
4
Module Configuration Chapter Objectives Configuring the Thermocouple/Millivolt Input Module (1771-IXE/D)
In this chapter you will read how to configure your module’s hardware, condition your inputs and enter your data.
Because of the many analog devices available and the wide variety of possible configurations, you must configure your module to conform to the analog device and specific application that you have chosen. Data is conditioned through a group of data table words that are transferred to the module using a block transfer write instruction. You can configure the following features for the 1771–IXE/D module:
• • • • • • • type of input one or two input types oC or oF data format real time sampling alarming calibration Configure your module for its intended operation by means of your programming terminal and write block transfers. Note: Programmable controllers that use 6200 software programming tools can take advantage of the IOCONFIG utility to configure this module. IOCONFIG uses menu–based screens for configuration without having to set individual bits in particular locations. Refer to your 6200 software literature for details. During normal operation, the processor transfers from 1 to 27 words to the module when you program a BTW instruction to the module’s address. The BTW file contains configuration words, high and low channel alarm settings, and calibration values that you enter for each channel. When a block transfer length of 0 is programmed, the 1771–IXE/D will respond with the Series A default value of 27.
-
Page 30
4–2
Module Configuration
Input Type
The thermocouple/millivolt input module accepts the following types of inputs: Table 4.A Types of Inputs Input Type
Input Type
Temperature Range oC
00
Bits 01
02
03
Bits 04
05
+'
+'
-
+'
+'
+'
+'
+'
The input type is selected by setting bits in the block transfer write (BTW) file. Two different inputs can be selected. You can have 4 inputs set for one type, and 4 inputs set for another type; or you can have all inputs the same. If you select different types of inputs, set bit 06 to 1. If you do not select 2 different input types, the module defaults to all inputs set to those selected by bits 00 –02. + +" * !') #&(,+ +.( -
+ +"#* !') ) &+ #&(,+ +.( * - Word
17
Temperature Scale
16
15
14
13
12
11
10
07
06
05
04 &(,+
03
02
01 &(,+
The temperature scale reported by the module is selected by setting bit 10 in the configuration word. When bit 10 is set (1), the temperature is reported in degrees Fahrenheit. When reset (0), the temperature is reported in degrees Celsius. The temperature bit 10 is ignored when the millivolt input type is selected.
- /
00