Serial Communications RS232, RS485, RS422

Similar documents
Concept of Serial Communication

RS-232 Electrical Specifications and a Typical Connection

Dual Protocol Transceivers Ease the Design of Industrial Interfaces

M7 Series Modems for SCADA Applications

Kongsberg Mesotech Ltd.

Lecture #3 RS232 & 485 protocols

USING RS-232 to RS-485 CONVERTERS (With RS-232, RS-422 and RS-485 devices)

3 Definitions, symbols, abbreviations, and conventions

ROM/UDF CPU I/O I/O I/O RAM

LCC-10 Product manual

ZCS485 User s Manual. Version ZYPEX, Inc.

NETWORK. TE = Terminal Equipment (DTE - Data Terminal Equipment) NT = Network - Terminating Equipment (DCE - Data Circuit - Terminating Equipment)

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

This is by far the most ideal method, but poses some logistical problems:

S O P H I S T I C A T E D A U T O M A T I O N

Appendix C RS-485 Network

Intermittent Vibration 0.075

Modbus communication module for TCX2: AEX-MOD

SV613 USB Interface Wireless Module SV613

Table of Contents. HWIO-Gateway User Manual

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

CONV232/422 SERIAL DATA CONVERTER

There are many important factors when trying to achieve good, reliable communications between 2 devices.

MULTI-DROPS DIGITAL MODEM FOR PRIVATE LINE

Model Q46 Modbus Communications Manual

The Practical Limits of RS-485

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

RS-422/485 Application Note

TD_485 Transceiver Modules Application Guide 2017

CP485-4 User s Manual

Summary of Well Known Interface Standards

Data Acquisition Modules/ Distributed IO Modules

SPECIAL SPECIFICATION 6744 Spread Spectrum Radio

Specification Sym Notes Minimum Typical Maximum Units 900 MHz Operating Frequency Range MHz

G3P-R232. User Manual. Release. 2.06

2F. No.25, Industry E. 9 th Rd., Science-Based Industrial Park, Hsinchu, Taiwan Application Note of OGM220, AN001 V1.8

Introduction. Protocol Definitions. The RS-485 Standard. APPLICATION NOTE 3884 How Far and How Fast Can You Go with RS-485?

RS-232 to Current Loop Converters

Instruction Manual MTX-8485C MRX-8485C Four Channel Video Multiplexer with Bi-directional Data

Instruction Manual MTX-8485 MRX-8485 Four Channel Video Multiplexer with Bi-directional Data

M7 Over-The-Air Protocol. Overview. Technical Brief AN187 Rev A1

Instruction Manual MX-485-S Bi-directional RS485 Data Transceiver

SMARTALPHA RF TRANSCEIVER

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

USB Port Medium Power Wireless Module SV653

SP1481E/SP1485E. Enhanced Low Power Half-Duplex RS-485 Transceivers

Shenzhen ATC Technology CO.,LTD ATC. A-1 Serial Remote I/O Module. User Manual. V1.13 Edit:2018/01/

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

Instruction Manual RT-93285SL RR-93285SL Thirty-two Channel Video Multiplexer With Two Bi-directional Data Channels

SFP- GE- RJ45- AO. 1.25Gbps SFP Copper Transceiver

SP481E/SP485E. Enhanced Low Power Half-Duplex RS-485 Transceivers

Parameter Value Unit Notes

TD_CAN Transceiver Modules Application Guide 2017

Low Power Half-Duplex RS-485 Transceivers

HURRICANE Radio Modem. FULL DUPLEX Radio MODEM

PROMUX Distributed MODBUS I/O Modules Catalog and Design Guide

Universal RS232/CMOS to RS422/RS485 Converter

SP483E. Enhanced Low EMI Half-Duplex RS-485 Transceiver

FOSTCDR. Industrial Serial to Multimode Fiber Optic Converter PRODUCT INFORMATION B&B ELECTRONICS. Specifications Serial Technology

9600 bps, Dual Modem 170 Card Private Wire Only

B850 Boiler House Energy Monitor

NetBiter I/O Extender 4RO 6RTD 8DIO - DAIO User Manual Revision 1.00

Instruction Manual MT-945SL Four Channel Video Transmitter With Two Bi-Directional Data Channels

905U Wireless. New Products... New Solutions. The wireless alternative to expensive cabling... Simple but Reliable. Easy to Use

NMEA Protocol Converter 2 Plus 3 Users Guide

KAPPA M. Radio Modem Module. Features. Applications

DATA SHEET. MODULETEK: SFP10-CWDM-DML-xxxx-20KM-15DB-D10. 10Gb/s SFP+ CWDM 20km Transceiver. SFP10-CWDM-DML-xxxx-20KM-15DB-D10 Overview

CL4790 HARDWARE INTEGRATION GUIDE VERSION 3.0. Americas: Europe: Hong Kong:

MAX13051 ±80V Fault-Protected Can Transceiver with Autobaud

Instruction Manual MX-480 Bi-directional Multi-Protocol Data

