1 rs-232c communication protocol – KEYENCE LS-5000 User Manual
Page 94

Chapter 8 RS-232C I/O
88
8
8.1
RS-232C Communication Protocol
Using the RS-232C interface, the LS-5000 series can communicate with a personal
computer. Data transmission and setting changes can be remotely controlled.
■ Pin Assignment
1
2
3
4
5
6
Pin No.
Signal code
Description
Direction
of signal
1
—
No connection
—
2
—
No connection
—
3
SD (TXD)
Inputs data from
Input
external equipment
4
SG (GND)
Signal ground
—
5
RD (RXD)
Outputs measured
Output
value data
6
—
No connection
—
Example of Connections
Do not connect terminals (1), (2) and (6).
■ Communication Protocol
Conforming to EIA RS-232C
These settings can be changed by adjusting DIP switch 2.
When DIP switch 2 is set to ON and “STX + ETX” is selected, OUT1’s measured
value is output continuously.
3
5
4
2
3
4
6
7
8
5
SD
RD
SG
SD
RD
RS
CS
DR
ER
SG
LS
PC
RJ11 modular
connector
9 pin D-sub
connector
3
5
4
2
3
4
5
6
20
7
SD
RD
SG
SD
RD
RS
CS
DR
ER
SG
LS
PC
RJ11 modular
connector
25 pin D-sub
connector
DIP switch 2 setting
OFF
ON
Duplex
Full
Synchronization
Start-stop
Data format
ASCII
Data length
8
Stop bit length
1
Parity check
None
Even
Baud rate
9600
Delimiter
CR
STX + ETX
Applicable
Personal computer,
KV series (KV mode)
external equipment
KV-300 with KV-L2
(Non procedure mode)
■ Setting Delimiter
1
2
3
4
ON
OFF
ON
OFF
STX +ETX
C
R
DIP switch 2
DIP switch