1 communication of the sr-750 series, 2 data communication format, Communication format for read data – KEYENCE SR-750 Series User Manual
Page 63: Read error codes, Communication of the sr-750 series, Data communication format
63
E SR-750 UM
7-1
Communication of the
SR-750 Series
To communicate with a control device, the SR-750 Series has interfaces for RS-
232C communication and Ethernet communication.
For these communication interfaces, the communication ports can be set as
follows:
• Command port
Communication port to process operation/configuration
commands and responses sent from a control device.
• Data port 1
Port to output result data from the SR-750 Series.
• Data port 2
Port to output result data from the SR-750 Series. This port is
mainly used for control on the PLC link or field network.
Communication Port Assigning Image by Connection Method
This section describes communication port assigning images for different
connection methods between the SR-750 Series and a control device.
When sending operation/setting commands via RS-232C
Communication
This is the setting method for all basic communications using RS-232C.
To perform data control over a network, set the Data port 1 to Ethernet-TCP
protocol.
* By setting the Data port 2 to Ethernet, data can be output to 2 types of Ethernet
device.
When sending operation/setting commands via Ethernet
Communication
This is the setting method for all basic communications using Ethernet.
* By setting the Data port 2 to RS-232C, data can be output to RS-232C and 2
types of Ethernet device.
Perform reading operations using the trigger input
terminal
The above settings are valid when performing reading operations of the SR-750
Series using the trigger input.
Set the Data port 1 and Data port 2 according to the control devices connected.
When sending setting commands from the control device, select the appropriate
host interface (RS-232C or Ethernet) for the Command port.
* Setting the Data port 2 enables output to 2 types.
Port
Interface
Command port
RS-232C
Data port 1
RS-232C
Port
Interface
Command port
Ethernet
Data port 1
Ethernet
Port
Interface
Data port 1
RS-232C
or
Ethernet
Command communication
PC/PLC/
Touch panel
Data port 1
Data port 2
PC/PLC/
Touch panel
PC/PLC/
Touch panel
(field network)
When EtherNet/IP communication is the main
communication
The above settings are valid when controlling the SR-750 Series using EtherNet/IP.
When sending setting commands or operation commands from the control device for
the purpose of adjustment, etc., select the appropriate host interface (RS-232C or
Ethernet) for the Command and Data ports.
* Setting the Data port 2 enables output to 2 types.
7-2
Data Communication
Format
This section describes the data communication format of the SR-750 Series.
The data communication format is common for both the RS-232C and Ethernet.
Communication Format for Read Data
Read data is sent using the ASCII code with the header and terminator added, as
shown below.
Various data can be appended for read data.
Header and terminator can be selected from the following using AutoID Network
Navigator. They also can be set to any string up to 5 characters.
z
Header
None/
(0x02) /
(0x1B)
z
Terminator
(0x0D)
/
(0x0D)
(0x0A)
/
(0x03)
Read Error Codes
If the code cannot be read, the SR-750 Series will send a reading error code to the
control device.
Read error code default setting: ERROR
Read error codes can be set to any string of text, up to 8 characters, using AutoID
Network Navigator.
Additionally, the device can be set to not send error codes.
Port
Interface
Data port 2
Ethernet
(EtherNet/IP)
NOTICE
• PLC link, EtherNet/IP and PROFINET communications cannot be
assigned to the Data port 1. Use the Data port 2.
• RS-232C communication can be assigned only to either Data
port 1 or Data port 2.
Header
Read Data
Terminator
Header
ERROR
Terminator
STX
E S C
C R
C R
L F
ETX