Miniature Synchronous Multipoint Modems

SOLAR-360 : 360 Inclinometer, RS232 or RS485 Output

Integrity Instruments

Installation Guide Metretek RS-485 Adaptor Board

SP483E. Enhanced Low EMI Half-Duplex RS-485 Transceiver RO 1 VCC RE 2 DE 3 DI 4 GND. Description. Block Diagram

Series F4P Communications Guide

ZT3485E Low Power 3V 250kbps/16Mbps RS485 Transceivers Zywyn Corporation

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

Universal Converter Covers All the Bases- RS-232 to 4-wire RS-422, 2-wire or 4-wire RS-485

Characteristics and functioning

TRXQ1 RXQ1 FM NARROW BAND TRANSCEIVERS. RXQ1 Version. Applications. TRXQ1 Version

DISCONTINUED. Modulation Type Number of RF Channels 15

HD 48V01T... HD 4977T...

REMOTE TRACKING SOLUTION. User Manual Name. CS-P000-TS-1N-Rev.A This document provides the technical specification SOLUTION.

Series 2000 Reader System. Reader S251B RI-STU-251B. Reference Guide. April 2000 SCBU035

Transmission Line Drivers and Receivers for TIA/EIA Standards RS-422 and RS-423

Zywyn Corporation. Slew Rate Limit. Low- Power Shutdown. Rx Input Filtering

FDDI on Copper with AMD PHY Components

Is Now A Part Of. Visit for more information about MaxLinear Inc.

The Practical Limits of RS-485

T 3 OUT T 1 OUT T 2 OUT R 1 IN R 1 OUT T 2 IN T 1 IN GND V CC C 1 + C 1

CL4490 HARDWARE INTEGRATION GUIDE VERSION 1.0. FCC Notice.

PROMUX Distributed MODBUS I/O Modules Catalog and Design Guide

Installation and Operation Manual EVTM Stand-alone Encoder/Decoder

Selection guide. Communication accessories. Communication accessory selection guide. Characteristics

Enhanced Full Duplex RS-485 Transceivers

The i-7531 CAN Repeater

Unit D. Serial Interfaces. Serial vs. Parallel. Serial Interfaces. Serial Communications

A50/A51/A60. June 2008 (4th Edition) All Rights Reserved

Transcription:

Technical Brief AN236 Technical Brief AN236Rev A Serial Communications RS232, RS485, RS422 By John Sonnenberg S u m m a r y Electronic communications is all about interlinking circuits (processors or other integrated circuits) to create a symbiotic system. For those individual circuits to swap information, they must share a common standard communication protocol. Many communication protocols have been designed to achieve data exchange. The most common serial communication protocols are RS232, RS485, RS422, USB, and Ethernet. But because USB and Ethernet require powerful interfaces with complex protocols, many efficient devices utilized RS232, RS485, and RS422 which is what this note is all about. P r o t o c o l C o m p a r i s o n C h a r t Cable RS-232 RS-422 RS-485 Single ended Single ended multidrop Multi-drop Number of Devices 1 transmitter 1 receiver 1 transmitter 10 receivers 32 transmitters 32 receivers Communication Mode Full duplex Full duplex, Half duplex Full duplex, Half duplex Maximum Distance 50 feet at 19.2 kbps 4000 feet at 100 kbps 4000 feet at 100 kbps Max Data Rate (50 feet) 1 mbps 10 mbps 10 mbps S e r i a l P r o t o c o l s The RS232, RS485, RS422 serial protocols only relate to the hardware interface, not the software protocols used to make the devices communicate. There are many protocols that exist in the market place so one cannot assume interoperability between different manufacturers of "RS232" ports. Copyright 2018 1.

To define Instruments that supports a mixture of industry standard and proprietary serial protocols: M o d b u s R T U This protocol is used in industrial applications and most SCADA PLC s have drivers for Modbus RTU. The Modbus protocol is well published and every manufacturer determines its own addressing scheme. The manufacturer must supply the addressing scheme, register type, and Modbus commands that is supports. AS C I I p r o t o c o l ASCII is popular because it is easier than Modbus to write your own driver in a PLC or a PC. Most every manufacturer s protocols are not usually compatible. T h e A d v a n t a g e s o f R S 4 8 5 a n d R S 4 2 2 v s R S 2 3 2 RS485 and RS422 use differentiation. Two wires are required for each signal. The figure below shows a single RS485 / RS422 signal being transmitted. To transmit a logic 1, line B is high and line A is low. To transmit a logic 0, line B is low and line A is high. The advantage of this arrangement is that signals can be transmitted faster and over greater distances than is possible with a single wire. The main difference between RS422 and RS485 is the types of communications allowed. RS422 allows only one-way (simplex) communications between one driver, and as many as ten receiving devices. To control devices and need no feedback from them, RS-422 multidrop network will work well. RS485 was designed to address the multi-drop limitation of RS422, allowing up to 32 devices to communicate. RS- 2 3 2 An RS232 serial bus consists of just two communication wires - one for sending data and another for receiving. As such, serial devices should have two serial pins: the receiver, RX, and the transmitter, TX. Because the communication data is based upon the voltage on the wires, relative to the ground level, a ground connection must be made between devices that communicate with RS-232. Here is an RS232 wiring diagram: A digital 1 voltage is: -3V to -25V A digital 0 voltage is: +3V to +25V

