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

Page 128

Advertising
background image

Chapter 7 Serial Communication

118

7

7.3.2 Details on parameter setting commands

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

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

Communication details

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

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

2. The BL-600 Series shifts to the setting mode.

If the command is successfully executed: The BL-600 Series sends back an

“OK.”

3. Send the command for an item to be changed (setting change command).

If the command is successfully executed: The BL-600 Series sends back an

“OK.”

If an error occurs: The BL-600 Series sends back an “ERR** (**: Error code).”

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

If the command is successfully executed: The BL-600 Series sends back the

setting data.

If an error occurs: The BL-600 Series sends back an “ERR** (**: Error code).”

5. To save the settings in the EEP-ROM, send “SAVE” to the BL-600 Series.

Once the settings have been saved in the EEP-ROM, the BL-600 Series will
start with the new settings the next time it is turned on.
If the command is successfully executed: The BL-600 Series sends back an

“OK.”

If an error occurs: The BL-600 Series sends back an “ERR** (**: Error code).”

6. To quit the setting mode and perform normal bar code reading, send “SEND” to

the BL-600 Series.
If the command is successfully executed: The BL-600 Series sends back an

“OK.”

If an incorrect command is sent: The BL-600 Series sends back an “ERR** (**:

Error code).”

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, how-
ever, <LF> is not added to the response data.

Note 1: When <ESC> is added before the command being sent, characters in the
BL-600’s command receiving buffer are cleared.

Note 2: If the BL-600’s command receiving buffer contains erroneous characters
due to a data transmission error during communication, add <ESC> to the com-
mand being sent.
Note 3: 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-600 cancels the received characters.

Command

Response

Command CR

Response CR

STX Command ETX

STX Response ETX

Advertising