SlideShare a Scribd company logo
1 of 17
RS232 and RS485RS232 and RS485
FundamentalFundamental
RS232 and RS485RS232 and RS485
 What is RS232
 RS-232 Signals
 RS-232 Line Driver
 RS-232 Speed
 RS-232 SW settings
 What is RS-485
 RS-485 Line Driver
 RS-485 Network
 RS-485 Half-duplex
 RS-485 Full-duplex
 RS-485 and DL devices
 RS-232 vs RS-458
What is RS-232What is RS-232
 RS-232 is a popular communications interface for connecting
modems and data acquisition devices (i.e. GPS receivers,
electronic balances, data loggers, ...) to computers.
 RS-232 can be plugged straight into the computer’s serial port
(know as COM or Comm port).
RS-232 SignalsRS-232 Signals
 Architecturally RS-232 is a
bi-directional point to point
link.
(serial port - PC side)
 Two independent channels are
established for two-way (full-
duplex) communications.
 RS-232 can also carry
additional signals used for flow
control (RTS, CTS) and
modem control (DCD, DTR,
DSR, RI).
RS-232 SignalsRS-232 Signals
 Common 25 pin D-shell connector pinout used for
asynchronous data communications.
PinPin SignalSignal
1 PGND Protective Ground
2 TXD Transmit Data
3 RXD Receive Data
4 RTS Ready To Send
5 CTS Clear To Send
6 DSR Data Set Ready
7 SG Signal Ground
8 CD Carrier Detect
20 DTR Data Terminal Ready
22 RI Ring Indicator
(serial port - PC side)
RS-232 Line DriverRS-232 Line Driver
 Unbalanced Line Drivers
 Each signal appears on the interface connector as a voltage with
reference to a signal ground.
 The “idle” state (MARK) has the signal level negative with
respect to common whereas the active state (SPACE) has the
signal level positive respest to the same reference.
RS-232 SpeedRS-232 Speed
 How fast can RS-232 be?
 The maximum speed, according to the standard, is 20kbit/s.
However, modern equipment can operate much faster than this.
(i.e. Lynx can reach 115200 baud.)
 The length of the cable also plays a part in
maximum speed.
The longer the cable and the slower the speed at which you can
obtain accurate results.
A large wire capacitance and inductance limits the maximum
length of the cable and/or the maximum speed; Moreover higher
is the capacitance of the cable higer is the interference between
two adjacent signal wire.
50 feet (15m) @ max baudrate is commonly quoted as the
maximum distance.
It is not specified in EIA standard but it’s recommended respect
these values.
RS-232 sw settingsRS-232 sw settings
 One byte of async data has:
 Start Bit = 1 (always)
 Data Bits = 8 (or 7)
 Stop bits = 1 (or 2)
 Parity = NONE (or EVEN or ODD)
+ 25
- 25
What is RS-485What is RS-485
 What is RS-485?
 RS-485 is a EIA standard interface which is very common in the
data acquisition world
 RS-485 provides balanced transmission line which also can be
shared in Multidrop mode.
 It allows high data rates communications over long distances in
real world environments.
 How fast can RS-485 be?
 RS-485 was designed for greater distance and higher baudrates
than RS-232.
 According to the standard, 100kbit/s is the maximum speed and
distance up to 4000 feet (1200 meters) can be achieved.
RS-485 Line DriverRS-485 Line Driver
 Balanced Line Drivers
 Voltage produced by the driver appears across a pair of signal
wires that transmit only one signal. Both wires are driven opposite.
 RS-485 driver has always the “Enable” direction control signal.
 Differential system provides noise immunity, because much of the
common mode signal can be rejected by the receiver. So ground
shifts and induced noise signals can be nullified.
RS-485 NetworkRS-485 Network
 RS-485 provides Half-Duplex, Multidrop communications over a
single twisted pair cable.
MASTER SLAVE-1
SLAVE-2 SLAVE-3
 The standard specifies
up to 32 drivers and
32 receivers can share
a multidrop network
 Terminator resistors
avoid reflected signal
RS-485 Half-duplexRS-485 Half-duplex
 Datalogic uses Half-Duplex configurations for Data Collecting
and Master/Slave layouts.
 Usually we talk about Multidrop
network (i.e. MX4000,DPS9000) Slave 1
TX
ENABLE
RX
Slave 2
TX
ENABLE
RX
Slave N
TX
ENABLE
RX
RTX485+
RTX485-
485GND
Master
TX
ENABLE
RX
RS-485 Full-duplexRS-485 Full-duplex
 Potentially RS-485 interface can also use 4-wires to comunicate in
