Câblage Rs485: A Comprehensive Guide

Author

Reads 1.2K

Complex network of electrical wiring and control panels in an industrial setting.
Credit: pexels.com, Complex network of electrical wiring and control panels in an industrial setting.

Câblage Rs485 is a type of wiring system used for serial communication.

It's used for long-distance communication, with a maximum cable length of 1200 meters.

Rs485 is a two-wire system, consisting of a data wire and a ground wire.

The system is widely used in industrial automation, process control, and other applications.

Expand your knowledge: Voicestream

Cable and Connection

When connecting RS485 devices, it's essential to get the cabling right. Use a shielded and twisted pair cable, such as Belden 3105A or as per EN:50290-2-23, IEC:60502, to connect all devices together.

The cable should have a characteristic impedance of 120 Ohm +/- 10%. For runs up to 300 meters, use a cable with a diameter of 0.22-0.5 mm2, and for longer runs up to 1200 meters, use a cable with a diameter of 0.5-0.75 mm2.

Grounding is also crucial. Each shield must be grounded at one side only, and overvoltage/overcurrent transient protection should be provided.

Related reading: Rs485 Communication Cable

Cables Types

When choosing the right cable for your MODBUS communications, it's essential to select a shielded and twisted pair cable. This type of cable is designed to improve immunity to electromagnetic disturbances.

Broaden your view: Rs232 Serial Cable

Credit: youtube.com, Networking Cables and Connectors Every IT Professional Should Know | Real World Examples

For runs up to 300 meters, a cable with a cross-sectional area of 0.22–0.5 mm² is recommended. This is a crucial factor to consider when planning your cable layout.

The characteristic impedance of the cable should be 120 Ohm +/- 10%. This ensures that the cable can handle the data transmission effectively.

Shielding is a must-have feature in MODBUS cables, and it can be achieved through braided or foil shielding. Both types are acceptable.

It's worth noting that each shield must be grounded at one side only to function properly. This is a critical detail to remember when installing your MODBUS network.

Here are some key specifications to keep in mind when selecting a shielded twisted-pair cable:

  • 0.22–0.5 mm² for runs up to 300 meters
  • 0.5–0.75 mm² for runs up to 1200 meters
  • Characteristic impedance: 120 Ohm +/- 10%
  • Use Shielded twisted-pair cable if the bus cable exceeds 3m.

Raccordement

Connecting your devices can be a bit tricky, but don't worry, I'm here to guide you through it.

First, make sure you're using the same color cable for all A terminals and a different color for all B terminals to avoid any issues with communication.

Credit: youtube.com, Fiber optic SC APC fast connector operation

The DAISY CHAIN method is the easiest way to connect devices in a MODBUS RTU – RS485 communication system. This method involves connecting the devices in a loop, with each device connected to the previous one.

When using a NI-USB-RS485 cable, you need to set 2-wire mode using a property node in your VI.

The pinout of the DB-9 is crucial to understand when wiring the TxD and RxD pairs yourself in two-wire mode. You must bridge the Tx+ and Rx+ connections, and the Tx- and Rx- connections, and then wire them to the far-end device's pin pair.

If you're experiencing issues with your connection, try swapping the two data lines. This is especially important if you're using devices from different manufacturers, as some may swap the RS-485 connections.

It's also a good idea to add a 0V connection if the devices have galvanic isolation. This will ensure a stable connection and prevent any issues with communication.

Here's a quick summary of the connection steps:

  • Aperçu de la zone de raccordement (Overview of the connection area)
  • Préparation du câble de raccordement (Preparing the connection cable)
  • Raccordement de la source de signaux à l’entrée numérique (Connecting the signal source to the digital input)
  • Raccordement des appareils RS485 (Connecting RS485 devices)
  • Connexion au réseau (Connecting to the network)
  • Raccordement de l’alimentation en tension (Connecting the power supply)
  • Remplacement de la SMA Com Gateway en présence d’appareils RS485 (Replacing the SMA Com Gateway in the presence of RS485 devices)

Terminal Resistances

Credit: youtube.com, Resistance Soldering Large Size Cables and Connectors

Terminal Resistances are crucial for avoiding signal reflections in communication cables. To prevent this, a 120 ohm terminal resistance must be turned on at the ends of the cable.

