Command communication format, Command communication format -6, Command communication with bl/sr/rf series devices – KEYENCE N-410 User Manual
Page 102: Send format, Return format, Header/delimiter
6-6
S
6
6-3
Command Communication with BL/SR/RF Series Devices
Operational commands can be sent from a host computer to BL/SR/RF Series devices that are
connected to the N-410 Series.
Command Communication Format
Send format
• mm = 00 to 31
: ID numbers of BL/SR/RF Series devices
• Operational command : Operational commands for BL/SR/RF Series devices
* For details of the operational commands for BL/SR/RF Series devices, refer to the User's Manual for
each device.
Return format
A N-410 Series device returns a response to the host computer in the following formats when
receiving the operational command for the head that is connected to the N-410 Series device.
• mm
= 00 to 31 : ID numbers of BL/SR/RF Series devices
• Response = OK
: A response is returned when the N-410 Series device normally receives an
operational command from the host computer and send it to BL/SR/RF
Series devices.
ERRmm (mm = 00 to 99 : Error code) : The error code is returned when an
operational command sent from the host
computer is invalid.
NC
: Non-connection error. This error is returned when a connection of the head
that has an ID number to which an operational command is sent cannot be
confirmed.
NG
: Operational error is returned when a head that has an ID number cannot
receive the command because it is ON.
Header/Delimiter
When the command format is
+
, the response format is
+
.
When the command format is
, the response format is
.
*
can be added at the end of the command. However,
is not added to the response.
* When
is added before the command is sent, the data in the receive buffer of the N-410
Series is cleared by
. However,
is not added to the response.
Header
Delimiter
Operational command
—
mm
%
T
Header
Delimiter
Response
—
mm
%
T
Command
Response
Command
CR
Response
CR
STX Command ETX
STX
Response ETX
Command CR
Response CR
STX Command ETX
STX
Response ETX
LF
LF
ESC
ESC
ESC