Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 12 of 15

Communication Adapter Module (cat. no. 1771-KA2) User's Manual, pages 111 to 120

Pages 111 to 120 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 111

Chapter 9 Start–up and Troubleshooting

Appendix A lists each ERROR CODE and its meaning. Figure 9.4 Header Rung Local Station No.

011 G

Error Code Storage Word Location

077 G CEE

Timeout Preset Code

015 G

02707 L

Test Rungs (Optional) For start-up and troubleshooting testing, you must have some means for control of each START bit. To execute a command during testing, you can energize the START bit for each command. Here’s the way it happens: The START bit is controlled by a rung of the user application program. The most direct way to control this bit in troubleshooting, therefore, is to manipulate the conditions of the rung to energize the START bit. If this can be done easily for each START bit at a station processor, no special procedure for command initiation is necessary. However, it may not always be practical to simulate application conditions for the purpose of command testing. In this case, a special set of test rungs can be added at the end of the user program. Using these rungs, the programmer control command initiation directly from the programming terminal.

CAUTION: Do not alter the application program for troubleshooting purposes. This can cause undesired machine operation, since the program may no longer operate as had been intended.

The optional test rungs described here are recommended with this caution in mind. The specific format of these rungs allows control of commands without altering the main body of the application program. Because these tests rungs are within a ZCL area, the output instructions of these rungs are executed only under strict programmer-controlled conditions and only when the programming terminal is connected. Except where intentionally activated by the proper key sequence, these rungs are ignored by program logic in normal operation. 9-9

Page 112

Chapter 9 Start–up and Troubleshooting

Optional test rungs are shown in Figure 9.5. Within this ZCL area, the START bit is unconditionally LATCHED ON (rung 2) and UNLATCHED when the DONE bit is ON (rung 3). In rung 1, a single input image table bit is the condition for the ZCL area. Figure 9.5 Optional Test Rungs Input address for ”Force On” manipulation. (Input address which is always turned OFF by I/O scan.) 111 00 Rung 1

ZCL

Rung 2

Start Bit 032 10 L

Rung 3

Rung 4

Done Bit 032 00

Start Bit 032 10 U

Rungs may be left in program for subsequent troubleshooting.

ZCL

The input image table bit examined in rung 1 must always be turned OFF by the processor I/O scan. This bit can be any unused input image table bit. For this purpose, choose a bit that is not usable because its corresponding I/O chassis slot contains an output module. Because the processor turns this bit OFF on each I/O scan, the ZCL area is disabled unless both of these conditions are met: The programming terminal is connected to the processor, that is, to the communication adapter module PROGRAM INTERFACE socket The addressed input image table bit is FORCED ON When both of these conditions are met, the commands programmed at a station processor can be initiated and monitored. To test individual commands, the addresses of the corresponding START and DONE bit are entered into rungs 2 and 3. In this manner, each command can be tested individually.

9-10

Page 113

Chapter 9 Start–up and Troubleshooting

These rungs send the command continuously, as long as the ZCL area is enabled. As a quick check of this continuous command execution and completion, another rung can be added to the test rungs within the ZCL area. This rung examines the START bit as the input condition to a counter, as shown in Figure 9.6. Using this optional counter, you can verify that the command is being executed continuously. To use this optional counter, insert this additional rung within the ZCL area, between rungs 3 and 4. Figure 9.6 Optional Test Counter Increments to show continuous sending of tested command message Start Bit 03210

057 CTU Insert between optional test rungs 3 and 4 if needed.

Note that the counter value shown on the programming terminal may not display the actual number of times a command has been sent, due to CRT delay time. However, the purpose of the counter is to provide an indication to the troubleshooter that the command is being continuously executed, rather than to give an actual count of the number of times it is executed. Again, the use of these test rungs is optional, subject to the discretion of the programmer. An advantage of these rungs is that they may be kept at the end of the user program after start-up is completed. This enables use of these rungs in subsequent troubleshooting or later testing, as when a command rung is subsequently added to the communication zone of program. Of course, these rungs can be removed after start-up is completed, at the programmer’s option. Recommended Documentation For testing and troubleshooting command execution, the following documentation should be available at each station processor: Copy of the ladder-diagram program in the station processor Completed forms giving the following information: Communication adapter module switch settings Listing of commands sent by the station Listing of commands received by the station 9-11