In our case, we need to turn ON the terminal resistor of the last device, whether it's an inverter or a meter. This is a required step to ensure proper signal transmission.

It's also worth noting that in some cases, turning ON the terminal resistor of the first device is also necessary. This adds an extra layer of protection against signal reflections.

By following these guidelines, you can ensure that your communication cables are functioning properly and efficiently.

For your interest: Can You Video Call on Signal

Full Duplex Operation

In full duplex operation, RS-485 can be made full-duplex by using four wires. This setup allows for simultaneous transmission of data in both directions.

RS-422 can also be made full-duplex with four wires, making it a viable option for certain applications. Full duplex operation is not necessary in many cases, especially since RS-485 is a multi-point specification.

RS-485 and RS-422 can interoperate with certain restrictions, making them compatible in some situations.

Signals

Credit: youtube.com, Top Signal Cable Connector Video

Signals are the backbone of cable and connection systems, allowing data to be transmitted efficiently.

In a cable, signals are typically transmitted through the center conductor, which is usually made of copper or another conductive material.

The signal strength and quality can be affected by the type of insulation used, with some materials providing better protection against electromagnetic interference.

A good signal can make all the difference in a connection, enabling fast and reliable data transfer.

In fact, a strong signal is essential for applications that require high-speed data transfer, such as online gaming and video streaming.

RS485 Standard

The RS485 standard is a widely used specification for serial communication over balanced, twisted-pair cables. It was initially developed by the EIA and later maintained by the TIA as TIA-485.

The standard was first published in April 1983 and has been widely adopted in industrial and commercial applications. Engineers and applications guides still refer to it as RS-485, even though the EIA has disbanded.

Credit: youtube.com, One Minute RS-485 Introduction

RS-485 only specifies the electrical characteristics of the generator and receiver, not any communications protocol. Other standards define the protocols for communication over an RS-485 link.

The standard defines three generator interface points: A, B, and C. Data is transmitted on lines A and B, while C is a ground reference. This means that the data is transmitted between the A and B terminals.

The logic states 1 and 0 are defined by the polarity between A and B terminals. A negative voltage on A with respect to B indicates a logic state 1, while a positive voltage indicates a logic state 0.

You might like: Data Communication

Network and Devices

In the world of RS485 cabling, network and devices play a crucial role in establishing reliable communication between systems.

RS485 networks can support up to 32 devices, making it a popular choice for industrial automation and other applications.

To ensure proper functioning, devices must be terminated with a resistor to prevent signal reflection and data corruption.

RS485 devices can be connected in a star or bus topology, depending on the specific requirements of the application.

Here's an interesting read: List of NFC-enabled Mobile Devices

Network Topology

Credit: youtube.com, Network Topologies (Star, Bus, Ring, Mesh, Ad hoc, Infrastructure, & Wireless Mesh Topology)

Network Topology is a crucial aspect of designing a reliable network.

The TSB-89A, Application Guidelines for TIA/EIA-485-A, specifically warns against using star topology due to potential signal reflections from long stubs.

This is because star topology can lead to branches that cause signal reflections, making data transmission unreliable.

It's essential to consider the potential consequences of using a particular topology and choose the one that best suits your network's needs.

A different take: Global Network

Converters And Repeaters

Converters and repeaters play a crucial role in expanding the reach of your network. They enable communication between devices that wouldn't normally be able to talk to each other.

Converters between RS-485 and RS-232 are available to allow a personal computer to communicate with remote devices. This is especially useful for connecting older equipment to newer systems.

By using repeaters, very large RS-485 networks can be formed. This is a game-changer for large-scale applications where a single connection just won't cut it.

Protocols

Credit: youtube.com, Network Protocols Explained: Networking Basics

RS-485 is an electrical interface that doesn't define a communication protocol. This means that even if devices from different manufacturers use RS-485 signal levels, interoperability is not guaranteed.

RS-485 doesn't specify the speed, format, or protocol of data transmission. This can lead to compatibility issues between devices from different manufacturers.

RS-485 is often used in applications where devices need to communicate with each other, but it's essential to note that signal levels alone don't ensure interoperability.

For your interest: Rs485 Protocol

Waveform Example

RS-485 lines are used for transmitting data, and one byte of data is transmitted using an asynchronous start-stop method. This method involves sending data one bit at a time.

