Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 10 of 12

BL-600 Series User's Manual: Laser Bar Code Reader, pages 91 to 100

Pages 91 to 100 of 112

The original document is the PDF (1.0 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 Keyence BL-600 and Keyence BL-601

Page 91

Appendices ■ Program for the KV Series

2008

0000

0000

DM0100 LDA

Specify the head address of the data memory area.

#0002 DW DM0100

Enter “2” in the data memory flag. (Use sequential processing to process the flag.)

#0001 DW DM0004 #0000 DW DM0004

Enter “0000” for the reading trigger input.

#0003 CMP

2010

Data stored in DM0105 and subsequent areas is processed.

When DM0100 becomes “3”, the specified processing is performed. After processing is completed, enter “2” in DM0100.

#0002 DW DM0100 END ENDH

Appendices

2002

#0100 DW DM0100

161

Page 92

Appendices

Appendix F Troubleshooting If a problem occurs during operation of the BL-600 Series, please check the following troubleshooting list first. If you cannot fix the problem, contact your nearest KEYENCE office or distributor (listed at the end of this manual).

Appendix F.1

Bar codes cannot be read ● Check whether or not the laser is emitted. • If using the power supply unit BL-U1, BL-U2, N-42 or N-48, check the wiring of the power supply unit, the power switch (BL-U1 only), and the wiring of the trigger input terminal. ➮ See pages 16 to 32. •

Check whether or not the laser off command (➮ See page 116.) has been sent to the BL-600 Series. If so, send the resetting laser off command (UNLOCK) to enable laser emission. If a laser off command has been executed, the bottom LED in the STABILITY indicator flashes.

•

If a optional power supply unit is not used, confirm that the supplied power voltage and capacity (5 V DC±5%, 330 mA min.) is correct. Also, check the wiring of the power supply unit and the trigger input terminal. ➮ See pages 33 to 35.

Note: Connecting the power supply in reverse may damage the product. If the BL600 Series does not operate, contact your nearest KEYENCE office or distributor (listed at the end of this manual). ● Check the bar code settings (type, No. of digits, etc.). Check the following parameters using the setup software. • Bar code type, No. of digits. • Setting of the check digit inspection (enabled or disabled) • Setting of the label orientation-specified reading Note: When using CODE39 or Codabar, include the start/stop characters and check digit in the number of digits. ➮ For CODE93, See page 164. ➮ For CODE128, See page 165.

Appendices

● Check the mounting distance and angle of the BL-600 Series. ➮ See page 74.

● Check the bar code quiet zones (margins). A bar code requires the right and left margins to be at least 10 times wider than the narrow bar width. If the bar code margins are too narrow, it may not be read. ➮ See page 74. ● Check the bar code label length. The bar code label length is the lateral length of a bar code including the right and left margins (quiet zones). The readable bar code label length is limited depending on the reading distance. See “Appendix A.2 Reading range characteristics (Typical)” on page 148 to 150. ● Check the printing quality of the bar code. A bar code with blurred sections, defects or stains may not be read correctly. Bar codes printed with dot matrix or ink jet printers are prone to such problems.

162

Page 93

Appendices ● Check whether the transmitter (light source) and the receiver (optical pickup) are clean. If moisture, oil or dust adheres to the transmitter or the receiver, wipe the units using a soft cloth and a mild plastic cleaner. ● Check the environmental conditions. ➮ See pages ii and 72 to 80 for details.

Appendix F.2

Reading rate check mode is not 100% Check the previous item “Bar codes cannot be read”. Note 1: The reading rate indicates the number of acceptable readings during 100 scans of a bar code. If a bar code has spots or voids, the reading rate is reduced. Note 2: Even If the reading rate is 20%, two readings are acceptable during 10 scans. Therefore, if the decoding match count number is set to “2”, the bar code can be read. The read operation is not affected if the scan time for the bar code is set long enough.

Appendix F.3

The setting data cannot be sent/received using the setup software Is the BL-600 set to “setting data send/receive waiting status”? Press the TEST switch for 8 seconds to enter setting data send/receive waiting status. (The 1st, 3rd and 5th STABILITY LEDs from the top flash.) The BL-600 setup software [[Com port]] must be set as below: • Baud rate: 9600 bit/s • Data length: 7 bits • Parity: Even • Stop bits: 1 bit ● Does the RS-232C pin assignment of the BL-600 (BL-U1 or BL-U2) match that of the PC? Are the cables firmly attached?

● Is RS-232C used for the interface of the BL-U1 DIP switches? ➮ See page 9.

Appendix F.4

Cannot communicate successfully when using the PLC link ➮ For details, see page 130.

163

Appendices

● Is power supplied to the BL-600, BL-U1 or BL-U2?

Page 94

Appendices

Appendix G CODE93 Specifications ■ Setting of No. of Digits • The start/stop character and check digit are not included in the number of digits. ■ Data Transmission • The start/stop characters and check digit cannot be sent. • Control codes are sent. Note: Do not use CODE93 with control codes when using a multi-drop link. Communication errors may occur. ■ Registration of Preset Data • When ! or ? is registered as preset data, it functions as the Preset “!” “?” Function, as described on page 45. Since CODE93 can represent all ASCII codes as bar code data, ! or ? can also be represented as bar code data. To register ! or ? as preset data, send \! or \? to differentiate them from the preset “!” “?” function. To register \ as preset data, send \\.

Example To register 123 \!?ABC as preset data, send the following command. ➮ See page 101.

WP68123 \\\!\?ABC<CR>

Appendices

•

164

Control codes (data in 00h to 2Fh of the ASCII code table, such as <CR> and <STX>), the start/stop characters, and the check digit cannot be registered as preset data. (Data comparison is also impossible.)

Page 95

Appendices

Appendix H CODE128 Specifications ■ Setting No. of Digits • The start/stop character and check digit are not included in the number of digits. •

FNC1 to 4 (Function codes), SHIFT, and CODE-A to -C should not be added to the number of digits.

•

The number of digits setting range varies depending on the start character (CODE-A to -C). CODE-A, B: 1 to 32 CODE-C: 1 to 64 One digit of CODE-A or CODE-B represents two digits of CODE-C.

■ Data Transmission • The start/stop character and check digit cannot be sent. •

FNC1 to 4 (Function codes), SHIFT, and CODE-A to -C cannot be sent.

•

Control codes are sent.

Note: Do not use CODE128 with control codes when you build a multidrop link. Communication errors may occur. ■ Registration of Preset Data • The number of characters that can be registered as preset data is up to 32 digits for CODE-A or CODE-B, and up to 64 digits for CODE-C, as described above. •

When ! or ? is registered as preset data, it functions as the Preset “!” “?” Function, as described on page 18. Since CODE128 can represent all ASCII codes as bar code data, ! or ? can also be represented as bar code data. To register ! or ? as preset data, send \! or \? to differentiate it from the Preset “!” “?” function. To register \ as preset data, send \\.

Appendices

Example To register 123 \!?ABC as preset data, send the following command. ➮ See page 101.

WP68123 \\\!\?ABC <CR> •

Control codes (data in 00h to 2Fh of the ASCII code table, such as <CR> and <STX>), start/stop character, check digit, FNC1 to 4 (function codes), SHIFT or CODE-A to-C cannot be registered as preset data. (Data comparison is also impossible.)

165

Page 96

Appendices ■ EAN-128 reading specifications Start code

FNC1

Data 1 Fixed length

Data 2 Variable length

EAN-128 Start pattern

FNC1

Data 3 Variable length

Check digit

Stop code

Separator

Appendices

The BL-600 Series operates as follows if “EAN-128 support” is selected using the setup software. ➮ See page 52.

166

•

The header of the EAN-128 data is always the combination of a “Start code A to C” and “FNC1” (Start pattern). A reading error occurs when another item is used.

•

“FNC1” (separator) is used at the end of each set of data that has a variable length to separate the data. “FNC1” is replaced with character [GS] (“1Dh” of ASCII code) for output.

Page 97

Appendices

Checksum Calculation Method You can add a checksum to transmitted data. (The checksum cannot be added to a command or a response to a command.) Adding a checksum enables incorrect data translation to be detected in the RS232C communication. If the checksum does not match when the PASS/RTRY or ACK/NAK protocol is used, modify the program so that the “Request to resend” (RTRY or <NAK>) command is sent to the BL-600. To set the checksum, use the “PROTOCOL SETUP” screen of the BL-600 setup software. *

The checksum cannot be added when the PLC link is used.

■ Checksum calculation range and the position to add checksum The checksum calculation is performed with all characters except for the header and delimiter. The checksum is added immediately before the delimiter. CC = Checksum (2 ASCII code characters) •

Data format

Heade Read Data

•

Delimiter

When using the data addition function

Header

•

CC

Code Type

Label

: Orientation : Read Data

:

Decode Count

/ Scan Count CC Delimiter

Test mode

Header

Read Data

:

Reading Rate or Decode Count

CC

Delimiter

Appendices

Appendix I

167

Page 98

Appendices ■ Checksum calculation method Calculate the checksum (CC) using the read data of “ABC123” as an example. Convert each character into the ASCII code as shown below, and express the result as 8-bit binary numbers. Calculate the “Exclusive-OR” of the binary numbers of each bit. Header ABC123

CC

Delimiter

ASCII code

Bit

A ➔ 41h ➔ 0100

0001

B ➔ 42h ➔ 0100

0010

C ➔ 43h ➔ 0100

0011

1 ➔ 31h ➔ 0011

0001

2 ➔ 32h ➔ 0011

0010

3 ➔ 33h ➔ 0011

0011

+

0111

0000

70h

* Based on the “Exclusive OR” logic, when an odd number of “1”s are present, the calculation result is “1”, and when an even number of “1”s are present, the calculation result is “0”.

Convert the calculated hexadecimal number into an ASCII code in two digits. The result obtained is the checksum. Therefore, the checksum for the above example is “CC =70 (37h 30h).

Example Header ERROR

CC

Header KEYENCE :

CC=58

Delimiter

100 %

CC Delimiter

CC=74

Reference 1: Exclusive OR calculation formula Calculate the numbers of each bit, referring to the following formula: 0+0=0 0+1=1 1+0=1 1+1=0 * + : Operator of Exclusive OR

Appendices

Reference 2: Conversion from hexadecimal number into binary number To convert ASCII codes into binary numbers, refer to the following table. Hexadecimal number Binary number Hexadecimal number Binary number

168

0

1

2

3

4

5

6

7

0000 0001 0010 0011 0100 0101 0110 0111 8

9

A

B

C

D

E

F

1000 1001 1010 1011 1100 1101 1110 1111

Page 99

Appendices

Appendix J ASCII Code Table

High-order 4 bits Hexadecimal

0

1

2

3

4

5

6

7

0

0000 NUL DLE (SP)

0

@

P

1

0001 SOH DC1

!

1

A

Q a q

2

0010 STX DC2

”

2

B

R b r

3

0011 ETX DC3

#

3

C

S c s

4

0100 EOT DC4

$

4

D

T d t

5

0101 ENQ NAK

%

5

E

U e u

6

0110 ACK SYN

&

6

F

V f v

7

0111 BEL ETB

’

7

G

W g w

8

1000 BS CAN

(

8

H

X h x

9

1001 HT

EM

)

9

I

Y i y

A

1010 LF

SUB

✽

:

J

Z j z

B

1011 HM ESC

+

;

K

[ k

{

C

1100 CL

FS

,

<

L

\

I

D

1101 CR

GS

–

=

M

] m

}

E

1110 SO

RS

.

>

N n

~

F

1111 SI

US

/

?

O o del

_ p

Appendices

Low-order 4 bits

Binary 0000 0001 0010 0011 0100 0101 0110 0111

169

Page 100

Appendices

Appendix K Setup Parameter List Fill in the specified data for each parameter. Copy the list for daily operation.

Appendices

■ Bar code setup Setup parameter

Code 1

Code type

(

)

(

Code 3 )

(

Code 4 )

(

)

Maximum number of digits (

)

(

)

(

)

(

)

Minimum number of digits (

)

(

)

(

)

(

)

Send start/stop character (CODE39, Coda bar)

■ Don’t send ■ Send

■ Don’t send ■ Send

Start/stop character type (Coda bar)

■ Lowercase ■ Uppercase

■ Lowercase ■ Lowercase ■ Lowercase ■ Uppercase ■ Uppercase ■ Uppercase

Test check digit (CODE39, Coda bar, ITF)

■ Don’t test ■ Test

■ Don’t test ■ Test

Check digit type (Coda bar)

(

Send check digit (CODE39, Coda bar, ITF)

■ Don’t send ■ Send

Read EAN (More than one can be selected.)

■ EAN 13-digit ■ EAN 13-digit ■ EAN 13-digit ■ EAN 13-digit ■ EAN 8-digit ■ EAN 8-digit ■ EAN 8-digit ■ EAN 8-digit ■ UPC-E ■ UPC-E ■ UPC-E ■ UPC-E

)

(

■ Don’t send ■ Send

■ Don’t test ■ Test )

■ Don’t send ■ Send

(

■ Don’t send ■ Send

■ Don’t test ■ Test )

■ Don’t send ■ Send

(

)

■ Don’t send ■ Send

Number of output digits of UPC-A

■ 13 digits ■ 12 digits

■ 13 digits ■ 12 digits

■ 13 digits ■ 12 digits

■ 13 digits ■ 12 digits

Add “0” to UPC-E system code

■ Don’t add ■ Add

■ Don’t add ■ Add

■ Don’t add ■ Add

■ Don’t add ■ Add

CODE EAN-128 support 128

■ Don’t check ■ Check

■ Don’t check ■ Check

■ Don’t check ■ Check

■ Don’t check ■ Check

Set specified-digit output function

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Forward ■ Backward

■ Forward ■ Backward

■ Forward ■ Backward

■ Forward ■ Backward

Specified direction

Number of effective ( digits

)

(

)

(

)

(

)

Start digit

)

(

)

(

)

(

)

Set label reading in the specified direction Specified direction

170

Code 2

(

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Don’t set ■ Set

■ Forward ■ Reverse

■ Forward ■ Reverse

■ Forward ■ Reverse

■ Forward ■ Reverse