2 details on parameter setting commands – KEYENCE BL-700 Series User Manual

Page 106

Advertising
background image

Chapter 5 Serial Communication

92

5

5.3.2 Details on Parameter Setting Commands

The following describes how to change the BL-700’s settings through command
communication.

You can use the setup software to change the BL-700’s settings instead of these
commands.

Communication Details

1. Send the direct control command SSET to the BL-700.

The BL-700 will shift to setting mode.
After successfully executing the command, the BL-700 sends back an OK.

2. After the BL-700 shifts to setting mode, send the command (setting change

command) corresponding to the item to be changed to the BL-700.
After successfully executing the command, the BL-700 sends back an OK.
If an error occurs with this command, the BL-700 sends back ERRnn. (nn
sttands for error code numbers.)

3. To confirm the current settings, send a setting confirmation command.

After successfully executing the command, the BL-700 sends back an OK.
If an error occurs with this command, the BL-700 sends back ERRnn.

4. To save the current settings in the EEP-ROM, send SAVE to the BL-700.

Once you save the settings in the EEP-ROM, the BL-700 will start with these
settings when the BL-700 is turned on next.
After successfully executing the command, the BL-700 sends back an OK.
If an error occurs with this command, the BL-700 sends back ERRnn.

5. To quit the setting mode and perform the normal bar code reading, send SEND

to the BL-700.
After successfully executing the command, the BL-700 sends back an OK.
If an error occurs with this command, the BL-700 sends back ERRnn.

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].

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

When <ESC> is added 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 a 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.

Command

Response

Command CR

Response CR

STX Command ETX

STX Response ETX

Tips

Advertising