The text of a manual · part 19 of 23
CiMAX 78xx Scanner Technical Reference Manual, pages 163 to 168
Pages 163 to 168 of 201
The original document is the PDF (2.8 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 RVSI CiMatrix 7800, Sick 7850 and Siemens 7800
Page 163
Gap Tracking Diagnostics
8 scanning down the rear of a box. The software compensates for this time lag and adjusts the focus point accordingly.
Diagnostics
Photoeye Height Tree The spacing of photoeyes on the height tree greatly influence the effective depth of field for a CiMAX 7800. The box height and thus the CiMAX 7800 focal distance is estimated to be the halfway point between two photoeyes. True box heights may be above or below this point by ½ distance between the photoeyes. As this distance approaches the CiMAX 78xx depth of field, the effective DOF is reduced accordingly. For example, say the CiMAX 7800 has a depth of field of approximately 4 inches at any given focal distance. If photoeyes are placed 2 inches apart then the maximum error in height is 1 inch. The CiMAX 7800 DOF then becomes 3 inches. As you can see a photoeye separation of say 6 inches would reduce the DOF to only 1-inch. This becomes even more critical when attempting to read down the face of a box.
Tachometer Resolution The CiMAX 7800 focal distance is checked on each tachometer pulse. An adjustment to the focal distance may not be made on each pulse but certainly cannot be made more frequently. When scanning down the face of a box many focal distance adjustments are required in a short time. It is important that the frequency of tachometer pulses be sufficient to result in a smooth adjustment of the focal distance.
Conveyor Speed Accuracy It is important that the scanner's estimate of the conveyor distance traveled with each tach pulse. The position of the box is determined by updating it according to the calculated speed. Any error in this speed thus results in a corresponding error in location. Often the conveyor speed is determined by using the TACH CALIBRATION procedure. This procedure determines the mils/tic of the tachometer signal. This calculation relies on the inzone to outzone distance being accurate. Any error in this measurement results in an inaccurate speed calculation.
7800 Scan Line Angle Accuracy It is important that the CiMAX 7800 mounting be such that the scan line is at the indicated angle. This wording may sound odd, however it is intended to indicate that the mounting angle of the CiMAX 7800 case does not necessarily correspond to the scan line angle. It is possible that the scan line is not exactly parallel to the CiMAX 7800 case. The best way to ensure the proper scan line angle is to measure from where the scan line exits the 7800 window to the conveyor. Often a protractor is used to reference the CiMAX 7800 case to the mounting frame. This is not the preferred method.
Inzone To Center Measurement The distance from the inzone to the center of the scan zone (the point where the scan line intersects the conveyor) is critical to determining the accurate position of a box. Any error in this measurement affects the focus distance when scanning down the face of a box.
Multiple Labels Per Box It is possible to have a CiMAX 7800 read two faces of a box and be able to differentiate labels according to the face of the box. For example, a CiMAX 7800 mounted above the conveyor scanning toward the back of a box can read labels on the top and back of a box. It can then put these labels in separate bins according the X, Y position. Remember that with tracking set to 2 through 7 the X dimension indicates the face of the box. By setting the MM fields of the decode format bins
Rev H, February 2002
CiMAX 78xx Technical Reference Manual
8-35
Page 164
Chapter
8
Diagnostics to use X, Y position (settings 4 or 8) and the label tolerance to less than 10 inches, labels on different faces are put in separate bins. Each face of the box is at least 10 inches apart according to the definition of the face stored in the X dimension. Even labels physically located very close together, but on different faces, are easily separated according to this method. Notice that the setting for label tolerance must be less than 10 inches in order for this approach to work. To determine the location of the top and bottom edge of a box, the highest and lowest photoeyes that are blocked will be used. If for some reason (odd shaped box, etc.) there is a photoeye between the highest/lowest photoeyes that is not blocked, this will not affect the determination of the top and bottom of the box. If the PIC board is being used to incorporate additional height sensors into the system, parameter 733 (PIC POSITION) will be used to determine if these height sensors are located above or below the normal I/O sensors. If PIC POSITION is set to 1, the PIC board sensors will be considered to be above the normal I/O sensors. If PIC position is set to 0, they will be below the normal I/O height tree. If only one height sensor is blocked by a box, the bottom of the box will be considered to be the height zone associated with the next lowest height sensor to the one that is presently blocked.
CIX Troubleshooting DSP debugging tools (playback, record, dumping of CIX memory) allow capturing of static data (both stitching and non-stitching), and dynamic stitching data for later playback and analysis. For example, if you were having trouble stitching a label (and you've investigated all other problem possibilities, such as analog and optical settings, and CIX parameters), you could record a stitching pass through the label. You could save the recorded data to a file for later analysis by engineering. You could also play back the recorded data, while changing CIX parameters, to observe the effects, using identical data each time. Using the segment buffer usage dump, and general knowledge of how stitching works, you could analyze what's happening and change parameters to make it work better. These debugging tools are used with several products and the nomenclature is generic, not customized for a scanner, and contains references that do not necessarily apply to all scanners. In particular, single-line scanners use only one DSP numbered 0. X-pattern scanners may use two to eight DSPs numbered 0-7.
8-36
CiMAX 78xx Technical Reference Manual
Rev H, February 2002
Page 165
CIX Troubleshooting
Diagnostics
Host Commands Host commands are provided to perform the record, playback and data display operations, as outlined in Table 8–6. TABLE 8–6. Host Commands
Command
Parameters
Description
~CIXn~ n = DSP number
Displays DSP current snapshot of segment buffer usage.
~RECn xx~ n = DSP numberxx = minimum number of features (bars and spaces) in each scan
Tells DSP to record data. The recorded data is then copied to the 68332 processor using DMA (direct memory access), and stored in a buffer.
~RECS~
Sends the data in the 68332 buffer to a port. The data is formatted as commands for downloading later.
~RBUF…~
… = offset into buffer and 16 words of data.
~PLAYR~
Fills the buffer in the 68332 with the data (...) in the command string. This command is meant to be generated by the RECS command. Resets the buffer pointers to the start of the buffer.
~PLAYn xx~ n = DSP numberxx = number of scans
The 68332 direct memory accesses xx scans to the DSP. If xx is 00, the 68332 direct memory accesses the entire buffer.
~PDMPxxxx~ xxxx = scan number
Dumps the scan number, xxxx, to the port.
Recording To use the record function, set parameter 079 CIX ENABLE to 3, and exit the setup menu. The scanner will reboot and display the DSP code version (CIDSP-2181 Stitching Recorder Ver X.X). The scanner will no longer decode bar codes. Instead, it will wait for a ~RECn xx~ command to begin recording, where: n is the DSP number xx is the minimum number of features (bars and spaces) in each scan Note: The recording process uses a large block of memory to save the DSP data. This data will overwrite any user C program that has been loaded. If there are fewer features than xx, no data will be recorded for that scan. This allows filtering out scans that have some stray data but no actual bar code segment. A typical value for xx may be 10. Parameters 076 and 077 (min/max X ticks) are also used to filter the data. The other DSP parameters are NOT used during the record process, including 073 DISCARD RATE. In practice, you will want to start recording just before the label of interest passes through the particular DSP's scan line. Recording will continue until the DSP's memory is filled. When recording, decimal points will be output to indicate that recording is in progress.
Rev H, February 2002
CiMAX 78xx Technical Reference Manual
8
8-37
Page 166
Chapter
8
Diagnostics
There is room for 16K of features (bars and spaces). Depending on the scan rate, conveyor speed and noise level, this may take several seconds or only a fraction of a second. For example, if a ~REC0 10~ is sent, DSP 0 will start to record data for scans in which there are at least 10 edges. The message Warning: User program will be overwritten. is sent out of the Setup port, and recording begins. When the DSP's memory is filled, the message Recorder Done is sent. You will want to be sure that a complete pass through the label has been recorded, by observing how fast the memory is filled. Typically, several seconds of data will be recorded. You may now play back the data (until the data is cleared), or you can extract the data and save it to a file. Extracting the data is done by sending a ~RECS~ command. The data sent will look approximately like the following: ~RBUF 0000 - 0000 0057 002F 000E 006B 0027 0059 002B 0018 0029 005F 0027 001A 0067 0027 001A ~ ~RBUF 0001 - 0030 0011 0063 0029 001E 0022 005E 0068 0065 0024 001D 0025 001D 0027 0061 0027 ~ … etc. In practice, you will log this to file using a terminal emulation program running in a PC. It is a large amount of data, and will take some time to upload. The data is in a format that can be directly used to download into a scanner to set up a playback.
Playback The Playback program works in conjunction with the recorder to provide a means for stepping through (playing back) stitched labels. It uses all of the same parameters as the normal stitching program. In fact, it works basically the same as the normal stitching program except that it can process (play) segments one at a time. This allows inspecting the segment usage while stepping through a label. Parameters can be changed and the label can then be played again to see if there is an improvement. In the current version, you must set parameter 073 DISCARD RATE to 0 before playing back. To play back data, first change parameter 079 CIX ENABLE to 4, and exit the setup menu. The scanner will reboot, disable all presence options and display: CIDSP-Playback for stitched labels. Ver: X.X If you have just recorded data on this scanner, the data will still be in memory, and you may play back this data into a DSP. You may also, at this point, download previously recorded data, using the ~RBUF…~ strings that were extracted and saved to a file in a PC. Send the file from the PC using the terminal emulation program. As listed in Table 8–6, host commands are used to control the playback. Sending ~playn 00~, where n is the DSP number, will play to the end of the recorded data. If the DSP decodes the data, it will be sent to the 68332 processor and presented as usual. Sending ~playr~ will reset the playback to the start of the data. Sending ~pdmpxxxx~ will dump the scan indicated by xxxx to the Setup port for display. This is a display of the actual bars and spaces in the scan. This might be useful to look at how noisy the bardata is, bar/space ratios, min/max bardata, etc.
8-38
CiMAX 78xx Technical Reference Manual
Rev H, February 2002
Page 167
Sample data dumped in response to a ~pdmp0003~ command may display: Data for Segment - 3 1708 0090 002F 0055 0044 0007 001C 00AD 00E0 009C 008F 008E 008D 0045 00D5 0008 0013 0037 008F 0056 0043 0096 0130 004E 004D 004C 004F 0131 00E9 0044 3D50 01F0 0C24 0180 The first number is the duration of the first space, in number of clock ticks (in hex). The second number is the duration of the first bar, followed by the next bar, etc. In practice, you can scan the data and easily find the bardata surrounded by quiet zones. You can play just a portion of the data by sending ~playn xx~, where: n is the DSP xx is the number of scans to play back. Following this by another ~playn xx~ will play the next xx scans. In this way, you can progress through the data, observing the decoding process as you go. For example, sending a ~play0 10~ command will cause the following response: Playback Start Number of Segments Processed:10, Buffer Segment Position:10 To display a snapshot of the segment usage at any point, use the ~CIXn~ command, where n is the DSP number. This will dump the current segment buffers (i.e., saved pieces of barcode) in an easily readable format. Sg Va Strt End 1st Last Fami 0 0 13D2 0B81 0000 0000 3E5A Data - 37 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1 1 92BA 8886 0001 0001 3E5E Data - 37 39 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Up to the number of segment buffers as set by parameter 065. The columns are interpreted as: •
Sg - The segment number, in decimal notation
•
Va - The segment valid value, in decimal notation. A new segment starts with a value equal to the segment_life. It decrements each scan.
•
Strt - The starting location of the label (the time from the start of the scan in hex notation)
•
End - The end position of the label data for this segment, in hex notation.
•
1st - The scan number of the first data segment in this segment, in decimal notation
•
Last - The scan number of the last data segment in this segment, in decimal notation.
•
Fami - A pointer to the family record for this segment, in hex notation.
Rev H, February 2002
CiMAX 78xx Technical Reference Manual
8 Diagnostics
CIX Troubleshooting
8-39
Page 168
Chapter
8
Diagnostics
The remainder of the data is the decoded segment data, in hex notation. It may be filled from the front or from the rear. This is an indication of the direction in which the label is being decoded. For example, the first three characters of a label 795… (37h = ASCII 7, 39h = ASCII 9, 35h = ASCII 5). Refer to Table B–1, “ASCII Equivalence Table,” on page B-1. Code 128 can be more difficult to interpret when subset C is used. If a user program is inadvertently loaded during playback, playback will be disabled and an error message will be displayed.
8-40
CiMAX 78xx Technical Reference Manual
Rev H, February 2002