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 13 of 19

Laser Bar Code Reader BL-700 Series User's Manual: Chapter 1 Laser Safety Precautions, pages 94 to 103

Pages 94 to 103 of 161, from Laser Bar Code Reader BL-700 Series User's Manual

The original document is the PDF (1.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 Keyence BL-700, Keyence BL-701 and Keyence BL-781

Page 94

Chapter 4

4.7

Installing the Setup Software

Example of printing from the setup software When “Print” is executed from the setup software, the following data is printed.

/ / / New setting data [Untitled] / / / < < Model = BL-700 > >

[x] Selected [_] ----------=> Changed

1) Main [Read mode] [Data-send] [Repeat-reading time] [Decoding match count] [Read error] [Add Decoding match count] [Add scan count] [Add code type] [Add label orientation]

[x] Single [_] Multi 1 [_] Multi 2 [x] After read [_] At trigger input [10] x 100 ms [2] times ERROR [4552524F52] [_] Enable [_] Enable [_] Enable [_] Enable

[_] Multi 3

4

2) Trigger setup [Signal type] [One shot input time] [Input time] [State] [Command for Trigger ON] [Command for Trigger OFF] [Test mode initiated with input ON] [Test mode initiated upon power-up]

[x] Level [_] One shot [10] x 100 ms [x] 2 ms [_] 10 ms [x] Nomally open [_] Nomally close LON [4C4F4E] LOFF [4C4F4646] [x] OFF [_] Reading-rate check [_] Tact check [x] OFF [_] Reading-rate check [_] Tact check

3) Comm Settings–1 [Baud rate] [Data bits] [Parity] [Stop bits] [RTS/CTS] [Multi-drop link(RS-485)] [ID number]

9600 bps. [x] 7 bits [_] 8 bits [x] Even [_] Odd [x] 1 bit [_] 2 bits [_] Use RTS/CTS handshaking [_] Enable No. [1]

[_] None

4) Comm Settings–2 [Use PLC] [Handshaking] [Header] [Delimiter] [Partition mark] [Intermediate delimiter] [Checksum]

[_] Enable [x] None [x] None [x] CR : [3A] , [2C] [_] Enable

[_] PASS/RTRY [_] ACK/NAK [_] STX [_] ESC [_] Custom [_] CR + LF [_] ETX [_] Custom

5) Utility [Stability LED] [OK/NG output duration] [Preset data] = [no data]

[_] Use stability LED [50] x 10 ms

(1/2)

81

Page 95

Chapter 4

4

Installing the Setup Software

[Code 1 setup]

Bar code = CODE39