multidrop mode but...
Scanner
TX
ENABLE
RX
TX485+
TX485-
RX485+
RX485-
485GND
TX
ENABLE
RX
Other device
Comparison between RS422 & RS485Comparison between RS422 & RS485
RS-232 vs RS-485RS-232 vs RS-485
 The architectural difference between RS-232 and RS-485 is
that 232 is a bi-directional point to point link, whereas 485 is
a single channel bus.
 Electrically, each 232 signal uses a single wire with symmetric
voltages about a common ground wire. 485 uses two wires to
carry the single signal differentially.
 The big difference to the software is that only one device on a
485 bus can transmit at a time, whilst there is not similar
limitation on RS232 because is a peer-to-peer link .
RS-232 vs RS-485RS-232 vs RS-485
RS-232RS-232 RS-485RS-485
 Mode of Operation SINGLE-ENDED DIFFERENTIAL
 Total Number of Drivers 1 DRIVER 32 DRIVER
and Receivers on One Line 1 RECEIVER 32 RECEIVER
 Maximum Cable Length 50 FEET 4000 FEET
 Maximum Data Rate @Max length 20kb/s 100kb/s
 Driver Output Signal Level
(Loaded Min.) Loaded +/-5V to +/-15V +/-1.5V
 Driver Output Signal Level
(Unloaded Max) Unloaded +/-25V +/-6V
 Driver Load Impedance 3kΩ to 7kΩ 54Ω
 Max. Driver Current in
High Z State Power On N/A N/A
 Max. Driver Current in
High Z State Power Off +/-6mA @ +/-2v +/-100uA
 Slew Rate (Max.) 30V/µS N/A
 Receiver Input Voltage Range +/-15V -7V to +12V
 Receiver Input Sensitivity +/-3V +/-200mV
 Receiver Input Resistance 3kΩ to 7kΩ ≥ 12kΩ
Data Format and ProtocolsData Format and Protocols
 Information content passing through peer-to-peer connection
is packed in a very simple structure:
 <Header-string> <Code identifier ><INFO-FIELD><Terminator-
string>
 <Header-string> and <Terminator-string> are both configurable
via software (device configuration parameters)
 Most common generic Handshake are available/selectable with
RS232 interface:
 Hardware (RTS-CTS)
 Software XON/XOFF

More Related Content

What's hot (20)

Modbus introduction
Modbus introductionModbus introduction
Modbus introduction
 
Rs 232 interface
Rs 232 interfaceRs 232 interface
Rs 232 interface
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 
Hart communication protocol
Hart communication protocolHart communication protocol
Hart communication protocol
 
Uart
UartUart
Uart
 
Rs232 protocal
Rs232 protocalRs232 protocal
Rs232 protocal
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Amba bus
Amba busAmba bus
Amba bus
 
Communication Protocols
Communication ProtocolsCommunication Protocols
Communication Protocols
 
Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)
 
Industrial communication
Industrial communicationIndustrial communication
Industrial communication
 
I2C
I2CI2C
I2C
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
 
Rs 422
Rs 422Rs 422
Rs 422
 
UART
UARTUART
UART
 
8251 USART
8251 USART8251 USART
8251 USART
 
Xilinx 4000 series
Xilinx 4000 seriesXilinx 4000 series
Xilinx 4000 series
 
Profibus
ProfibusProfibus
Profibus
 

Viewers also liked

Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232PRADEEP
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication SystemsLiving Online
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationRashmi
 
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)Ming-Hung Hseih
 
Modbus Protocol Introduction
Modbus Protocol IntroductionModbus Protocol Introduction
Modbus Protocol IntroductionPratik Vyas
 
Gps303 user manual 130920
Gps303 user manual 130920Gps303 user manual 130920
Gps303 user manual 130920Vitor Carvalho
 
Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC ITER-India, IPR
 
Development of a Modbus RTU to Modbus TCP/IP compiler
Development of a Modbus RTU to Modbus TCP/IP compilerDevelopment of a Modbus RTU to Modbus TCP/IP compiler
Development of a Modbus RTU to Modbus TCP/IP compilerPratik Vyas
 
Hmi vfd modbus communication
Hmi  vfd modbus communication Hmi  vfd modbus communication
Hmi vfd modbus communication Pankaj Pundir
 
