The text of a manual · part 12 of 25
MHI-2000 Technical Reference Manual: CHAPTER 6 Diagnostics
Pages 85 to 96 of 207, from MHI-2000 Technical Reference Manual
The original document is the PDF (2.6 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 Sick MHI2000
Page 85
6 Diagnostics
CHAPTER 6
This chapter describes the diagnostic programs that test the MHI-2000’s inputs, outputs, memory, and the procedures that update the operating system and restore default parameter settings.
Introduction The MHI-2000’s Operating System (OS) contains a series of diagnostic programs that can test the inputs and outputs, tachometer calibration, and memory operation.
Initiating Diagnostics Tests from a Terminal You can switch the MHI-2000 to the Diagnostics mode from an ASCII terminal, a PC operating in terminal emulation mode, or a CiMAX 1400 Hand-Held Terminal connected to the Starnode port. Refer to “Non-Intelligent ASCII Terminal” on page 4-4 for more information.
To enter the Diagnostics mode from an ASCII terminal, type the command ~?D~ Where: ~ (tilde), The default or other message character that you can select using parameter 403 MSG CHAR PREFIX ?, The command character D, Used to enter the Diagnostics mode and display the Diagnostics menu. Type uppercase characters Send the command to the MHI-2000 by pressing Enter or CR. Note: When sending data through the serial ports, you must type all commands from the terminal using UPPERCASE characters. You may want to program various function keys on the terminal to generate and download strings to the MHI-2000.
Rev A, January 2002
MHI-2000 Technical Reference Manual
6 Diagnostics
The CiMAX 1400 Hand-Held Terminal has been factory-programmed to enter the Diagnostics mode when you press Shift, release it, and press F2. Refer to “CiMAX 1400 Hand-Held Terminal” on page 4-7 for more information.
6-1
Page 86
Chapter
6
Diagnostics
For example, the string ~?S~, when sent to the MHI-2000, causes the Setup menu to be displayed on the terminal. Thus, you might want to configure one of the user-definable keys on your terminal to generate the ~?S~ string when pressed. You could label this key SETUP.
Diagnostics Menu When the MHI-2000 first enters the Diagnostics mode, the following line will appear on the terminal display: DIAGNOSTICS (P)REVIOUS, (R)UN, (T)OGGLE, (E)XIT The Diagnostics menu will list all of the diagnostic tests that are available to you as you press Enter. This menu wraps around. If you back up through the menu from READ QUALITY, you will see the last test name (SYSTEM STATS). If SYSTEM STATS is already displayed when you move forward, you see the first test name (READ QUALITY) again. While in the Diagnostics menu, your choices are: •
Enter - Display the NEXT test. To view the test after the test displayed on the last line of the screen, if one is currently shown (or the first test, if none are shown), press Enter. The next test will be displayed on the next line. If the screen is full, it will scroll up and delete the top line to make room for the new line.
•
P - Display the PREVIOUS test. To view the test previous to the test displayed on the last line of the screen, if one is currently shown, press P - Enter. The previous test will be displayed on the next line. If the screen is full, it will scroll up and delete the top line to make room for the new line.
•
T - TOGGLE between Diagnostic and Setup menus without changing parameter/test position. When you Toggle to the Setup menu and then Toggle back to the Diagnostic menu, you will return to the same test that you were viewing before you toggled. To toggle, press T - Enter.
•
R - RUN the diagnostic test currently displayed on the last line. Any test can be stopped by typing Enter.
•
E - EXIT the Diagnostic/Setup menu and resume operation. To exit, press E - Enter.
Diagnostic Tests & Procedures The diagnostic tests are listed in Table 6–1. The remainder of this chapter provides complete descriptions of the tests and procedures. TABLE 6–1. Diagnostic Tests
6-2
Test Name
Display
Input/Output
IO PORTS
Tachometer Test
TACHOMETER TEST
Tachometer Calibration
TACHOMETER CAL.
Restore Settings
KEYSHEETS
Update Operating System
OS UPDATE
MHI-2000 Technical Reference Manual
Rev A, January 2002
Page 87
Introduction
TABLE 6–1. Diagnostic Tests (Continued)
Test Name
Display
Network Ping
NETWORK PING
Network Statistics
NETWORK STATS
Communication Ports Test
PORT TEST
Real Time Clock
REAL TIME CLOCK
Starnode Network Monitor
STARNODE MONITOR
System Statistics
SYSTEM STATS
The Diagnostics menu and all diagnostic outputs will only be sent to the Terminal and Setup port, and not to the Host port, regardless of whether a terminal is attached to the port. The Terminal port will respond as it has been configured by Setup parameters 140-153, except that no prefix character will be sent and the suffix characters CARRIAGE RETURN and LINE FEED will be sent. Refer to parameters 147, 148, and 149 in Appendix E for more information.
Stopping Diagnostic Tests Any test can be terminated at any time by pressing Enter.
Input/Output (IO PORTS) Test The Inputs/Outputs test tests the eight control inputs and outputs. Conducting the Test Select and run the test.
2.
When the test is run, the eight inputs will be sampled repeatedly and their states reported as follows: INPUTS=XXXXXXXX Where: X - 0 or 1 depending on the input state.
3.
While running the test, you can turn on any output by entering the output number (1 through 8), or all outputs at once by entering A, for All outputs, followed by pressing A. The selected outputs will turn on for approximately one second. Each output must be observed manually to determine that it is operating. If the Standard Interface Unit is in use, the LED indicators associated with each output relay can be observed to determine if the relays are being energized.
Tachometer Test If your installation includes a tachometer, this test is useful for troubleshooting and for verifying the accuracy of parameter 702 FIXED CONV SPEED. Running the Test 1.
Rev A, January 2002
Select and run the test. When this test is run, you will see a result similar to the following: MHI-2000 Technical Reference Manual
6-3
Diagnostics
6
1.
Page 88
Chapter
6
Diagnostics nnnn COUNTS mmmm MILS pppp FT/MIN Where: nnnn - The number of tachometer pulses received in one second mmmm - The distance in mils that this corresponds to, as determined by parameter 702 FIXED CONV SPEED. The number of digits reported may vary among MHI-2000 types pppp - The calculated conveyor speed in feet per minute If parameter 702 FIXED CONV SPEED is set to zero, gap tracking will be disabled. If the value is not accurate, the distance and speed calculations will be incorrect.
Tachometer Calibration Procedure If your installation includes a tachometer, this procedure may be used to set parameter 702 FIXED CONV SPEED. This will be useful when the parameter cannot be derived from other known values, such as the number of pulses/revolution and the gearing ratio between the driven shaft and actual conveyor movement. To Run Calibration 1.
Select a box or article with a barcode that the MHI-2000 is configured to read.
2.
Ensure that the conveyor is running at normal speed and that the tachometer is functioning and connected correctly.
3.
Ensure that the following parameters are set to appropriate values. a.
Enter a preliminary value for parameter 702 FIXED CONV SPEED. A best guess or a value of 50 is appropriate.
b.
Set parameter 510 INZONE DEBOUNCE to the appropriate presence and tachometer input debouncing times.
c.
Enter accurate values for parameters 705 INZONE TO DATA and 706 OUTZONE TO DATA, the distances between the inzone and the outzone photoeyes and the centerline of the scan zone.
4.
Select and run the test.
5.
When the test is started, the scan zone between the inzone and outzone photoeyes should be empty. The message Waiting for box to break inzone... will be displayed on the terminal. If there are boxes in the zone when the test is started, you may see the message Waiting for zone to clear of boxes... until the boxes exit from the scan zone.
6.
Pass several boxes through the scan zone on the conveyor, one box at a time. As each box blocks the inzone photoeye, the message Inzone will be displayed. When the leading edge of the box blocks the outzone photoeye, a message similar to the following will be displayed: Box x: nnn tach counts tttt m/s mmm mils/tic ppp ft/min ht zone: q
6-4
MHI-2000 Technical Reference Manual
Rev A, January 2002
Page 89
Introduction
Where: x - The number of the box passed through the zone nnn - The number of encoder pulses recorded mmm - The calculated distance traveled per pulse ppp - The resulting conveyor speed q - The height zone indicated by the height-sensing photoeye tree if your application requires this. Example
Box2: 960 tach counts 1090m/s 37mils/tic 172 ft/min As subsequent boxes are passed through the zone, the mils/tic values will be averaged. Ending the test will cause this average to be entered into parameter 702 FIXED CONV SPEED.
Keysheets The Keysheets procedure allows you to save, delete, or load the customized Keysheet parameters that were saved in FLASH memory. Because you cannot overwrite the FLASH memory, these parameters provide a reliable backup of the original settings. Running the Procedure 1.
Select KEYSHEETS by entering <R> while KEYSHEETS is shown. The Keysheet File List will be displayed. To exit from keysheet diagnostics, enter <E>.
Diagnostics
Keysheet File list 1: FACTORY DEFAULT KEYSHEET 2: KEY1 3: KEY2 4: <EMPTY> 5: <EMPTY> Would you like to (S)ave/(D)elete/(L)oad or (E)xit? L To load a currently stored keysheet, enter <L>. The following will be displayed: Select job number (1-5) to Load from. Hit <Enter> to exit. X KEYSHEET LOADED Would you like to (S)ave/(D)elete/(L)oad or (E)xit? D To delete or empty a saved keysheet from flash, enter D. The following will be displayed: Select job number (1-5) to Load from. Hit <Enter> to exit. X KEYSHEET DELETED Would you like to (S)ave/(D)elete/(L)oad or (E)xit? S Rev A, January 2002
MHI-2000 Technical Reference Manual
6
6-5
Page 90
Chapter
6
Diagnostics
To save current working parameters to flash, enter S. The following will be displayed: Select job number (1-5) to Load from. Hit <Enter> to exit. X Please type a description or hit <enter> to use the current description. You MUST enter a description if none exists. At this point, you should enter a keysheet name <KEY2>. The following will be displayed: SAVING KEYSHEET.....KEYSHEET SAVED. You must reboot the MHI-2000 for the restored parameters to take effect. Note: The keysheet area in FLASH memory is not erased when a new OS version is downloaded. Therefore, you can restore the keysheet settings easily after updating the OS. However, if the new OS introduces any new or changed parameters, they may not be set correctly by the saved keysheet. SICK Auto Ident, Inc. makes every effort to be backward compatible, and will try to warn you when new parameter values will need to be entered by hand.
Operating System Update In order to update the Command Board OS, you may have to change some of your download parameters, depending on your specific system setup. When you access the test, the following should be displayed: NOTE: Scanner Operation Will Stop For The Update Process To Continue With Command OS Update, Type 'UPDATE' To Change The Download Parameters, Type 'CHANGE' To Display List Of Command OS Files On The FTP Server, Type '?' To Display List Of All Files On The FTP Server, Type 'LIST' To display a list of command OS Files located at the FTP Server address, type <?>. xxxxxxxxx.os yyyyyyyyy.os To display a list of all files located at the FTP Server address, type LIST. -rwxrwxrwx 1 noone nogroup 497197 Sep 11 14:53 xxxxxxxxx.os
To display and/or change your current download parameters, type CHANGE. Current Download Parameters: 1. FTP Server Address:x.x.x.x 2. Login Name: xxxxxxxx 3. Password: xxxxxxx Enter Parameter number or <Enter> to Exit If download parameters are set correctly, press <Enter> to exit. Type UPDATE to continue with OS Update. The following should be displayed: MHI-2000 will reset after update. Enter name of file to download or ? for OS file list
6-6
MHI-2000 Technical Reference Manual
Rev A, January 2002
Page 91
Introduction
Enter the correct file name for the command board operating system. If you enter an incorrect file name, an error will be reported and the MHI-2000 will reset. If file name is correct, the following should be displayed: Getting File from FTP Server Shutting down scanner operation... Writing to Flash sector 7 Writing to Flash sector 8 Writing to Flash sector 9 Writing to Flash sector 10 Writing to Flash sector 11 Writing to Flash sector 12 Writing to Flash sector 13 Writing to Flash sector 14 OS update complete. xxxxxx bytes written. After completion of the update, the MHI-2000 should reset.
Network Ping Use this test to show other active network devices by referencing their IP address. This is similar to the DOS Ping command. When you run this test, the following will be displayed: Enter IP Address To Ping If you enter an active device, the following would be displayed: PING x.x.x.x: 56 data bytes 64 bytes from 10.6.1.13: icmp_seq=0. time=0. ms 64 bytes from 10.6.1.13: icmp_seq=1. time=0. ms 64 bytes from 10.6.1.13: icmp_seq=2. time=0. ms 64 bytes from 10.6.1.13: icmp_seq=3. time=0. ms 64 bytes from 10.6.1.13: icmp_seq=4. time=0. ms ----x.x.x.x PING Statistics---5 packets transmitted, 5 packets received, 0% packet loss round-trip (ms) min/avg/max = 0/0/0
Diagnostics
6
If you enter an inactive device, the following would be displayed: PING x.x.x.x: 56 data bytes no answer from x.x.x.x
Network Stats Use this test to show a number of statistical reports about the Ethernet network and the individual adapters. When you run this test, the following will be displayed: Networking Statistics - Select Number: 1. 2. 3. 4. 5. 6. Rev A, January 2002
Adapter Statistics ARP Table SICK Auto Ident Networked Devices Connections Host Table ICMP Statistics MHI-2000 Technical Reference Manual
6-7
Page 92
Chapter
6
Diagnostics
7. IP Statistics 8. MBuf Statistics 9. Routing Statistics 10. Routing Table 11. UDP Statistics 12. TCP Debug Socket Statistics 13. TCP Statistics Individual Adapter Statistics 14. On-board Controller Bound Protocols 15. On-board Controller Low Level Statistics 16. On-board Controller MBuf Statistics 17. On-board Controller Packet Statistics 18. On-board Controller Register Values 19. Add-on Controller 1 Bound Protocols 20. Add-on Controller 1 Low Level Statistics 21. Add-on Controller 1 MBuf Statistics 22. Add-on Controller 1 Packet Statistics 23. Add-on Controller 1 Register Values To display statistics of items listed above, type the report number, and specific information will be displayed.
Port Test Use this test to test the communication ports of the MHI-2000. When you run this test, the following will be displayed: Select Test Parameter To Change, R To Run Test, Or Any Other Key To End Diagnostic. 1. 2. 3. 4.
Include Message Count = YES Number Test Messages = CONTINUOUS Test Message = Test Test Port(s) = Host Port
Selecting 1 will toggle the Include Message Count YES/NO. Selecting Yes will append a test number after the test message. Selecting 2 will allow you to select the number of test messages you wish to send. 1-998 are numeric specific. 999 will continuously send messages. 0 will set you in interactive mode where what you send will be re-transmitted out the port or ports selected as test port. When you select 2, the following will be displayed: Enter Number Of Messages (1- 998), 0 For Interactive Output, or 999 For Continuous Output: Selecting 3 will allow you to enter your own test message. The following will be displayed: Enter Test Message: Selecting 4 will allow you to select the port you wish to send the test message. The following will be displayed:
6-8
MHI-2000 Technical Reference Manual
Rev A, January 2002
Page 93
Introduction
Select Port(s) To Test: 1. D Port (I/O Box) 2. Host Port 3. Net Port 1 4. Net Port 2 5. Net Port 3 6. Setup Port 7. Starnode Port 8. Telnet Port 9. Terminal Port 10. All Net Ports 11. All Ports Once you have defined selections 1-4, pressing R will begin the ports test. To stop the test, press any key.
Real Time Clock Use this test to display and set the MHI-2000’s internal Real time clock. When you run this test, the following will be displayed: Select Command: 1. Display Time 2. Change Time Selecting 1 will display current time and date. Selecting 2 will set the time and date, as shown below.
6
Enter Time/Date In The Format hh:mm:ss mm/dd/yy
Use this test to show Starnode Network traffic and messages. You may use various filters to obtain required results. This test will not display this individual MHI-2000’s messages. Each can be terminated by pressing any key. When you run this test, the following will be displayed: Warning - This Device Will Be Offline While Running The Monitor Select Monitor Filter Mode: 1. All Messages (ASCII Data Format) 2. All Messages Except Date/Time (ASCII Data Format) 3. All Messages Except Date/Time (Hex Data Format) 4. Raw Data (Non-Message Hex Format) Filter setting 1 will assign a message number, show the type, source, destination, length, message status, and the message, as shown below. In this example, you see the master Starnode controller broadcasting to all devices the time and date message. Press Any Key To End Monitoring ... MSG# TYPE SRC DEST LEN STATE DATA 000000> DATTIM MAST ALL 007 OK 02/27/01 13:45:29 000001> DATTIM MAST ALL 007 OK 02/27/01 13:45:30 000002> DATTIM MAST ALL 007 OK 02/27/01 13:45:30
Rev A, January 2002
MHI-2000 Technical Reference Manual
6-9
Diagnostics
Starnode Monitor
Page 94
Chapter
6
Diagnostics
Filter setting 2 will assign a message number, show the type, source, destination, length, message status, and the ASCII message as shown below. In this example, you see the master Starnode controller broadcasting a send status string message. MSG# TYPE SRC DEST LEN STATE DATA 000000> BRDCST MAST ALL 001 OK 5 Filter setting 3 will assign a message number, show the type, source, destination, length, message status, and the hex message, as shown below. In this example, you see the master Starnode controller broadcasting a send status string message. MSG# TYPE SRC DEST LEN STATE DATA 000000> BRDCST MAST ALL 001 OK 35 Filter setting 4 will assign a byte number, show the hex data, and ASCII data of all Starnode traffic. This test accumulates a large amount of data. An abbreviated portion showing broadcasted date and time message is displayed: BYTE# HEX DATA ASCII DATA . . 00480> 04 .. 05 .. 06 .. 07 .. 04 .. 05 .. 06 .. 07 .. ................ 00490> 04 .. 05 .. 06 .. 07 .. 04 .. 05 .. 06 .. 07 .. ................ 004a0> 04 .. 05 .. 06 .. 07 .. 0c 16 60 0b 37 19 53 .. ..........`.7.S. 004b0> 04 .. 05 .. 06 .. 07 .. 04 .. 05 .. 06 .. 07 .. ................ . .
System Stats Use this test to show a number of specific areas of the MHI-2000 operation. It will display statistics of the following tests. To run a specific test, enter the test number. When you run the test, the following will be displayed: System Information, Statistics, Debug Configuration - Select Number: 1. Debug Data Setup 2. D Port Statistics 3. Exception Log 4. Exception Log Reset 5. Fault Conditions (DIAGS LED) 6. Focusing Statistics 7. FPGA Load Log 8. Host Port Statistics 9. Memory Usage 10. MPB Statistics 11. PC Tunnel Statistics 12. Read Statistics 13. Starnode Statistics 14. System Devices 15. System Drivers 16. System Files 17. Task CPU Utilization 18. Task Error Number List 19. Task Error Number Reset 6-10
MHI-2000 Technical Reference Manual
Rev A, January 2002
Page 95
Introduction
20. Task Information Details 21. Task Information Summary 22. Terminal Port Statistics
Diagnostics
6
Rev A, January 2002
MHI-2000 Technical Reference Manual
6-11
Page 96
Chapter
6-12
6
Diagnostics
MHI-2000 Technical Reference Manual
Rev A, January 2002