Instruction Manual

71
E SR-750 UM
8-1 Details of Command
Communication
This section describes the command types and communication format of the SR-
750 Series.
Types of Command Communication
There are 2 types of commands used with the SR-750 Series:
These commands and responses are common to RS-232C communication and
Ethernet communication. The ASCII codes are used for the transmission and
reception.
Operation commands
Commands to control the SR-750 Series operations.
Configuration commands
Commands to change or confirm the SR-750 Series configuration.
Command Communication Process
Command communication with the SR-750 Series is performed as follows:
1 The host PC sends commands (operation/configuration commands)
to the SR-750 Series.
2 SR-750 sends responses for the commands received.
Read result data etc. will be sent after the response for an operation command is
sent.
[Example] Read result data when a timing ON command is used
Command Communication Format
Header and Terminator
There are two types of header and terminator for the SR-750 Series. Use either of
them.
Responses are sent with the same header and terminator of the corresponding
send command.
* is appended at the end of the command. However, will not be added to
the response.
Important
If is appended at the beginning of the command, the will
clear the receive buffer of the SR-D750 Series.
If unnecessary characters appear in the receive buffer of the SR-
750 Series, append at the command communication.
Set the character interval to 10 seconds or less when sending
commands to the SR-750 Series. If 10 seconds or more elapse,
the SR-750 Series will delete all received characters from the
buffer.
Header Terminator
None CR
STX ETX
TEST TUNE
SR-625
POW ERR
NET IN
STB
OK/NG/
Command
Response
TEST TUNE
SR-625
POW ERR
NET IN
STB
OK/NG/
(1) S
end a Trigger input ON command
LON
(2)
Response for the Trigger input ON command
OK, LON
(4) Read result data
(Code data)
(3) Reading
operations
Command Response
Command
CR
Response
CR
STX
Command
ETX STX
Response
ETX
LF LF
ESC
ESC
ESC
Send command format
Up to 2 parameters for each operation and configuration command are available.
Commands are sent in the following format according to the number of parameters:
Response format
Responses for operation or configuration commands are sent in the following
format:
Response error codes
8-2 Operation Commands
This section describes the details of the operation commands of the SR-750
Series.
Reading Operation Control
Timing ON command
Send command Normal mode LON
Bank settings LON, bb or LONbb bb:
parameter bank number (01 - 10)
Response Normal process OK, LON
Abnormal process ER, LON, ee ee: Error code
Number of
Parameters
Send Command Format
None
1
2
Send Command
Result
Send Command Format
Successful
Failed
Error code Error Description
00 Undefined command received
01 Mismatched command format
(Invalid number of parameters)
02 The parameter 1 value exceeds the set value
03 The parameter 2 value exceeds the set value
04 The parameter 2 is not set in HEX (hexadecimal) code.
05 The parameter 2 set in HEX (hexadecimal) code but exceeds the set value
10 There are 2 or more ! marks in the preset data
The preset data is incorrect
11 The area specified data is invalid.
12 Specified data does not exist.
13 mm of %Tmm-*** exceeds 31.
14 There is no correct response to the %Tmm-KEYENCE command.
20 This command not executable in the current status was received
(Execution error)
21 The buffer has overflowed, so commands cannot be executed
22 An error occurred while loading or saving parameters,
so commands cannot be executed
23 Command cannot be executed while connecting with the setup software
30 No error image was saved to this number
35 There are no settings for this read code
40 The length of the command sent as a batch exceed 2048 bytes
41 The length of the command sent as a batch exceed 2048 bytes
42 A command not allowed in batch settings has been specified
99 Other errors (Contact your nearest KEYENCE sales office.)
Header
Command
Terminator
Header
Command
,
Parameter 1
Termi nat or
Header
Command
,
Parameter 1
,
Parameter 2
Terminator
Header OK ,
Send command
Terminator
Header ER ,
Send command
, Error code Terminator