Communication protocol presentation
Communication protocol presentationCommunication protocol presentation
Communication protocol presentationGopi A
 
communication-protocols
 communication-protocols communication-protocols
communication-protocolsAli Kamil
 
80 instrumentation interview questions with answers
80 instrumentation interview questions with answers80 instrumentation interview questions with answers
80 instrumentation interview questions with answerskirstymoore071
 
protection and relay scheme
protection and relay schemeprotection and relay scheme
protection and relay schemeinfosaneeshss
 

Viewers also liked (20)

Rs 232 y rs-485
Rs 232 y rs-485Rs 232 y rs-485
Rs 232 y rs-485
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
 
Modbus Data Communication Systems
Modbus Data Communication SystemsModbus Data Communication Systems
Modbus Data Communication Systems
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Modbus
ModbusModbus
Modbus
 
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
[Advantech] Modbus protocol training (ModbusTCP, ModbusRTU)
 
RTU vs TCP
RTU vs TCPRTU vs TCP
RTU vs TCP
 
Conector rs 485
Conector rs 485Conector rs 485
Conector rs 485
 
Modbus Protocol Introduction
Modbus Protocol IntroductionModbus Protocol Introduction
Modbus Protocol Introduction
 
Gps303 user manual 130920
Gps303 user manual 130920Gps303 user manual 130920
Gps303 user manual 130920
 
Rs 485
Rs 485Rs 485
Rs 485
 
Serial buses
Serial busesSerial buses
Serial buses
 
Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC Modbus TCP/IP implementation in Siemens S7-300 PLC
Modbus TCP/IP implementation in Siemens S7-300 PLC
 
Development of a Modbus RTU to Modbus TCP/IP compiler
Development of a Modbus RTU to Modbus TCP/IP compilerDevelopment of a Modbus RTU to Modbus TCP/IP compiler
Development of a Modbus RTU to Modbus TCP/IP compiler
 
Max 232
Max 232Max 232
Max 232
 
Hmi vfd modbus communication
Hmi  vfd modbus communication Hmi  vfd modbus communication
Hmi vfd modbus communication
 
Communication protocol presentation
Communication protocol presentationCommunication protocol presentation
Communication protocol presentation
 
communication-protocols
 communication-protocols communication-protocols
communication-protocols
 
80 instrumentation interview questions with answers
80 instrumentation interview questions with answers80 instrumentation interview questions with answers
80 instrumentation interview questions with answers
 
protection and relay scheme
protection and relay schemeprotection and relay scheme
protection and relay scheme
 

Similar to Rs232 485 fundamental

RS232-485_fundamental.ppt
RS232-485_fundamental.pptRS232-485_fundamental.ppt
RS232-485_fundamental.pptRenuJain58
 
Application Note 83 Fundamentals of RS 232 Serial Communications.pdf
Application Note 83 Fundamentals of RS 232 Serial Communications.pdfApplication Note 83 Fundamentals of RS 232 Serial Communications.pdf
Application Note 83 Fundamentals of RS 232 Serial Communications.pdfRhonda Cetnar
 
ComNet FDX72M1SHR Data Sheet
ComNet FDX72M1SHR Data SheetComNet FDX72M1SHR Data Sheet
ComNet FDX72M1SHR Data SheetJMAC Supply
 
Rs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface PinoutRs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface PinoutSais Abdelkrim
 
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docx
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docxR5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docx
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docxacarolyn
 
American Fibertek RR944C User Manual
American Fibertek RR944C User ManualAmerican Fibertek RR944C User Manual
American Fibertek RR944C User ManualJMAC Supply
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communicationVijay Kumar
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communicationVijay Kumar
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreAneesh Raveendran
 
ComNet FDX60M1A Data Sheet
ComNet FDX60M1A Data SheetComNet FDX60M1A Data Sheet
ComNet FDX60M1A Data SheetJMAC Supply
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxNaveenK365392
 

Similar to Rs232 485 fundamental (20)

RS232-485_fundamental.ppt
RS232-485_fundamental.pptRS232-485_fundamental.ppt
RS232-485_fundamental.ppt
 
Standards for Dividing Serial Interfaces
Standards for Dividing Serial InterfacesStandards for Dividing Serial Interfaces
Standards for Dividing Serial Interfaces
 