Page 114

Chapter 9 Start–up and Troubleshooting

A ladder-diagram printout can be generated on a compatible data terminal, such as a teletype or other line printer. Forms for programmer documentation are described in chapter 10. Start-up Procedures

A careful start-up procedure is essential to proper Data Highway operation. With a methodical start-up procedure, cabling connections, module set-up and support programming for module communication can be tested at each station. Start-up of a newly-installed Data Highway requires the combined efforts of maintenance personnel, the programmable controller programmer, and in many cases, the computer programmer. Because applications may vary widely, the recommendations in this section are general. Specific start-up procedures will depend on the exact nature of the individual application. For the procedures in this chapter, the following preparation is assumed: Station assembled using compatible components, as described in chapter 2. Communication adapter module properly installed, as described in chapter 3. Programming at the station processor includes the communication zone and the necessary support programming for initiating and monitoring user commands, as described in chapters 5 and 7. That your application program is fully tested. The last point is very important. Testing your application program at each station is essential for proper operation. This means that the application program must be tested before the Data Highway is tested. You must test the program that controls output devices, including those parts of the program that use data transferred from other stations. In a new installation, you must complete all start-up procedures of the controller before attempting to test Data Highway operation. This includes complete testing of I/O devices, I/O wiring and program sequencing. Procedures for start-up of a new controller are covered in other publications. A lists of these publications appears in chapter 1. In many cases, Data Highway capability is added to an existing controller installation. Here, the application program may be only slightly modified to use data from other stations. However, any editing or change of the program must be tested at the controller so that errors can be corrected before the program is put into full operation.

9-12

Page 115

Chapter 9 Start–up and Troubleshooting

Overall Approach In start-up testing, it is best to limit the number of things happening at one time. By carefully limiting the scope of start-up testing to a small number of variables, the source of a problem is more readily detected. Paired Testing In the early stages of Data Highway testing, limit the size of the group of stations being tested. Initially, start-up testing is done with only 2 stations communicating at a time; all other stations are OFF. Then, after each station has been tested in this manner the testing of more than 2 stations at a time can begin. Finally, after comprehensive testing of all stations, station processors can begin normal operation. To begin, one station is selected as a starting point. For the purpose of this description, this station is labeled A. Any station to which station A sends a command can then be selected as station B. The first testing is then carried out between stations A and B, with all other station interface modules disconnected. Each command from A to B is tested and monitored to verify proper operation. Then station B is checked for any commands that it received from station A and for any commands that it sends to station A. Once testing between these two stations has been completed, station B is disconnected and another station, C, is selected, again based on its being addressed by a command from station A. Since station A has already been tested for several functions, problems with station C can be more readily located and corrected. Paired testing continues in this manner until all commands programmed at station A have been tested. Then, commands from station B are tested with other stations. This procedure continues, with pairs of stations being tested each time until all commands sent on the Data Highway have been checked in this manner. By following this procedure, you test each command for proper execution by the station interface modules at each station. This testing also checks the support programming done at each station to initiate and monitor commands, including REMOTE/LOCAL FAULT monitoring. The procedures of sections titled “Testing the Sending Station” and “Testing the Receiving Station” are used for paired testing of stations. For a station sending a command, carry out the procedures of section titled “Testing the Sending Station.” At the receiving station, carry out the procedures of section titled “Start-up Procedures.” 9-13

Page 116

Chapter 9 Start–up and Troubleshooting

