beautypg.com

3 command communication, 1 setup of direct control commands – KEYENCE BL-700 Series User Manual

Page 102

background image

Chapter 5 Serial Communication

88

5

5.3

Command Communication

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

5.3.1 Setup of Direct Control Commands

Communication procedure

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

2. After receiving the command, the BL-700 sends back an OK response and

executes the required operation.
When the read operation control command or test mode control command is
sent to the BL-700, the BL-700 sends back no response.

3. When an incorrect command is sent to the BL-700, the BL-700 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].

can be added after the command being sent. In this case, however, is
not added to the response data.

When is inserted 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 data
transmission error during communication, add 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

LASER ON

STB

OK/NG

TIMING

TEST

BL-70

0

Command

Response

Command CR

Response CR

STX Command ETX

STX Response ETX

Tips