1 serial communication, 1 communication setup – KEYENCE BL-180 User Manual
Page 54

4.1 Serial Communication
46
4.1
Serial Communication
The BL-180 communicates with the PC via the RS-232C serial port. This enables
you to change the BL-180’s settings from your PC.
Communication Types
The BL-180 provides the following two communication types:
Data communication
Sends read bar code data from the BL-180 to the PC.
Command communication
Changes the BL-180’s settings by sending a command from the PC to the BL-
180.
All communication is performed using ASCII codes.
4.1.1
Communication Setup
Configure the setup for BL-180 and the PC before attempting serial communica-
tion.
Setup of BL-180
Set the following parameters for the BL-180 using the setup software.
Baud rate, Data bits, Parity, Stop bit, Communication protocol, Header/Delimiter,
Read error code
PC setup
Based on the BL-180’s settings, set the communication parameters on the PC us-
ing the “Ports” setting in the Windows Control Panel.
The following communication parameters are the default settings for the BL-180:
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-180 is set, temporarily, to the default settings for 5 seconds after the pow-
er switch is turned on.
When the current settings of BL-180 is not certain, send the command “SSET”
and a [CR] to the BL-180 from your PC with 5 seconds after power-up. This caus-
es the BL-180 to remain at its default settings and you can communicate with the
BL-180 at the default settings.
For information on checking the BL-180’s current settings, see “Details on Param-
eter Setting Commands” on page 52. For information on changing the above
communication parameters see “Description of Parameter Setting Commands”
on page 53.
Data communication can be performed with the current parameter settings even
for 5 seconds after the power is turned on.
All commands should be entered in all uppercase characters. The BL cannot ac-
cept lowercase characters.
Note
Note