The text of a manual · part 13 of 15
Communication Adapter Module (cat. no. 1771-KA2) User's Manual, pages 121 to 130
Pages 121 to 130 of 144
The original document is the PDF (2.0 MB). 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-KA2
Page 121
Chapter 9 Start–up and Troubleshooting
REMOTE/LOCAL FAULT Indicator ON As recommended in chapter 7, some indicator must be controlled by the status of the REMOTE and LOCAL FAULT bits at each station processor. Should this indicator go ON, connect and initialize a programming terminal and follow these procedures to isolate the source of the fault condition. (The steps of this procedure are outlined in the example of Figure 9.7.) Figure 9.7 REMOTE/LOCAL FAULT Troubleshooting Example Local Fault Status 055 00 /
Output Indicator 010 00 L OFF
055 01
Instruction intensified. Thus Local Fault Status Bit, 05500, is OFF.
/
Instruction normal intensity. Thus this bit is ON.
03200 /
03201 032 02 032 03 032 04 032 05 032 06 / / / / / /
Start Bit 03112
Command Code 023 00 052 G 000
020 G 000
022 G 000
032 07 /
Local Fault Status 055 00
027 07
1.
Using the SEARCH functions, display the rung of program that controls the external FAULT indicator device. Determine whether a status bit indicates that either a REMOTE or LOCAL FAULT bit is set ON.
2.
Using the SEARCH functions, display the rung of program that examines either the REMOTE or the LOCAL FAULT bits, and controls a status bit or bits based on FAULT bit states.
3.
Observe the individual instructions of this rung to detect any change in FAULT bit status.
When you use the rungs recommended in Figure 7.6, EXAMINE OFF instructions address each fault bit. When these instructions are displayed 9-19
Page 122
Chapter 9 Start–up and Troubleshooting on the program panel or industrial terminal, observe the status indicators of the terminal carefully. Due to CRT delay time, the intensity of an EXAMINE OFF instruction, which shows its status, may not change as rapidly as does the actual ON/OFF status of the FAULT bit. (Recall that programming re-tries caused the FAULT bit to be continuously turned ON and OFF.) Thus, it may take a few seconds for the programming terminal to show a change in FAULT bit status. Should it be difficult to detect the changing ON/OFF bit status for an individual FAULT bit, the contact histogram feature can be used to display changes in status. 4.
From the results of step 3, determine the START bit address for the corresponding command.
The START bit has a strictly defined correspondence to a REMOTE or LOCAL FAULT bit. Figure 6.2 shows this relationship. 5.
Use the SEARCH functions to locate the command rung that begins with the START bit, as determined in the previous step.
6.
Examine the command code of this rung to determine the remote station number to which the command was sent.
7.
Determine the nature of the faulted condition and correct this condition.
Use Figure 9.3 as a guide to tracing possible sources of a faulted condition. 8.
Verify that the FAULT condition was corrected. Observe the fault indicator at the sending station.
Module Replacement After other troubleshooting checks have been made, it may be necessary to replace the communication adapter module. Removing the Module 1.
Turn off power to the module.
This power is provided by the power supply that connects to the backplane of the Bulletin 1771 I/O chassis.
9-20
2.
Disconnect all cables connected to module sockets.
3.
A plastic latch on the top of the chassis holds the module in place. Pivot this latch upward, out of the way of the module.
Page 123
Chapter 9 Start–up and Troubleshooting
4.
Lift the plastic lever on the module to break its backplane connection.
5.
Firmly grasp the sides of the module and pull it gently from the I/O chassis slot.
Installing the Replacement Module 1.
Set module switches to proper positions, then replace the switch cover.
2.
Insert the replacement module in the I/O chassis. Snap down the latch on the top of the chassis and re-connect the cables to module sockets.
Module power-up is described in section titled “Power-up.” Station Disconnection For most troubleshooting and startup purposes, a station can be disconnected from the Data Highway communication link simply by disconnecting the station dropline from the DATA HIGHWAY socket of the module. However, should a station be disconnected for an extended period, or should a dropline no longer be needed at any point along the Data Highway cable, the station should be disconnected at the 1770-XG tee connector, or the 1770-SC station connector, whichever one was used. To disconnect a station joined by a tee connector, remove the station dropline from the connector. Then remove the male and female truckline cables from the tee and connect them to each other. To disconnect a station joined by a 1770-SC connector, remove the SC’s cover, then disconnect the wires from terminals 6 and 8. If the dropline cable was longer than 10 ft. and the drain wire was connected to terminal 7, disconnect that one also. (See A-B PD sheet 1770-953.) Replace the SC cover. Figure 9.8 illustrates station connections with a 1770-SC connector and a tee connector.
9-21
Page 124
Chapter 9 Start–up and Troubleshooting
Figure 9.8 Disconnecting a Station
Trunkline Out
Trunkline In 4 Cable Wiring Cable
Blue
Clear
Shield
Trunkline
1
3
Dropline
6
8
2 2 3 7
1770–SC Station Connector
1
2 3 15–Pin Connector Pin 6 Blue Pin 7 Shield Pin 8 Clear
Ground Wire (Green) #12 Ga. to Earth Ground Dropline Cable Notes:
To Data Highway Module
1 Twist trunkline wires of same color before securing to screw–clamp terminals 1, 2 and 3. 2 For dropline cable ten feet or less, isolate the dropline shield from the enclosure. 3 For dropline cables greater than ten feet, attach the dropline drain wire to terminal 7. 4 When the station is first or last on a trunkline, attach a 150W resistor to terminals 1 and 3.
Tee Connector
Trunkline Segment
Tee Connector
Dropline
Remove trunkline segments, then connect them to each other. Tee connector is free.
Trunkline Segment Before
9-22
Trunkline Segments
After
Page 125
Chapter 9 Start–up and Troubleshooting
Chapter Summary
Procedures for start-up and troubleshooting were discussed in this chapter. It detailed: General procedures Aids to start-up and troubleshooting Significant indicators (on the 1771-KA2) in troubleshooting Use of industrial terminals and panels in troubleshooting Search functions Status indication for program instructions FORCE ON function REMOTE/LOCAL FAULT bits, ERROR CODE storage words The START bit’s role in start-up and troubleshooting Start-up procedures Paired testing of Data Highway stations Steps for testing sending station and setting START bit Monitoring FAULT bits Module replacement Station disconnection In chapter 10 you will read about organizing and writing a program for a KA 2 module; program summarization, forms, and memory maps for PLC-2 family PCs.
9-23
Page 126
Chapter 9 Start–up and Troubleshooting
9-24
Page 127
Chapter
10
Design Aids and Documentation
General
This chapter provides programmer aids to help in writing, organizing, and documenting a program for a communication adapter module.
Program Summary
Figure 10.1 is a sample program that incorporates both a communication zone and the support programming recommended for the single command programmed in this zone.
Figure 10.1 Sample Program Start 011 [G ] 000 013 [G ] 000
077 [G ] 000 141 [G ] 000
015 [G ] 000 146 [G ] 000
03212 01200 ] [ ] [
160 [G ] 000
02707 ( L ) OFF 02707 ( )
030 [G ] 000
037 [G ] 000
02707 ( ) 02707 ( U )
11217 03312 03302 ] [ ] [ ] [
03212 ( L )
Header Rung Memory Access Rung
> Communication Zone of Program
Command Rungs Delimiter Rung Latch Start Bit
OFF 03202 11217 ] [ ] [
03212 ( U )
Unlatch Start Bit
03302 ] [ 03312 ] [ 03302 ] [ 03312 ] [ 03202 ] [
01000 (L ) OFF 01000 (U)
Latch Output Indicator
Unlatch Output Indicator
10-1
Page 128
Chapter 10 Design Aids and Documentation
The rungs used in this example illustrate the programming principles of chapters 5 through 7 of this manual. Of course, user application programming may vary widely from this example. In any case, certain types of support programming should be used in any program for a command at a station. Support programming for each command includes: START bit LATCH and UNLATCH control REMOTE/LOCAL FAULT bit monitoring Each of these parts of the program is shown in Figure 10.1. Forms
Forms shown in Figure 10.7 to Figure 10.9 are available for programmer documentation: Switch settings - Communication Adapter Module (cat. no. 1771-KA2), form 5030 Command Listing - From station, form 5032 Command Listing - To station, form 5033 These forms should be a part of the standard documentation at each station that uses a programmable controller. Forms are available in quantity through Catalog Services, Allen-Bradley Co., Milwaukee, Wisconsin 53129
Memory Maps
For quick reference, a map of the memory organization for each Bulletin 1772 Mini-PLC-2/15, PLC-2/30, and Mini-PLC-2/05 Programmable Controller is included here. These maps should be used in conjunction with the recommendations of chapter 4, concerning communication adapter module access to memory areas. Figures 10.2 through 10.6 show the memory organization for each Controller. This chapter was provided to help you write, organize, and document a program for a 1772-KA2 module. It reviewed: Program summary Forms Memory maps for PLC-2 family processors
10-2
Page 129
Chapter 10 Design Aids and Documentation
Figure 10.2 PLC-2/20 Processor Memory Organization
Decimal Words Used in Each Word Area 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Total Decimal Word Used
8
Processor Work Area No. 1
8 0
24
40
64 72
88
104
128
192
16
16
24 8
16
16
24
64
0
0
0
1
1
1
0
1
0
16 Bit PLC-2/20 Word Output Image Table Reserved Additional Outputs or Timer/Counter Accumulated Values (AC) (Or Bit/Word Storage) Timer/Counter Accumulated Values (AC) (Or Bit/Word Storage) Processor Work Area No. 2 Input Image Table Additional Inputs or Timer/Counter Preset Values (PR) (Or Bit Word Storage) Timer/Counter Preset Values (PR) (Or Bit Word Storage) Timer/Counter Accumulated Values (AC) (Or Storage) Timer/Counter Preset Values (PR) (Or Storage)
256
0
64
1
1
0
0
Octal Address Bit 000
00
007 0 010
17 00
026 027 030
17
047 050
17 00
077 100 107 110
17 00 17 00
127 130
17 00
147 150
00 00
177 200
17 00
277 300
17 00
377
17
00
Data Table As Factory Shipped or Default
Data Table Expanded To Maximum Size (256 Words)
User Program Instructions 2048
4096
6144
1792
2048
2048
User Program Instructions User Program Instructions User Program Instructions
8192
2048
Messages
10-3
Page 130
Chapter 10 Design Aids and Documentation
Figure 10.3 Mini-PLC-2/15 Memory Organization
Total Decimal Words
Bit Address
Word Address
Decimal Words Per Area
000
00
007 010
17 00
017 020
17 00
026 027 030
17
Processor Work Area No. 1 8
8
Output Image Table 16
8 Bit/Word Storage
24
8
64
40
72
8
Reserved
1
2
Timer/Counter Accumulated Values (AC) (or Bit/Word Storage)
3
00
077 100
17 00
107 110
17 00
117 120
17 00
Processor Work Area No. 2
Factory– Configured Data Table (Can be Decreased to 48 Words)
Input Image Table 80
8 Bit/Word Storage
88
128
4 5
8
40
Timer/Counter Preset Values (PR) (or Bit/Word Storage)
127 130
17 00
177 200
17 00
3
Expanded Data Table and/or User Program 2048
End of Memory (3777)
1
May not be used for accumulated values.
2
4
Not available for bit/word storage. Bits in this word are used by the processor for battery low condition, message generation, EPROM transfer and data highway. Unused timer/counter memory words can reduce data table size and increase user program area. May not be used for preset values.
5
Do not use word 127 for block transfer data storage.
3
10-4
1920