Increasing the Group Size Once paired testing has been completed, execution of each command has been verified. At this point, the size of the tested group of stations is increased and station interaction of this larger group can be monitored. For this phase of testing, the same checks outlined in sections titled “Testing the Sending Station” and “Testing the Receiving Station” can be made, but without the need to test each individual command. At this time, all station processors remain in the TEST mode. In this procedure, gradually increase the size of the tested group until all stations are communicating. Operation Once the interaction of all station interface modules has been checked, the station processors can be put into operation, one at a time. You must determine which controller you intent to put in the RUN mode initially, and in what order other stations are to be added in the RUN mode. Monitoring of station interaction can continue during these procedures. By adding stations one at a time, you can exercise maximum control over the application and monitor controller behavior. Power-Up Only the 2 stations being examined in the first phase of start-up should be ON. Follow these steps in powering up each of these stations: 1.

Turn the processor mode select switch to PROG position.

2.

Turn power ON at the station processor and communication adapter module. Observe power supply and processor indicators for proper status.

3.

While observing the indicators of the communication adapter module, turn the mode select switch to TEST position.

Within a short time, the PROG indicator on the module should turn ON briefly, then OFF. This indicates that the module has checked the communication zone rungs of program. If this indicator remains on, an error may have been detected in these rungs. Should this be the case, check the ERROR CODE storage word, as described in step 4. If this indicator does not turn on, the communication zone of program may be incorrectly entered. Check this zone if necessary. The indicator labeled PROC should be OFF. If this indicator is ON, check for a processor fault indication or poor Data Highway/Processor cable connection. 4. 9-14

If the PROG indicator does not turn off after a few seconds, observe the ERROR CODE storage word.

Page 117

Chapter 9 Start–up and Troubleshooting

The ERROR CODE storage word is listed in the header rung of the communication zone of program. The significance of the ERROR CODE storage word is described in section titled “Testing the Receiving Station.” Correct the communication zone rungs as indicated by the ERROR CODE. Then repeat step 3, checking the status of the PROG indicator. When the indicators on the station communication adapter module and its station processor show normal operation for both stations being tested, perform the procedures of sections titled “Testing the Sending Station” and “Testing the Receiving Station.” Testing the Sending Station Use the following procedures to test commands from each station. After completing these steps for a command, verify data transfer at the receiving station, as outlined in section titled “Testing the Receiving Station.” The procedures outlined here can be used for any phase of start-up and troubleshooting testing, and any time a command rung is added at a station processor. During initial testing, only 2 stations have power on and are connected to the Data Highway cable for these procedures. In addition, both station processors must be in TEST mode for initial start-up testing. During later phases of start-up testing, more than 2 stations may have power on for these procedures. There are 2 steps for testing of each command from a sending station: 1.

Set the START bit.

2.

Monitor the DONE and REMOTE/LOCAL FAULT bits.

Each of these steps is described later. Setting the START Bit The most direct way to control the START bit for test purposes is to duplicate the input conditions of the user program rung that latches this bit on. If it is possible to do this easily during testing, duplicate these conditions and proceed to step 2. However, because this may not always be practical, the set of optional test rungs, as described in section titled “Test Rungs (Optional),” can be used. These rungs, entered at the end of the application program, can be controlled to test each command individually.

9-15

Page 118

Chapter 9 Start–up and Troubleshooting

Sample test rungs are shown in Figure 9.5. The following steps outline the procedures for programming these rungs for testing. With the programming terminal connected, follow these procedures: 1.

Display the END (of program) statement. The key sequence that displays this part of the program is as follows: [SEARCH] [ ]

2.

Turn the processor mode select switch to the PROGRAM or PROG position.

3.

Enter the test rungs in the format of Figure 9.5 with the following addresses: Rung 1 - Enter the address of an unused input image table bit for the EXAMINE ON instruction. (Section titled “Test Rungs (Optional)” describes the reason for selection of this bit.) Rung 2 - In the LATCH instruction, enter the START bit address for the command being monitored. Rung 3 - Enter the address of the DONE bit for the EXAMINE ON instruction. Enter the address of the START bit for the LATCH instruction.

