The text of a manual · part 5 of 14
BL-180 Series User's Manual, CCD Bar Code Reader: Chapter 2 Functions for Reading Operation, pages 25 to 32
Pages 25 to 32 of 109, from BL-180 Series User's Manual, CCD Bar Code Reader
The original document is the PDF (568 KB). 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 Keyence BL-180 and Keyence BL-185
Page 25
2.4 Test Mode
2.4 Test Mode Test mode can be used for the bar code reading test. Because trigger input is not required, this mode allows you to perform a reading test easily. You can select one of the following 3 methods to enter the test mode. Send the command Enter test mode by sending the serial command for the test mode (TEST1, TEST2). Commands should be entered in all uppercase characters. Turning on trigger input You can use the BL-180 to switch to test mode by turning on the trigger input (see page 35). If you select this method to enter the test mode, trigger input is disabled to ensure normal operation. Turning on power supply You can set the BL-180 to enter test mode by turning on the power supply (see page 37). Note
When you try to enter the test mode by turning on trigger input, you cannot use the serial command to enter the test mode. The following 2 types of test modes are available:
Reading rate check mode The unit scans a bar code100 times and analyzes how many times it can decode the scanned data (reading rate). This mode is useful in the following cases: • When adjusting the mounting distance and angle • When verifying the reading stability of the bar code to be used • The analyzed result will be output anytime (every 100 scans) using the following format: Delimiter Readout data
:
m
% m = 0 to 100 (zero-suppressed)
• Although an OK/NG signal is not output, the OK/NG LED lights (see page 19).
Tact check mode In this test mode, the unit counts how many scans can be decoded (the decode count) while reading one bar code. This mode is useful when testing which line speed can be expected when actually implementing the BL-180 system on the line. • The analyzed data is output using the following format 0.2 seconds after the bar code has passed the LED beam’s field. Delimiter Readout data
:
m m = 1 to 999 (zero-suppressed)
• The unit continues to read a bar code while the code is in the LED beam’s field and does not output the result. If the LED beam does not detect a bar code for 0.2 seconds, the unit stops scanning and outputs the result. • If the unit reads the same bar code twice within the 0.2 seconds, the unit cannot separate the bar codes and will add to the read count. However, the unit can continuously reads different bar codes within the 0.2 seconds by recognizing the delimiter.
17
Page 26
2.4 Test Mode • The read count can be up to 9999. • Although an OK/NG signal is not output, the OK/NG LED lights (see page 19). Note
When the unit is running in test mode, the LED beam remains on, which can shorten the LED’s service life. Select the test mode only when you need to perform a test read. Avoid long emission times. When using the “additional information” (see page 21 to 22) in the test mode, the selected data is added in the same manner as in the normal operation mode. However, only when selecting the reading rate check mode, the decode count and scan count are not added to the analyzed results.
18
Page 27
2.5 STABILITY LEDs
2.5 STABILITY LEDs STABILITY LEDs allows you to easily check reading stability. STABILITY LEDs light only when the test mode gets started or the decode count adding function (see P. 34) is used.
Indication of reading stability When reading rate check mode is selected STABILITY LEDs light according to the reading rate shown in the table below. Although, in the test mode, the unit does not output an OK/NG singnal, the OK/NG LED lights as below. (Comparison to the preset data is not performed.) Reading rate
STABILITY LED
OK/NG LED
80 to 100% 50 to 79% 20 to 49% 1 to 19% 0%
Green Orange Red, - - - Green Green Green Green Red
When tact check mode is selected STABILITY LEDs light according to the scan count (decode count), which indicates the number of successful reads, as shown in the table below. Although, in the test mode, the unit does not output an OK/NG signal, OK/NG LED lights as below. (Comparison to the preset data is not performed.) Decode count
STABILITY LED
OK/NG LED
50 or more 10 to 49 5 to 9
Green Orange Red
1 to 4, - 0, - Green (decode counts are equal to or greater than the preset match count) Red (decode counts are less than the preset match count) Red
When using the decode count adding function STABILITY LEDs light as shown in the table below according to the decode count. OK/NG output (OK/NG LED) turns ON/OFF based on the result of comparison to the preset data. Decode count 50 or more 10 to 49 5 to 9 4 or less
CAUTION
STABILITY LED Green Orange Red, - When you do not use the decode count adding function or use the multi-label read mode 3, STABILITY LEDs do not light.
19
Page 28
2.6 Preset Function (Compare with:)
2.6 Preset Function (Compare with:) 2.6.1 What is the preset function? The BL-180 can store one bar codeas preset data. It compares the preset data to the bar code data actually read and outputs an OK/NG signal to whether there is a match. Using the BL-180 preset function, you can prevent the wrong products from entering the line without using a PC. If no preset data is registered, the unit outputs OK when it successfully reads a bar code and NG when it fails to read a bar code. • See page 10 to 16 for output timing. • Use the setup software and serial command to register the preset data (see page 39 and page 59). Note
• The bar code actually read can be compared to the preset data only in the single label read mode. • See page 70 if you want to use CODE128.
2.6.2 Wildcard symbols (“!” and “?”) Using “!” and “?” in the preset data allows for flexible settings. ?: Does not define numeric values (characters) of certain digit(s) of the bar code. !: Ignores numeric values and symbols within the dot box and recognizes the bar codes as the same group.
4912 3 4 5 6 4912 5 2 5 6 4912 AB 5 6
When using “?” data as “4912??56”, 2 digits positioned in “??” can contain any numeric values (or characters), expanding the allowable range. Identifies all the bar codes to be OK as long as the beginning or ending strings match.
Setting examples
4912 3 4 5 6 4912 C 4912
When using “!” as “4912!”, any bar code which begins with “4912” will be OK. When using “!” as “!4912”, any bar code which ends with “4912” will be OK.
1. “ABC?”
ABCD (OK),
ABC3 (OK),
ABC (NG),
ABCDE (NG)
2. “ABC!”
ABCD (OK),
ABC3 (OK),
ABC (OK),
ABCDE (OK),
AB (NB)
ABBDE (NG),
ADE (NG)
3. “?????” Any 5-digit bar code will be OK.
Note
4. “!CDE”
ABCDE (OK),
3CDE (OK),
CDE (OK),
5. “A!E”
ABCDE (OK),
A3CE (OK),
ABCD (NG), AE (OK)
You can use “!” only once in the setting. If you do not register preset data, “!” is automatically registered. Therefore, when the unit sucessfully reads a bar code, “OK” is output; when the unit fails to read, “NG” is output. You cannot use the “*” character as a wild card symbol with the BL series.
20
Page 29
2.7 Additional Information
2.7 Additional Information When sending the bar code data, you can add the following data to the readout data.
Additional information types Decode match count add function Adds the number of successful scans during one bar code reading (decode count) to the end of the readout data (up to 9999 count). However, this decode count is never less than the preset decoding match count. • This function can be used to check reading stability and code label quality. Delimiter
:
Readout data d d = [Decoding match count] to 9999: Decode count
The value is zero-suppressed.
When using this function, output turns on at a different time from normal operation. • In single label read mode, output turns on after one bar code has been read (after trigger input turns off). Even if you set the data-send to “after read”, the data is forced sent after trigger input turns off. • In multi-label read mode 1, a bar code passes across the LED beam’s field, after repeat read time, and is finally output. • In multi-label read mode 2 or 3, operation is the same as when you do not use the decode match count adding function. Note
When you use the decode count adding function, STABILITY LEDs light to show reading stability (see P. 31). Scan count add function (valid only when using the read count add function) Adds the number of scans, including when no bar code exists, to the end of the decode count (up to 9999). Delimiters
:
Readout data d
/ s m = 1 to 999 (zero-suppressed) The value is zero-suppressed.
Code type add function Adds the bar code type before the readout data . Delimiter t t=0 1 2 3 4 5 6 7
:
Readout data :Code39 :ITF :Industrial 2 of 5 :Codabar :EAN/UPC (A•E) :CODE 128 :COOP 2 of 5 :Read error
21
Page 30
2.7 Additional Information label orientation add function Adds the orientation of bar code travel before the readout data. Delimiter
:
r r =F R
Readout data :Forward :Reverse
If an read error occurs, this information is not added. Forward orientation Reverse orientation 4 9000000 BL-180
OK/NG STABILITY
4 9000000
Order of additional information If you select to include all the additional information functions, they appear in the following order: Code type
Note
22
:
label orientation
:
Readout data
:
Decode match count
:
Scan count
You can change the delimiter as desired (one character), except the delimiter of the scan count.
Page 31
2.8 Max. Code Length (Designated Digit ) Output Function
2.8 Max. Code Length (Designated Digit ) Output Function This function allows you to output the designated digit(s) as desired from the readout bar code data. For example, from bar code data “49123456”, you can extract “1234” for output.
Setting digits to be output Set the digits to be output as shown below. Individually set the digits for codes 1 to 4. 1. Set the direction to designate. Set from which direction you want to start counting. Forward
Reverse
4 9 1 2 3 4 5 6 2. Set from which digit you want to begin designation (destination start digit). 5th digit by counting forward
4 9 1 2 3 4 5 6 3. Set how many digits you want to designate for output starting from the designation start digit in (2) (designation effective digits). 3 digits starting from 5th digit by counting forward
4 9 1 2 3 4 5 6
Example
Designating and outputting “34” from bar codes “158423421” and “58423421”
1 5 8 4 2 3 4 2 1
5 8 4 2 3 4 2 1
Designate 2 digits starting from 3rd digit by counting reversely. Note
• Regardless of the designated direction, the data is output forward in the communication application. • When the bar code group includes those having different digits, take special care on the designated direction when setting the digits to be output. • When comparing to the preset data, all the digits of the bar code are used.
23
Page 32
2.8 Max. Code Length (Designated Digit ) Output Function
24