5 preset function (compare with:) – KEYENCE BL-600 Series User Manual

Page 111

Advertising
background image

101

Chapter 6 Functions for Reading Operation

6

6.5

Preset Function (Compare with:)

This section describes the preset function to prevent different bar codes from being
read.

6.5.1 Preset function

The preset function is the function that compares the preset data (one bar code
data entered beforehand) to the bar code data actually read and outputs OK/NG
signals to indicate whether or not there is a match.
The preset function allows the BL-600 Series to detect different bar codes without
using a PC.

OK/NG signal output timing

➮ See pages 86 to 88.

Entering the preset data
Use the setup software

(

➮ See page 53.)

or a serial command

(

➮ See page 128.)

to enter

the preset data.

Note: The bar code actually read can be compared to the preset data only in the
single label read mode.

➮ See page 164 if you want to use CODE93.

See page 165 if you want to use CODE128.

6.5.2 Using “?” and “!” in the preset data

Using “?” and “!” in the preset data allows a wider range of bar codes to match the
preset data.

?: One “?” character represents one character. Use “?” to regard any one-digit

character as being matched.
If the preset data is entered as “4912??56”, the two digits positioned in “??” can
contain any characters (numeric values) for a match.

!: One “!” character represents an unlimited number of characters. Use “!” to

regard any number of characters as being matched.
If the preset data is entered as “4912!”, any bar codes that begin with “4912” will
be regarded as a match. If the preset data is “!4912”, any bar codes that end
with “4912” will be regarded as a match.
You can only use “!” once in one preset data.

Setting examples

1. “ABC?”

ABCD (OK),

ABC3 (OK), ABC (NG),

ABCDE (NG)

2. “ABC!”

ABCD (OK),

ABC3 (OK), ABC (OK),

ABCDE (OK),

AB (NB)

3. “?????”

Any 5-digit bar code will be OK.

4. “!CDE”

ABCDE (OK),

3CDE (OK), CDE (OK),

ABBDE (NG),

ADE (NG)

5. “A!E”

ABCDE (OK),

A3CE (OK), ABCD (NG),

AE (OK)

Reference: If you do not register preset data, “!” is automatically registered. There-
fore, when the unit successfully reads a bar code, “OK” is output; when the unit
fails to read, “NG” is output.

Advertising