Check that the format of these test rungs resembles the one shown in Figure 9.5. With these rungs entered, a command can now be initiated. To do this, use the FORCE ON function of the programming terminal. Perform the following steps: 4.

Turn the processor mode select switch to the TEST position.

5.

Position the cursor on the EXAMINE ON instruction of Rung 1. (On the PLC-2 program panel, display this instruction.)

6.

On the programming terminal, press the key sequence for the FORCE ON function.

With an industrial terminal, press these keys: [FORCE ON][INSERT] With program panels, press these keys: [SELECT][FORCE ON][INSERT] The START bit is now LATCHED ON. Under normal operation this bit is being LATCHED and UNLATCHED as the processor executes its scan, and the command is sent continuously.

9-16

Page 119

Chapter 9 Start–up and Troubleshooting

With the START bit energized, proceed to the monitoring checks of the paragraph entitled “Monitoring DONE and REMOTE/LOCAL FAULT Bits.” Once these checks have been completed, the next START/DONE bit addresses can be entered in the test rung for testing of the next command. The FORCE ON function can be removed using the programming terminal. On the industrial terminal, position the cursor on the FORCED instruction and press the following keys: [FORCE ON][REMOVE] On the program panels, press the following keys to remove a FORCE ON function: [SELECT][FORCE ON][REMOVE] The FORCE ON function is also removed when the programming terminal is disconnected from the station. Monitoring REMOTE/LOCAL FAULT Bits This second step in command checking requires that the status indicator of the programming terminals be monitored for FAULT bits. Use the following steps to observe the instructions that examine the FAULT bits. 1.

Turn the processor mode select switch to TEST position.

2.

Use the SEARCH functions of the programming terminal to locate instructions that examine FAULT bits. (SEARCH functions are described in section titled “Programming Terminals.”)

3.

Observe the ON/OFF status indicator of the programming terminal for each DONE and FAULT bit corresponding to the command. (These ON/OFF status indicators are described in section titled “Programming Terminals.”) Either a DONE bit or FAULT bit will turn on for each command.

If the REMOTE or LOCAL FAULT bit turns ON for the command sent, some hardware-related fault or programming error can be suspected. Check the connections and equipment indicated in Figure 9.3. If the DONE bit turns on the command has been executed properly by the sending station. After checking a command in this manner, check the receiving station, as described in section titled “Testing the Receiving Station.” Then, check any other commands as necessary, using the applicable procedures of sections titled “Power-up,” “Testing the Sending Station,” and “Testing the Receiving Station.” 9-17

Page 120

Chapter 9 Start–up and Troubleshooting

Testing the Receiving Station The receiving station is checked with the sending station for one purpose--verification of data transfer. Although this procedure may be time-consuming, it is essential in initial start-up testing and for testing whenever a command is added at a station. The station communication adapter module, upon receiving a command message, executes the command at its station processor, and formats and transmits a reply message back to the sending station. START/DONE and REMOTE/LOCAL FAULT bits indicate proper execution of this procedure. The checks performed in testing the sending station, therefore, can indicate and help to isolate the source of a problem that prevents the command from being executed. The checks at the receiving station help to verify that program addressing and station number switch selection is correct and that data are being sent to the intended station. When a command has been initiated and tested at its sending station, perform the following procedures at the receiving station. 1.

On the programming terminal at that station, display the instructions for the application program that are affected by data transferred from the sending station.

To identify areas of the program that are affected by transferred data, refer to Form 5033, which is recommended programmer documentation for each station. 2.

Observe that the data at these locations matches the data in the proper locations at the sending station processor. For write or read commands, observe instructions that address transferred words in the program at the receiving station processor. (These instructions include GET, PUT, TON, TOF, RTO, CTU, and CTD.)

For bit write commands, observe the ON/OFF status indicator for instructions that examine those bits in the program. Troubleshooting

9-18

The same tools and procedures used in start-up of a station containing a communication adapter module can be used for troubleshooting. This section outlines procedures that can be used in addition to the start-up procedures of section titled “Start-up Procedures.”