
The four parameters are baud rate, number of data bits, number of stop bits and also parity. In addition to that, two very important rules of RS485 communications are stated.
In order to get a firm grasp of the four communication port parameters, you have to understand how data is transmitted along wires. Specifically, you have to understand a particular type of transmission know as synchronous serial transmission.
In asynchronous serial transmission, the clock signal is removed and the synchronization of bit rate is done through software settings.
The bits per second rate is known as the baud rate when talking about serial transmission.
Each byte of data that is sent is framed by synchronization and error checking bits. Together with the data that is sent, the data stream is known as a data frame.
The number of data bits communication port parameter in RS485 allows the selection of either 7 or 8 bits. Many times, however, this selection is not given and the parameter is defaulted to 8 bits.
The start and stop bits mark the start and end of a serial data frame and is used by the receiver as such.
Parity is expressed by a single bit. It is a form of error checking. There can be even, odd or no parity.
We look at how two ASCII characters "OK" are transmitted serially.
A brief step by step description of the content that will be covered in the section.
A look at the different physical characteristics of the Direct Logic 05 PLC.
I show you how the hardware is connected on my workbench.
Using the PLC configuration software, the communication port parameters for Port #2 on the PLC is configured.
A brief description of a terminal application and what it does.
The terminal application will receive data from the PLC via the virtual serial port on the laptop. This lecture shows how to download and install the application.
The PLC is programmed to periodically send serial data to the laptop via the serial connection. It will be programmed to send the phrase "Hello World!".
The terminal application is used to view the serial data coming through the virtual serial port of the laptop from the PLC.
The baud rates are set up to be different between the PLC and the laptop. The effect of this is viewed via the terminal application.
One parameter at a time, the stop bits, data bits and parity are setup to be mismatched and the effect is seen via the terminal application.
A brief step by step description of the content that will be covered in the section.
The actual USB-to-RS485 converter is shown and the functions of each part is explained.
The actual physical MT-102 remote terminal unit is shown.
Via a schematic, the details of the connection of the computer to the RTU via the USB-to-RS485 converter is shown.
The actual physical connection between the Laptop and the MT-102 RTU is shown on the workbench.
The MT-102 is configured using it's programming/configuration software. Specifically, it is set up for communication via RS485. Modbus communication is also activated on the RS485 port.
For the Modbus communication to be understood, details are given on the Modbus Unit ID as well as some relevant memory blocks that will be read.
Modscan32 is set up to read memory blocks from the MT-102 RTU to show that the RS485 communication is operating as desired.
The Modscan32 port parameters are changed to simulate mismatched port settings, and the effect is shown.
The RS485 signal wires are interchanged to simulate a hardware connection issue and the effect on the communication is shown.
RS485 devices are typically connected in a pattern known as Daisy Chain.
A comparison is made between full duplex (RS232) and half duplex (RS485) transmission.
A comparison is made between Single-Ended (RS232) and Differential (RS485) data transmission systems.
Each RS485 device has a receiver and a transmitter.
A look at the voltages that are used by transmitters and receivers to transport binary data.
A look at how an output can be in one of 3 states. Binary 1, Binary 0 or high impedance ... and why this is necessary.
Signal to Noise on a communication line is described from a very practical standpoint and the significance of it in the design of serial communications systems is emphasized.
UTP cabling is used for most RS485 cabling installations. STP will be used in areas of very high EMI.
How the act of twisting wires together rejects noise.
RS-485 is the de facto workhorse of data communications in the field of plant automation.
It is very effective in applications with significant electrical interference (noise) requiring a long transmission distance. Thus, the standard is often used in industrial applications. It is as an inexpensive local area network (LAN) connection that allows multiple receivers to connect within a multi drop configuration. RS-485 does not include a communications protocol.
This course delivers the theoretical and practical aspects of RS-485 in a very effective way, so that at the end, you will be able to build, maintain and troubleshoot any RS-485 based network in the plan automation field. The course features a live physical connection between a PLC and a Computer via a USB-to-RS485 converter, an example that is key to effective troubleshooting of RS-485 systems.
After completing this course, you will be able to integrate devices from the same manufacturers and different manufacturers, that are RS-485 compliant, to form a complete seamless network.