The waveform of an RS-485 line shows the potentials of the A and B pins before, during, and after transmission. The waveform is shown in the diagram below.

Here's a breakdown of the waveform:

  • The A pin (blue) starts at a low potential before transmission.
  • The B pin (red) also starts at a low potential before transmission.
  • During transmission, the A pin goes high, and the B pin goes low.
  • The byte 0xD3 is transmitted, with the least significant bit first.
  • After transmission, the A pin goes low, and the B pin goes high again.

The RS-485 line uses an asynchronous start-stop method, which means that data is sent one bit at a time. This method allows for efficient data transmission over long distances.

Sn75hvd05: 2-Wire Cable Schematic Example

Coiled cable on a rooftop with solar panels, showcasing electrical installation for renewable energy.
Credit: pexels.com, Coiled cable on a rooftop with solar panels, showcasing electrical installation for renewable energy.

The SN75HVD05 is a popular RS485 driver that can be used with a 2-wire cable, but it requires some special considerations to ensure reliable operation.

The common-mode operation voltage range of the SN75HVD05 is -7 V to +12 V, which aligns with the minimum requirements of the RS-485 standard.

In a 2-wire connection, the ground potential differences (GPDs) between systems can cause problems if they exceed the common-mode operation voltage range of the device.

However, the SN75HVD05 can handle larger GPDs with the help of transceivers like the THVD1450 or SN65HVD20, which have wider common mode ranges.

Each RS-485 receiver presents a high resistance from the bus to its own ground, which can help to equalize the grounds between systems.

If the grounds between systems are independent and "floating" with respect to one another, the leakage currents through the RS-485 receivers can help to drift the grounds towards similar voltages.

Readers also liked: 2 Wire Rs485

Credit: youtube.com, Cabling Devices | Network Fundamentals Part 2

To set up a 2-wire connection with the NI-USB-RS485 cable, you need to set 2-wire mode using a property node in your VI.

Here's a summary of the pinout for the DB-9:

To bridge the connections for a 2-wire mode, you need to connect TxD+ and RxD+ to "plus", and TxD- and RxD- to "minus".

If the connection doesn't work, try swapping the polarity of the data lines and see if that resolves the issue.

Applications and Examples

RS-485 signals are used in a wide range of computer and automation systems. They're perfect for implementing the physical layer for data transmission between a controller and a disk drive in a computer system.

The physical layer for data transmission between a controller and a disk drive in a computer system is often implemented using RS-485 signals. This is especially useful for SCSI-2 and SCSI-3 systems.

RS-485 is used for low-speed data communications in commercial aircraft cabins' vehicle bus. This is because it requires minimal wiring and can share the wiring among several seats, reducing weight.

For more insights, see: Ip Office Telephone System

Credit: youtube.com, One Minute RS-485 Introduction

Commercial aircraft cabins' vehicle bus systems benefit from using RS-485 for low-speed data communications. This is because it's easy to implement and requires minimal wiring.

RS-485 is also used in programmable logic controllers and on factory floors. It's often used as the physical layer underlying many standard and proprietary automation protocols.

Programmable logic controllers and factory floors rely heavily on RS-485 for data transmission. This is because it's resistant to electromagnetic interference from motors and welding equipment.

RS-485 is used in building automation as the simple bus wiring and long cable length is ideal for joining remote devices. It's also used to control video surveillance systems or to interconnect security control panels and devices.

Building automation systems benefit from using RS-485 for data transmission. This is because it's easy to implement and requires minimal wiring.

Digital Command Control (DCC) for model railways often uses RS-485 for data transmission. The external interface to the DCC command station is often RS-485 used by hand-held controllers or for controlling the layout in a networked PC environment.

Model railways benefit from using RS-485 for data transmission. This is because it's easy to implement and requires minimal wiring.

If this caught your attention, see: Whatsapp Business Model

Frequently Asked Questions

Is RS485 obsolete?

No, RS-485 is not obsolete, as it is still used in various applications. Despite being a legacy interface, it remains a viable option for many industries.

Cory Hayashi

Writer

Cory Hayashi is a writer with a passion for technology and innovation. He started his career as a software developer and quickly became interested in the intersection of tech and society. His writing explores how emerging technologies impact our lives, from the way we work to the way we communicate.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.