RS235,422,485.pdf
RS235,422,485.pdfRS235,422,485.pdf
RS235,422,485.pdf
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
Application Note 83 Fundamentals of RS 232 Serial Communications.pdf
Application Note 83 Fundamentals of RS 232 Serial Communications.pdfApplication Note 83 Fundamentals of RS 232 Serial Communications.pdf
Application Note 83 Fundamentals of RS 232 Serial Communications.pdf
 
An 960
An 960An 960
An 960
 
An 960
An 960An 960
An 960
 
ComNet FDX72M1SHR Data Sheet
ComNet FDX72M1SHR Data SheetComNet FDX72M1SHR Data Sheet
ComNet FDX72M1SHR Data Sheet
 
Rs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface PinoutRs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface Pinout
 
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docx
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docxR5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docx
R5232- RS422- 20mA Current Loop and 1EE488 are typical standard interf.docx
 
Siae datasheet
Siae datasheetSiae datasheet
Siae datasheet
 
Ds ltc100
Ds ltc100Ds ltc100
Ds ltc100
 
American Fibertek RR944C User Manual
American Fibertek RR944C User ManualAmerican Fibertek RR944C User Manual
American Fibertek RR944C User Manual
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communication
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Project_intership
Project_intershipProject_intership
Project_intership
 
ComNet FDX60M1A Data Sheet
ComNet FDX60M1A Data SheetComNet FDX60M1A Data Sheet
ComNet FDX60M1A Data Sheet
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptx
 

More from rounak077

Nanowire battery
Nanowire batteryNanowire battery
Nanowire batteryrounak077
 
Sample and hold instru
Sample and hold instru Sample and hold instru
Sample and hold instru rounak077
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer rounak077
 

More from rounak077 (8)

Nanowire battery
Nanowire batteryNanowire battery
Nanowire battery
 
Windpower
WindpowerWindpower
Windpower
 
Hvdc
HvdcHvdc
Hvdc
 
Windpower
WindpowerWindpower
Windpower
 
Timer 555
Timer 555Timer 555
Timer 555
 
Sample and hold instru
Sample and hold instru Sample and hold instru
Sample and hold instru
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer 
 
Capacitors
Capacitors Capacitors
Capacitors
 

Recently uploaded

Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 

Recently uploaded (20)

Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 