[Main code length] [Min code length] [Send start/stop character (*)] [Inspect check-digit [Modulus 43] [Send check-digit] -----Options setup-----[Max code length output] [Effective] [Starting] [Specify label orientation]

[32] [3] [_] Enable [_] Enable [x] Enable

[Code 2 setup]

Bar code = Codabar

[Max code length] [Min code length] [Start/stop character] [Inspect check-digit] [Send check-digit] [Type of check-digit] -----Options setup-----[Max code length output] [Effective] [Starting] [Specify label orientation]

[32] [3] [_] Do not send [x] Lower-case [_] Upper-case [_] Enable [x] Enable Modulus 16

[x] Not used [_] Forward [32] [1] [x] Not used [_] Forward

[x] Not used [_] Forward [32] [1] [x] Not used [_] Forward

[Code 3 setup]

Bar code = UPC/EAN

[Read EAN 13(UPC-A)] [Read EAN 8] [Read UPC-E] [No. of UPC-A output] [Add UPC-E system code 0] -----Options setup----[Max code length output] [Effective] [Starting] [Specify label orientation]

[x] Enable [x] Enable [x] Enable [x] 13 digits [x] Do not add [x] Not used [_] Forward [32] [1] [x] Not used [_] Forward

[Code 4 setup]

Bar code = None

Printed: 98/01/07 20:40:28

(2/2)

82

[_] Reverse

[_] Reverse

[_] Reverse

[_] Reverse

[x] 12 digits [_] Add [_] Reverse

[_] Reverse

Page 96

Chapter 5 Serial Communication 5.1

Serial Communication ........................................................ 84

5.2

Details on Data Communication ........................................ 85

5.3

Command Communication ................................................ 88

5.3.1 Setup of Direct Control Commands ....................................... 88 5.3.2 Details on Parameter Setting Commands ............................. 92

Page 97

Chapter 5

5.1

Serial Communication

Serial Communication The BL-700 communicates with the PC via the RS-232C serial port. This enables you to change the BL-700’s settings from your PC.

Communication types The BL-700 provides the following two communication types: •

Data communication Sends read bar code data from the BL-700 to the PC.

•

Command communication Changes the BL-700’s settings by sending a command from the PC to the BL700.

*

All communication is performed using ASCII codes.

Communication setup Configure the setup for BL-700 and the PC before attempting serial communication. •

Setup of BL-700 Set the following parameters for the BL-700 using the setup software. • Baud rate, Data bits, Parity, Stop bit • Communication protocol • Header/Delimiter • Read error code

•

PC setup Based on the BL-700’s settings, set the communication parameters on the PC using the “Ports” setting in the Windows Control Panel/System/Device Manager.

•

The following communication parameters are the default settings for the BL-700: • Baud rate: 9600 bps • Data bits: 7 bits • Parity: Even • Stop bit: 1 bit

5

Tips

Set the PC according to the above settings before attempting communication. •

The BL-700 is set, temporarily, to the default settings for 5 seconds after the power switch is turned on. When the current settings of BL-700 is not certain, send the command “SSET” and a [CR] to the BL-700 from your PC with 5 seconds after power-up. This causes the BL700 to remain at its default settings and you can communicate with the BL-700 at the default settings. For information on checking the BL-700’s current settings, see “Details on Parameter Setting Commands” on page 92. For information on changing the above communication parameters see “Description of Parameter Setting Commands” on page 94. When the BL-700 TEST switch is pressed for 8 seconds, the 1st, 3rd and 5th STABILITY LEDs from the top flash, indicating that the communication parameters are set as above. (Press the TEST switch again to reset the settings.)

Note: All commands should be entered in all uppercase characters. The BL cannot accept lowercase characters.

84

Page 98

Chapter 5

5.2

Serial Communication

Details on Data Communication

Communication protocols (Hardware handshaking) The BL-700 supports the following four handshaking protocols. ■ No Handshaking

Read data LASE R ON STB OK/N G TIMING

TEST

BL-700

•

The BL-700 sends read data to the PC without using any handshaking protocol.

■ PASS/RTRY Handshaking

LASE R ON

Read data

STB OK/N G TIMING

TEST

BL-700

Response

5

(PASS, RTRY)

•

After sending the read data, the BL-700 waits for a response from the PC. The response is either a PASS command or a RTRY command. The PASS command (quit) indicates that the PC has successfully received one data packet. The BL-700 then prepares for the next data transmission.

•

The RTRY command (request to re-send) indicates that the data was not transmitted successfully. The command is a request to the BL-700 to re-send the data. The BL-700 sends the same data again and then waits for the response. After the BL-700 once receives PASS, the BL-700 sends back no data even if RTRY is sent to the BL-700.

•

The BL-700 can continue to read while waiting for the PASS command. The data is stored in the BL-700’s transmission buffer. ➮ For the capacity of the transmission buffer, see P.86.

If the amount of stored data exceeds the capacity of the transmission buffer, the BL-700 sends back [Header]OVER[Delimiter] to the PC, and clears all data stored in the transmission buffer. The BL-700 stops operation while clearing data. It recovers by sending PASS to [Header]OVER[Delimiter]. •

PASS and RTRY can be received in either communication format: PASS <CR> or <STX> pass <ETX>. You can also add <ESC> to the beginning, or <LF> to the end of the format.

Note 1: The BL-700 can receives other commands while waiting for the PASS command. In this case, the BL-700 sends back an immediate response (e.g. OK). Note 2: When the SSET command (➮ see P.92) is sent to the BL-700 while the BL-700 is waiting for the PASS command, the BL-700 clears the data stored in the transmission buffer, and enters the setting mode.

85

Page 99

Chapter 5

Serial Communication

■ ACK/NAK Handshaking The ACK/NAK handshaking uses <ACK> (06H) and <NAK> (15H) instead of PASS and RTRY used in the PASS/RTRY handshaking, respectively. With these protocols, the BL-700 sends back different characters, but performs the same operation. ■ RTS/CTS Handshaking • When the PC’s RTS (BL-700’s CTS) signal turns off, the BL-700 becomes ready for data transmission. When the PC’s RTS signal turns on, the BL-700 starts data transmission. •

When the PC’s RTS signal is off, the BL-700 can still read. In this case, data is stored in the BL-700’s transmission buffer (see below). If the amount of stored data exceeds the capacity of the transmission buffer, the BL-700 sends back [Header]OVER[Delimiter] to the PC, and clears all data stored in the transmission buffer. The BL-700 stops operation while clearing data. It recovers when the RTS of the computer turns ON.

Note 1: The RTS/CTS handshaking cannot be used for RS-422A communication. Note 2: The RTS/CTS protocol can be used together with other handshaking protocols. Note 3: When the PC’s RTS signal is off, the BL-700 does not sends back a response to the PC.

5

Capacity of transmission buffer The BL-700’ s transmission buffer can store 400 bytes (400 characters). The number of characters stored in the transmission buffer for each data packet is the number of characters in the data (including additional data such as the number of decoding match count) plus an additional five characters indicating the data’s attributes. When multi label reading mode 2 or 3 is used, these five attribute characters are added to each data packet.

Example 1 When the number of bar code digits is 10 (with no additional data) 400 ÷ (10 + 5) = 26 The transmission buffer can store 26 pieces of data.

Example 2 When the number of bar code digits is 20 (with no additional data) 400 ÷ (20 + 5) = 16 The transmission buffer can store 16 pieces of data.

86

Page 100

Chapter 5

Serial Communication

Read Data Format Set the data format of the Header and Delimiter, respectively. Header

Read data

Delimiter

With the setup software, the following formats can be selected. Other than the following formats, you can freely set up to 5 characters. Header: <ESC> (1BH), <STX> (02H), None Delimiter: <CR> (0DH), <CR> (0DH) <LF> (0AH), <ETX> (03H)

Read Error Code If the BL-700 fails to read a bar code, the BL-700 sends back a read error code. The initial setting of the read error code is as follows: Header

ERROR

Delimiter

The read error code can freely be changed (within 8 characters). The BL-700 can be set to send no error code. ➮ See P.57.

5

87

Page 101

Chapter 5

5.3

Serial Communication

Command Communication The BL-700 includes commands to directly operate the BL-700 (direct control commands) and the commands used to change or confirm the BL700’s settings (parameter setting commands).

5.3.1 Setup of Direct Control Commands Communication procedure

Command LASE R ON STB OK/N G TIMING

Response

TEST

BL-700

1. Send a direct control command from the PC to the BL-700. 2. After receiving the command, the BL-700 sends back an OK response and executes the required operation. When the read operation control command or test mode control command is sent to the BL-700, the BL-700 sends back no response.

5

3. When an incorrect command is sent to the BL-700, the BL-700 sends back no response.

Communication format When the command format is [Command][CR], the response format is [Response][CR]. When the command format is [STX][Command][ETX], the response format is [STX][Response][ETX].

Tips

Command

Response

Command CR

Response CR

STX Command ETX

STX Response ETX

•

<LF> can be added after the command being sent. In this case, however, <LF> is not added to the response data.

•

When <ESC> is inserted before the command being sent, characters in the BL-700’s command receiving buffer are cleared.

•

If the BL-700’s command receiving buffer contains erroneous characters due to data transmission error during communication, add <ESC> to the command being sent.

Note: For command communication, set the time duration between transmission of each character (byte) to up to 30 seconds. If this duration exceeds 30 seconds, the BL-700 cancels the received characters.

88

Page 102

Chapter 5

Serial Communication

Explanation of Direct Control Commands The following describe direct control commands in details. Read operation control This command specifies the data read timing.

● Trigger on Command: LON Response: None ● Trigger off Command: LOFF Response: None •

Even when the read operation is controlled with these commands, the BL-700 performs the same operation as with the trigger input (➮ see P.30 to 36). “Trigger input: on” corresponds to LON, and “trigger input: off” corresponds to LOFF.

•

The BL-700 starts read operation on receipt of LON and stops it on receipt of LOFF. When a bar code can be correctly read and the read data has already been set, you need not send LOFF.

•

The command characters can be freely changed (within 8 characters).

5

Test mode control Starts or quits the test mode.

● Reading rate check Command: TEST1 Response: None ● Tact check Command: TEST2 Response: None ● Resetting test Command: QUIT Response: None •

After using the test mode, be sure to reset it. OK/NG output control Directly turns on/off the OK/NG output. This enables you to easily check wiring.

● Turning the OK output on Command: OKON Response: OK ● Turning the NG output on Command: NGON Response: OK ● Turning the OK/NG outputs off Command: ALLOFF Response: OK

89

Page 103

Chapter 5

Serial Communication Online test mode Sets to online test mode (➮ see P. 60).

● Online test ON Command: #TEST1 Response: OK ● Online test OFF Command: #QUIT Response: OK ● Online test check Command: #TEST Response: #TESTn n = 0: Online test OFF 1: Online test ON Clearing transmission buffer Clears data stored in the transmission buffer.

Command: BCLR Response: OK Shift to setting mode Enters the setting mode (➮ see P.4).

5

Command: SSET Response: OK Laser off/Resetting Laser off Turns off the laser emission when the laser beam may cause injury to an operator (➮ see P.2).

● Laser off Command: LOCK Response: OK ● Resetting Laser off Command: UNLOCK Response: OK •

When the Laser off command is executed, bar code read operation (laser emission) is disabled until the Laser off command is reset by using UNLOCK command.

•

The Laser off command is retained even after the power is turned off. Reset Resets the BL-700 software.

Command: RESET Response: OK

90