The text of a manual · part 4 of 14
BL-180 Series User's Manual, CCD Bar Code Reader: Chapter 2 Functions for Reading Operation, pages 17 to 24
Pages 17 to 24 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 17
Chapter 2 Functions for Reading Operation
Page 18
2.1 Read Operation
2.1 Read Operation 2.1.1 Scanning method There are two methods for triggering the BL-180 to read bar codes; the “Level signal” method and the “One-shot signal” method. The example given for these two methods uses the “single label read mode” (see page 12), which reads one bar code while trigger input turns on once, and uses the “after read” as the data-send mode (see page 11).
Level signal trigger When the trigger input turns on, LED emission begins and the the unit begins reading. The LED turns off after reaching the specified decode count. Then, the unit sends the readout data. <Succeed to read> Trigger input
<Fail to read> *1
Bar code LED beams
*2
Communication time
*3
OK/NG output
OK/NG *4
NG
*5
1. Set trigger input so that it stays on long enough for the LED beam to cover the entire bar code. 2. After the trigger input exceeds the preset input time, the LED begins to emit. 3. The communication time can be obtained from the following expression: Data bits + (1: If parity is used) + Start/stop bit Baud rate
X (code length of data to be sent + Header/ number of characters in delimeter)
4. The length of time that the OK/NG output is on can be changed to between 10 ms and 2.55 s. 5. The OK/NG output turns on 5 ms after the data has been read (or trigger input turns off in case of reading failure).
10
Page 19
2.1 Read Operation One-shot signal trigger The unit detects the rising edge of the trigger input and starts reading bar codes for the preset input time. The LED beam turns off after reaching the specified decode count and the unit sends the readout data. The remaining actions are the same as those for level signal trigger. Trigger input
<Succeed to read> *1
<Fail to read>
Bar code Preset input time
Preset input time LED beams Communication time
OK/NG output
OK/NG
NG
1. After the trigger input exceeds the preset input times, the LED begins to emit. Note
• The BL-180 can read up to 4 types of bar codes without changing the bar code type setting (see page 32). • For general operation, see "Level signal trigger" • Choose “One-shot signal trigger” when the trigger input signal is very short or you want to set the input time.
2.1.2 Data-send mode In the single label read mode only, you can select from the two data send modes (OK/NG output on trigger) described below: In the multi-label read mode, you can only select the “send after reading” mode. Send after read The unit outputs the communication and OK/NG signals after a sucessful read (trigger output turns on as many times as the preset decode count). This is the same operation as in the time chart described in “1.1 Scanning method”. Normally, this is the method you should use. Send at trigger input The unit outputs the communication and OK/NG signal when the trigger input turns off (or the preset input time has passed if one-shot signal trigger is selected). <Fail to read>
<Succeed to read> Trigger input
Bar code LED beams Communication time
OK/NG output
OK/NG
NG
11
Page 20
2.2 Read modes
2.2 Read modes The BL-180 provides 4 types of read modes.
2.2.1 Single label read mode This mode allows the unit to read one bar code during one trigger input signal. The operation and timing chart are described on page 10.
2.2.2 Multi-label read mode 1 (Multi 1) This mode allows the unit to read several bar codes printed on one label as shown below during one trigger input signal. The unit outputs the readout data sequentially.
Multi-label read mode 1 operation <Succeed to read>
<Fail to read>
Trigger input Repeat reading time Bar code LED beams Communication time OK/NG output
OK
OK
OK
OK
NG
In the multi-label read mode 1, the unit reads several bar codes continuously, and outputs them sequentially as it reads while LED beam remains on and trigger input turns on after bar codes have been read (or during the preset input time if oneshot signal trigger is selected). To prevent the unit from reading the same bar code twice, the time for one bar code to pass across the LED beam’s field and read, plus the repeat reading time must be set (100 ms to 25.5 s). During the repeat reading time, the unit cannot read the same bar code repeatedly, but can read different bar codes. A reading error is issued only when the unit cannot read any bar code while the trigger input is on. For OK/NG output, “OK” turns on every time the unit reads a bar code and “NG” turns on if the unit fails to read a bar code. (Comparison to the preset data is not performed.)
12
Page 21
2.2 Read modes 2.2.3 Multi-label read mode 2 (Multi 2) As with multi 1 mode, this mode allows the unit to read several bar codes continuously while the trigger input is on. (The number of bar codes that can be read depends on the buffer capacity. See page 48.) The difference between the two modes is that multi 2 modesends all the readout data at one time after the trigger input turns off.
Multi-label read mode 2 operation <Succeed to read> Trigger input
<Fail to read>
Repeat reading time
Bar code
1 2 3 4 5 LED beams Communication time 12345 OK
OK/NG output
NG
Multi 2 mode allows the unit to read several bar codes while the trigger input is on (or during the preset input time if one-shot signal trigger is selected) and sends all the readout data at one time after the trigger input turns off (or after the preset input time is expired if one-shot signal trigger is selected). To prevent the unit from reading the same bar code twice, the time for one bar code to pass across the LED light’s field and read, plus the repeat reading time must be set. During the repeat reading time, the unit cannot read the same bar code repeatedly, but can read different bar codes. For OK/NG output, after trigger input turns off, “OK” turns on if the unit reads at least one bar code and “NG” turns on if the unit fails to read a bar code. (Comparison to the preset data is not performed.)
Reading data format Header
1st data
,
2nd data
,
3rd data
,
4th data
,
Delimeter
Each data packet is separated by a comma (, : 2CH) (intermediate delimiter). The unit sends as many data packets the number of bar codes read. See page 46 for “header string” and “delimeter”.
2.2.4 Multi-label read mode 3 (Multi 3) As described in multi-label read modes 1 and 2, this mode also allows the unit to read several bar codes (up to 4 codes) while the trigger input is on. The unit sends the readout data at one time according to a specified sequence after the trigger input turns off. When up to 4 codes are in the LED beam’s field, the unit can simultaneously reads all of them.
13
Page 22
2.2 Read modes Operation of multi-label read mode 3 This mode allows the unit to continuously read each one of 4 bar code types “Code 1”, “Code 2”, “Code 3”, and “Code 4” as specified in the “code setup” of the setup software (see page 32). If 3 types are specified in the “code setup”, the unit reads 3 bar codes (each of 3 types). If 2 types are specified, the unit reads 2 bar codes. The following time chart is given. Trigger input
Bar Code
Code 1 Code 2 Code 3 Code 4
LED beams
Code 4
Code 3
Code 2
Code 1
Communication time
OK
OK/NG output
NG
The above example chart is with all four codes specified in the “code setup” of the setup software. • The bar code reading sequence is not fixed. • The unit communicates the readout data in the order of Code 1 to Code 4. After the trigger input turns off, the unit sends all the data at one time. • For OK/NG output, “OK” turns on if the unit reads all the specified Codes 1 to 4 and “NG” turns on if the unit fails to read at least one bar code. (Comparison to the preset data is not performed.)
Reading data format Header
Data read from Code 1
,
Data read from Code 2
,
Data read from Code 3
,
Data read from Code 4
,
Delimeter
• Each data packet is separated by a comma (, : 2CH) (intermediate delimiter). • If an read error occurs on any one of Codes 1 to 4, or the corresponding bar code does not exist, “ERROR” (see page 49 for the reading error codes), instead of the read data is sent. • See page 48 for “header string” and “delimeter”. Example
Suppose that the following codes are specified: Code 1 --- CODE39, 10 digits Code 2 --- EAN/UPC, 13 digits Code 3 --- None Code 4 --- CODE39, 8 digits When the unit successfully reads all 3 types of codes: Header
ABCDE12345
,
4901234567894
,
KEYENCE
Delimeter
KEYENCE
Delimeter
When the unit fails to read Code 1 (CODE39, 10 digits) Header
ERROR
,
4901234567894
,
When the unit fails to read Code 1 (CODE39, 10 digits) and Code 4 (CODE39, 8 digits) Header
ERROR
,
4901234567894
,
ERROR
Delimeter
When the same type of data having the same digits is specified to all Codes 1 to 4, the unit sends the data in the reading order. 14
Page 23
2.2 Read modes Example Suppose that the following codes are specified: Code 1 --- CODE39, 7 digits Code 2 --- CODE39, 7 digits Code 3 --- CODE39, 7 digits Code 4 --- CODE39, 7 digits Header
Note
ABCD123
,
XYZ3333
,
1234567
,
KEYENCE
,
Delimeter
The unit cannot read the bar code having the same content twice while trigger input turns on once.
15
Page 24
2.3 Label orientation mode
2.3 Label orientation mode As shown below, this mode allows the unit to read bar codes only in the specified orientation when bar code labels are moving both in the forward and reverse orientations. Forward orientation Reverse orientation 4 9000000 BL-180
OK/NG STABILITY
4 9000000
Normally, the unit can read bar codes regardless of the orientation. <Specified orientation>
<Non-specified orientation>
Trigger input Bar code LED beams Communication time OK/NG output
OK/NG
NG
An reading error is issued when the unit reads a bar code label running in the orientation which is not specified. The above chart applies to the single label read mode. You can also use this mode together with the desired multi-label read mode. However, in any case, the unit reads bar codes running in the specified orientation only. You can specify the orientation individually for Codes 1 to 4, such as specifying “forward orientation” for Code 1, and “reverse orientation” for Code 2.
16