Professional Documents
Culture Documents
Agenda
Serial v.s. Parallel Simplex , Half Duplex , Full Duplex Communication RS-485 Advantage over RS-232
www.hoangvanco.com.vn
www.hoangvanco.com.vn
Remote sensor
Control room
T/C
noise
www.hoangvanco.com.vn
Remote sensor
Control room
T/C
Remote I/O
www.hoangvanco.com.vn
Tx Rx CTS RTS DTR DSR GND Rx Tx RTS CTS DSR DTR GND
RS-232
RS-422
High data rates Longer cable lengths (4000 ft) Full-duplex Noise rejection
PLC Multipoint application (Up to 32 units) Low cost Longer cable lengths (4000 ft) Noise immunity Half-duplex
Data+ DataDataGND
RS-485
PLC
www.hoangvanco.com.vn
Serial Communication
Transfer the data bit by bit Synchronous Data Transfer
Receive Data
Parallel Communication
Transfer the all data simultaneously Asynchronous Data Transfer
Send Data
Receive Data
www.hoangvanco.com.vn
www.hoangvanco.com.vn
Simplex Communication
Simplex Communication :
Data in a simplex channel is always one way. Simplex channels are not often used because it is not possible to send back error or control signals to the transmit end. The examples of simplex are broadcasting, or Radio
www.hoangvanco.com.vn
Half-Duplex Communication
A half-duplex channel can send and receive, but not at the same time. It's like a one-lane bridge where two way traffic must give way in order to cross. Only one end transmits at a time, the other end receives. Another examples of half-duplex are talk-back radio , RS-485
Half-Duplex Operation
www.hoangvanco.com.vn
Full-Duplex Communication
Data can travel in both directions simultaneously. There is no need to switch from transmit to receive mode like in half duplex. Its like a two lane bridge on a two-lane highway. Have you ever watched these television talk shows where the host has a number of people on the show, and they all try to talk at once. Well, thats full duplex! All examples of full-duplex are RS-232, RS-422, telephone
Full-Duplex Operation
www.hoangvanco.com.vn
www.hoangvanco.com.vn
RS-232 Communication
1. 2. 3.
Full-Duplex Operation No noise rejection (single-ended) Short transmission distance (within 15m) Low transmission speed (within 115.2kbps) Protocol
Point-to-point : Handle communication between 2 devices. Unbalanced lines (Single-ended.) : Signal applied to one line and referenced to ground. Most common use as a communication device for a Serial port of the PC and peripherals
Single-Ended Driver
Tx
Single-Ended Receiver
signal
Rx
HOANG VAN INFORMATICS TECHNOLOGY CO., LTD.
www.hoangvanco.com.vn
Direction DTE DCE DCE DTE DTE DCE DCE DTE DCE DTE DCE DTE DTE DCE DCE DTE DCE DTE
Description protection ground transmitted data received data request to send clear to send data set ready signal ground (common) data carrier detect data terminal ready ring indicator data signal rate detector
9 8 7 6 5 4 3 2 1
3 2 7 8 6 5 1 4 9 -
25 24 23 22 21 20 19 18 17 16 15 14
12 11 10 9 8 7 6 5 4 3 2 1
2 3 4 5 6 7 8 20 22 23
DCE : Data Carrier Equipment (Modem) DTE : Data Terminal Equipment (PCs COMport)
www.hoangvanco.com.vn
Pin 3 2 7 8 6 1 4 5
www.hoangvanco.com.vn
RS-232 Application
1. 2. 3. 4. 5.
www.hoangvanco.com.vn
RS-485 Communication
Half-Duplex Operation Noise rejection and cross wire (Differential) Long transmission distance (Up to 1200m) High transmission speed (Up to 10Mbps ) Auto-Flow Control
Differential Driver
Twisted-pair
Signal Voltage
Differential Receiver
www.hoangvanco.com.vn
RS-485 Communication
Save the wiring cost Easy to setup and maintain Communication is more reliable
DATA+ (Y)
Host RS-485
Rt DATA- (G)
Rt
GY
www.hoangvanco.com.vn
repeater
RT
RX
TX
RX
TX
RX
TX
RX
TX
Device 0
Device 31
Device 0
Device 31
32 driver / receiver
32 driver / receiver
www.hoangvanco.com.vn
RS-485 Application
1. 2. 3.
PLC
Temperature Controller
AC Power Monitor
www.hoangvanco.com.vn
RS-422 Communication
www.hoangvanco.com.vn
DataData+
3 4 5 6 7 8 20 22
23 22 21 20
4 5 6 7 8 9
GND
19 18 17 16 15 14
www.hoangvanco.com.vn
www.hoangvanco.com.vn
Q&A
www.hoangvanco.com.vn