Rs232 485 fundamental

  • 1. RS232 and RS485RS232 and RS485 FundamentalFundamental
  • 2. RS232 and RS485RS232 and RS485  What is RS232  RS-232 Signals  RS-232 Line Driver  RS-232 Speed  RS-232 SW settings  What is RS-485  RS-485 Line Driver  RS-485 Network  RS-485 Half-duplex  RS-485 Full-duplex  RS-485 and DL devices  RS-232 vs RS-458
  • 3. What is RS-232What is RS-232  RS-232 is a popular communications interface for connecting modems and data acquisition devices (i.e. GPS receivers, electronic balances, data loggers, ...) to computers.  RS-232 can be plugged straight into the computer’s serial port (know as COM or Comm port).
  • 4. RS-232 SignalsRS-232 Signals  Architecturally RS-232 is a bi-directional point to point link. (serial port - PC side)  Two independent channels are established for two-way (full- duplex) communications.  RS-232 can also carry additional signals used for flow control (RTS, CTS) and modem control (DCD, DTR, DSR, RI).
  • 5. RS-232 SignalsRS-232 Signals  Common 25 pin D-shell connector pinout used for asynchronous data communications. PinPin SignalSignal 1 PGND Protective Ground 2 TXD Transmit Data 3 RXD Receive Data 4 RTS Ready To Send 5 CTS Clear To Send 6 DSR Data Set Ready 7 SG Signal Ground 8 CD Carrier Detect 20 DTR Data Terminal Ready 22 RI Ring Indicator (serial port - PC side)
  • 6. RS-232 Line DriverRS-232 Line Driver  Unbalanced Line Drivers  Each signal appears on the interface connector as a voltage with reference to a signal ground.  The “idle” state (MARK) has the signal level negative with respect to common whereas the active state (SPACE) has the signal level positive respest to the same reference.
  • 7. RS-232 SpeedRS-232 Speed  How fast can RS-232 be?  The maximum speed, according to the standard, is 20kbit/s. However, modern equipment can operate much faster than this. (i.e. Lynx can reach 115200 baud.)  The length of the cable also plays a part in maximum speed. The longer the cable and the slower the speed at which you can obtain accurate results. A large wire capacitance and inductance limits the maximum length of the cable and/or the maximum speed; Moreover higher is the capacitance of the cable higer is the interference between two adjacent signal wire. 50 feet (15m) @ max baudrate is commonly quoted as the maximum distance. It is not specified in EIA standard but it’s recommended respect these values.
  • 8. RS-232 sw settingsRS-232 sw settings  One byte of async data has:  Start Bit = 1 (always)  Data Bits = 8 (or 7)  Stop bits = 1 (or 2)  Parity = NONE (or EVEN or ODD) + 25 - 25
  • 9. What is RS-485What is RS-485  What is RS-485?  RS-485 is a EIA standard interface which is very common in the data acquisition world  RS-485 provides balanced transmission line which also can be shared in Multidrop mode.  It allows high data rates communications over long distances in real world environments.  How fast can RS-485 be?  RS-485 was designed for greater distance and higher baudrates than RS-232.  According to the standard, 100kbit/s is the maximum speed and distance up to 4000 feet (1200 meters) can be achieved.
  • 10. RS-485 Line DriverRS-485 Line Driver  Balanced Line Drivers  Voltage produced by the driver appears across a pair of signal wires that transmit only one signal. Both wires are driven opposite.  RS-485 driver has always the “Enable” direction control signal.  Differential system provides noise immunity, because much of the common mode signal can be rejected by the receiver. So ground shifts and induced noise signals can be nullified.
  • 11. RS-485 NetworkRS-485 Network  RS-485 provides Half-Duplex, Multidrop communications over a single twisted pair cable. MASTER SLAVE-1 SLAVE-2 SLAVE-3  The standard specifies up to 32 drivers and 32 receivers can share a multidrop network  Terminator resistors avoid reflected signal
  • 12. RS-485 Half-duplexRS-485 Half-duplex  Datalogic uses Half-Duplex configurations for Data Collecting and Master/Slave layouts.  Usually we talk about Multidrop network (i.e. MX4000,DPS9000) Slave 1 TX ENABLE RX Slave 2 TX ENABLE RX Slave N TX ENABLE RX RTX485+ RTX485- 485GND Master TX ENABLE RX
  • 13. RS-485 Full-duplexRS-485 Full-duplex  Potentially RS-485 interface can also use 4-wires to comunicate in multidrop mode but... Scanner TX ENABLE RX TX485+ TX485- RX485+ RX485- 485GND TX ENABLE RX Other device
  • 14. Comparison between RS422 & RS485Comparison between RS422 & RS485
  • 15. RS-232 vs RS-485RS-232 vs RS-485  The architectural difference between RS-232 and RS-485 is that 232 is a bi-directional point to point link, whereas 485 is a single channel bus.  Electrically, each 232 signal uses a single wire with symmetric voltages about a common ground wire. 485 uses two wires to carry the single signal differentially.  The big difference to the software is that only one device on a 485 bus can transmit at a time, whilst there is not similar limitation on RS232 because is a peer-to-peer link .
  • 16. RS-232 vs RS-485RS-232 vs RS-485 RS-232RS-232 RS-485RS-485  Mode of Operation SINGLE-ENDED DIFFERENTIAL  Total Number of Drivers 1 DRIVER 32 DRIVER and Receivers on One Line 1 RECEIVER 32 RECEIVER  Maximum Cable Length 50 FEET 4000 FEET  Maximum Data Rate @Max length 20kb/s 100kb/s  Driver Output Signal Level (Loaded Min.) Loaded +/-5V to +/-15V +/-1.5V  Driver Output Signal Level (Unloaded Max) Unloaded +/-25V +/-6V  Driver Load Impedance 3kΩ to 7kΩ 54Ω  Max. Driver Current in High Z State Power On N/A N/A  Max. Driver Current in High Z State Power Off +/-6mA @ +/-2v +/-100uA  Slew Rate (Max.) 30V/µS N/A  Receiver Input Voltage Range +/-15V -7V to +12V  Receiver Input Sensitivity +/-3V +/-200mV  Receiver Input Resistance 3kΩ to 7kΩ ≥ 12kΩ
  • 17. Data Format and ProtocolsData Format and Protocols  Information content passing through peer-to-peer connection is packed in a very simple structure:  <Header-string> <Code identifier ><INFO-FIELD><Terminator- string>  <Header-string> and <Terminator-string> are both configurable via software (device configuration parameters)  Most common generic Handshake are available/selectable with RS232 interface:  Hardware (RTS-CTS)  Software XON/XOFF