3 command communication – KEYENCE BL-600 Series User Manual

Page 124

Advertising
background image

Chapter 7 Serial Communication

114

7

7.3

Command Communication

The BL-600 includes commands to directly operate the BL-600 (direct control
commands) and the commands used to change or confirm the BL600’s settings
(parameter setting commands).

7.3.1 Setup of direct control commands

Communication procedure

1. Send a direct control command from the PC to the BL-600.

2. After receiving a command, the BL-600 Series sends back an OK response and

executes the required operation.

*

The BL-600 Series does not send back a response for the read operation
and test mode control commands.

*

When an incorrect command is sent to the BL-600, the BL-600 sends back
no response.

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 after the command being sent. In this case, however, <LF>
is not added to the response data.

Note 1: When <ESC> is inserted 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 data transmission error during communication, add <ESC> to the command
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

LA

SE

R ON

OK/NG

TIM

ING

TEST

BL-600

Command

Response

Advertising