Technical Brief AN236 RS232 data is sent serially, each bit is sent one after the next because there is only one data line in each direction. This mode of data transmission also requires that the receiver knows when the actual data bits are arriving so that it can synchronize itself to the incoming data. To achieve this a logic 0 is sent as a synchronization start bit. R S 4 2 2 (Sin g l e D r i v e r C o m m u n i c a t i o n s ) RS422 is designed to be tolerant of noise and forgiving of long cable runs. It is typically used between one transmitter receiver pair to one other transmitter receiver pair. Each output can drive up to 10 receivers. It achieves this by using a differential current drive output which has high immunity to noise. The noise immunity enables RS422 systems to operate over very long connections, much better than RS232, US, and Ethernet. Each signal uses two wires to pass the data. The differential voltage on the A and B wires represent the digital value. If B>A the value is 1. If A>B then value is 0. Input Signal A B Output Signal 0 1 0 0 1 0 1 1 R S 4 2 2 A S t a n d a r d S p e c i f i c a t i o n s 1 Driver, up to 10 Receivers Line Length for Max Data Rate: 40 Feet = 12m 10 Mbits/sec 400 Feet = 122m 1 Mbits/sec 4000 Feet = 1219m 100 kbits/sec A multi-drop wiring has many desirable advantages, RS422 devices cannot be used to construct a truly multi-point network. A true multi-point network consists of multiple drivers and receivers connected on a single bus, where any node can transmit or receive data. RS422 networks are often used in a half-duplex mode, Copyright 2018 3.

R S 4 8 5 ( M u l t i p l e D r i v e r C o m m u n i c a t i o n s ) RS485 is similar to RS422 upon which it is based. The main difference is that up to 32 transmitter receiver pairs may be present on the RS485 lines at one time. RS-485 is generally a 2-wire half duplex system. AN RS485 4-wire full duplex system is very similar to RS-422. RS485 is still popular. It is similar to the RS422 upon which it is based. The RS485 port has been used for many years. RS485 has many advantages over both RS232 and USB when it comes to applications in noisy industrial environments. RS422 devices can be used on an RS485 bus network if they are only used as recipients. The Primary features of RS-485 are: Balanced interface Multipoint operation from a single 5-V supply 7-V to +12-V bus common-mode range Up to 32 unit loads The main difference between RS422 and RS485 is that up to 32 transmitter receiver pairs may be present on the line at one time on RS485. A 120 Ohm resistor must be used to terminate the main line. The full-duplex implementation requires two signal pairs, (four wires).

Technical Brief AN236 R S 4 8 5 A S t a n d a r d Up to 32 Driver/Receiver Pairs Line Length Max Data Rate 40 Feet = 12m 10 Mbits/sec 400 Feet = 122m 1 Mbits/sec 4000 Feet = 1219m 100 kbits/sec In half-duplex, only one signal pair (A, B) is used. When instruments are described as having an RS485 interface this tells you nothing for sure about the signals being transmitted. Usually though only the Transmit Data (TX) and Receive Data (RX) of a normal serial port are converted to RS485 or RS422. The other signals of the serial port are not used. Three arrangements are commonplace: Write only, 4-wire (full duplex) and 2-wire (half duplex). The 2-wire RS-485 connection is shown below. Copyright 2018 5.

RS485 half-duplex can use just two wires to communicate with up to 32 device, one at a time. Each device has the ability to turn off its output drivers, so only the one device that is linking to the host outputs a signal on its TX lines. Terminating Resistors (RT) are connected across the ends of the A B wires. Cable trunk is commonly terminated with 120 ohm resistors. Because you are sending and receiving on the same two wires, you need to enable and disable the transmitter at the correct time so that you may perform proper communications. T e r m i n a t i o n R e s i s t o r s Termination resistors should be placed on both ends of the twisted pair of wires. The impedance value should be the same value of the characteristic impedance of the twisted pair and should be placed at the far ends of the cable. For cables that are 2000 feet or less, a termination resistor is not needed at baud rates of 9600bps or less. If a termination resister is required, a 120Ω or greater should be used. No more than 2 termination resistors should be used, one at each end of the RS485 transmission line. The A B wires should always be looped around together. Looping the wires helps reduce noise, and when electrical, magnetic, and RF noise couples onto the A B cable, by looping the cable, the noise goes equally onto both A and B wires, so the differential data has no differential noise. For additional information, contact: oration 2320 Cousteau Court Vista, CA 92081 - USA Phone: 1-760-444-5995 Fax: 1-760-444-5997 Email: sales@raveon.com