The text of a manual · part 19 of 23
CiMAX 75xxA/76xx Scanner Technical Reference Manual, pages 163 to 172
Pages 163 to 172 of 206
The original document is the PDF (3.4 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 7500, RVSI CiMatrix 7555A, Sick 7555A, RVSI CiMatrix 7600, RVSI CiMatrix 7655, Siemens 7500, Siemens 7555A, Sick 7600, and 2 more models
Page 163
When parameter 002 OPMODE is set to 7, Polling Mode D information will also be reported, as shown below: Polling Mode D Communication Stats Slave Request Response Consecutive No Responses 1 3 3 0 2 3 3 0 3 3 0 3 •
Slave - Polling Mode D slave number
•
Request - Number of times that data was solicited from a slave
•
Response - Number of times that the slave responded
•
Consecutive No Responses - Current number of times that the slave did not respond
The Polling Mode D totals can be cleared by sending ~TOT00~ and will also be cleared when the power is cycled Off and On.
~TOT00~ Clear totals of boxes and no-reads Example Clearing Box Count
NORMMD_RPT Data Reports & Formats When a PC running terminal emulation software is connected to the scanner's Setup port with the scanner in Normal mode, gap-tracking information will be sent to the Setup port with the bar code at the end of presence. The information sent, and the format, depends on the value of parameter 012 NORMMD RPT, as illustrated below.
NORMMD_RPT = 0 Bar code data will be sent just as it is from the Host port.
NORMMD_RPT = 1 When set to 1, and if the hand-held terminal is selected via the 000 TERM DEVICE parameter, then cursor positioning is used to place the label on the first line, nothing on the second line, current inputs and outputs on the third line, and the status flags, equivalent to the status decimal points in the 242i, on the fourth line. This aids the hand-held unit become the display for the CiMAX 7800.
NORMMD_RPT = 2 With presence and gap tracking enabled, the barcode will be sent on line 1, the total box count and no read count will be sent on line 2 and the length and height will be sent on line 3. Example 151F0286706E 9 BOXES, 4 NO READS, 1 IN ZONE LEN 694,HT 2
Rev F, February 2002
CiMAX 75xxA/76xx Scanner Technical Reference Manual
8-29
8 Diagnostics
Gap Tracking Diagnostics
Page 164
Chapter
8
Diagnostics
NORMMD_RPT = 3 With gap tracking enabled, gap tracking-related data will be sent on the two lines following the barcode. where: pcnt - Number of objects in zone phead - Pointer to a look-up table (SICK Auto Ident, Inc. use) ptail - Pointer to a look-up table (SICK Auto Ident, Inc. use) dsp - Number of the DSP that read bar code rel - Release coordinate (SICK Auto Ident, Inc. use) len - Length of the box (x 0.001") ht - Number of height sensors blocked delta iz - Time in zone, in mils/tic gap - Distance between this box and the last (x 0.001"). Example 151F0286706E pcnt:1,phead:3,ptail:3,dsp:0,rel:3796749 len:22770,ht:2,delta iz:176814,gap:176814 151F0286708Q pcnt:2,phead:5,ptail:4,dsp:0,rel:3974817 len:4290,ht:0,delta iz:196548,gap:173778 Missing Outzone pcnt:1,phead:5,ptail:5,dsp:0,rel:3989205 len:4752,ht:3,delta iz:13926,gap:9636 You may also see the message: MISSING OUTZONE This message reports that a phantom box has been detected. A missing outzone message will be generated when there is an inzone signal without a corresponding outzone signal. The message is sent after enough tachometer ticks have occurred for the box to have moved 1 ½ times the length of the zone. This is a timeout length for each box. An unexpected outzone transition message will be sent as soon as an outzone signal occurs without a corresponding inzone, as: UNEXPECTED OUTZONE TRANSITION
8-30
CiMAX 75xxA/76xx Scanner Technical Reference Manual
Rev F, February 2002
Page 165
Gap Tracking Diagnostics
Diagnostics
NORMMD_RPT = 4 If gap tracking is enabled, gap tracking/barcode reading data will be sent and will include the following: •
Object - Cumulative number of objects detected
•
Trakcnt - Number of barcodes that fit onto this box
•
No Tracks - Number of barcodes that were off of this box but might still be on another box
•
Truncations - Number of barcodes that were outside of the scan zone.
Example 151F0286706E Object: 0 Trakcnt:27 NoTracks:15 Truncations :1 151F0286708Q Object: 1 Trakcnt:11 NoTracks:33 Truncations :29 151F0286706E Object: 3 Trakcnt:34 NoTracks:13 Truncations :4 151F0286708Q Object: 4 Trakcnt:12 NoTracks:24 Truncations :29
Sources of Error in Gap Tracking Under control of application engineer/installer/owner: 1.
Large mils/tic settings.
2.
Inadequate resolution of box height (number of height sensors).
3.
Accuracy of all user-entered parameters.
Normal Mode Reporting 7 With Normal Mode Reporting set to 7 (and 700 TRACKING set to 2 through 7), the 7800 reports each time a label is read and attempted to be put on a box. There are several uses for this test. The first thing that it does is provide a way of knowing when a label is read, but determined to not belong on a box (an indication that the box is not where the 7800 thinks it is). Some sample reports are shown below. OMNI Box 0, X -4443, Y -3640, Z1 -4067, Age 0 1 32453, Label 777779 Box -8, X -6447, Y 1779, Z1 -4067, Age 0 1 35591, Label 2222224444440000 The box index is shown first. A negative box value indicates the label does not fit on a box (a value of -8 is used to reflect -0). The X and Y coordinates are shown next. The zone 1 value indicates the leading edge distance from the center of the scan zone. The age of the label, DSP (mask) and DSP timestamp are shown next. Finally, the label is shown.
Rev F, February 2002
CiMAX 75xxA/76xx Scanner Technical Reference Manual
8
8-31
Page 166
Chapter
8
Diagnostics
7800 Box 1 1, Face 20000, Z1 4910, Z2 870, Foc 650, Th 81, Lbl 1Z0123456789123456 There are two values shown for Box. Normally they are the same, as in the example above. These indicate the box index. If the box value is negative, this indicates that the label did not fit on any box. The second number in this case would be either a -1 or -2. A value of -2 indicates that the label overlapped two boxes, unable to determine which box the label belongs on. A value of -1 indicates the label does not fit on any box. The next field reports the box face (10,000 = front, 20,000 = top, 30,000 = back, 40,000 = near side, 50,000 = far side). The zone 1 and zone 2 values are given next. These are the leading and trailing edge distance from the center of the zone when the label was read (this gives the relative box position). The focus distance and threshold setting are given next. Finally the label in question is shown. Using NMR 7 with a fixed focus setting and then again with a dynamic focus setting provides an indication of how well the 7800 is tracking boxes. Note: Do not use NMR 7 when statically reading a box. The I/O system will be swamped with report entries. When box is -1 (label does not fit on a box) the face and zone2 values have no meaning.
Position Accuracy Factors There are several factors that influence the accurate tracking of position of a box. These are tabulated below.
Inzone Debounce Time The distance that the box travels in the debounce time skews the location of the box accordingly. This becomes a greater factor at higher conveyor speeds. For example, a 20-millisecond debounce time on a conveyor moving at 500 feet per second results in a 2-inch lag before recognizing the input. This error alone would affect the ability of the 7800 to properly focus when scanning down the rear of a box. The software compensates for this time lag and adjusts the focus point accordingly.
Photoeye Height Tree The spacing of photoeyes on the height tree greatly influence the effective depth of field for a 7800. The box height and thus the 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 7800 depth of field, the effective DOF is reduced accordingly. For example say the 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 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 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 8-32
CiMAX 75xxA/76xx Scanner Technical Reference Manual
Rev F, February 2002
Page 167
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 7800'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 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 7800 case does not necessarily correspond to the scan line angle. It is possible that the scan line is not exactly parallel to the 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 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 7800 read two faces of a box and be able to differentiate labels according to the face of the box. For example a 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 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 a box blocks only one height sensor, 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.
Rev F, February 2002
CiMAX 75xxA/76xx Scanner Technical Reference Manual
8-33
8 Diagnostics
Gap Tracking Diagnostics
Page 168
Chapter
8
Diagnostics
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.
Host Commands Host commands are provided to perform the record, playback and data display operations, as outlined in Table 8–7. TABLE 8–7. 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
8-34
CiMAX 75xxA/76xx Scanner Technical Reference Manual
Rev F, February 2002
Page 169
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. 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.
Rev F, February 2002
CiMAX 75xxA/76xx Scanner Technical Reference Manual
8 Diagnostics
CIX Troubleshooting
8-35
Page 170
Chapter
8
Diagnostics
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–7, 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. 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
8-36
CiMAX 75xxA/76xx Scanner Technical Reference Manual
Rev F, February 2002
Page 171
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.
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.
Rev F, February 2002
CiMAX 75xxA/76xx Scanner Technical Reference Manual
8 Diagnostics
CIX Troubleshooting
8-37
Page 172
Chapter
8-38
8
Diagnostics
CiMAX 75xxA/76xx Scanner Technical Reference Manual
Rev F, February 2002