1 serial communication – KEYENCE BL-700 Series User Manual

Page 98

Advertising
background image

Chapter 5 Serial Communication

84

5

5.1

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 BL-
700.

*

All communication is performed using ASCII codes.

Communication setup

Configure the setup for BL-700 and the PC before attempting serial communica-
tion.

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

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 BL-
700 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 STABIL-
ITY 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.

Tips

Advertising