3 details on parameter setting commands, 3 command communication – KEYENCE BL-180 User Manual

Page 60

Advertising
background image

4.3 Command Communication

52

Clearing transmission buffer

[BCLR]

Clears data stored in the transmission buffer.

Command:

BCLR

Response:

OK

Shift to setting mode

[SSET]

Enters the setting mode (see page 51).

Command:

SSET

Response:

OK

4.3.3

Details on Parameter Setting Commands

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

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

Communication Details

1. Send the direct control command

SSET

to the BL-180.

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

OK

.

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

command) corresponding to the item to be changed to the BL-180.
After successfully executing the command, the BL-180 sends back an

OK

.

If an error occurs with this command, the BL-180 sends back

ERR

nn

. (nn

sttands for error code numbers.)

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

After successfully executing the command, the BL-180 sends back an

OK

.

If an error occurs with this command, the BL-180 sends back

ERR

nn

.

4. To save the current settings in the EEP-ROM, send

SAVE

to the BL-180.

Once you save the settings in the EEP-ROM, the BL-180 will start with these
settings when the BL-180 is turned on next.
After successfully executing the command, the BL-180 sends back an

OK

.

If an error occurs with this command, the BL-180 sends back

ERR

nn

.

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

SEND

to the BL-180.

After successfully executing the command, the BL-180 sends back an

OK

.

If an error occurs with this command, the BL-180 sends back

ERR

nn

.

Note

[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-180’s
command receiving buffer are cleared.

If the BL-180’s command receiving buffer contains erroneous characters due to a
data transmission error during communication, add [ESC] to the command being
sent.

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-180 cancels the received characters.

Note

Advertising