User Tools

Site Tools


connecting_external_devices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
connecting_external_devices [2018/07/11 09:07] – [Connection Diagnostics] akuzmukconnecting_external_devices [2022/01/14 21:37] (current) – ↷ Links adapted because of a move operation 127.0.0.1
Line 1: Line 1:
 +{{ network:conn-cable-3.png?nolink&100|}}
 +
 ====== External devices connecting ====== ====== External devices connecting ======
  
Line 14: Line 16:
 Wiring diagram of WEBHMI to devices with RS-485 interface. Wiring diagram of WEBHMI to devices with RS-485 interface.
  
-{{ ::rs-485_conn.png?direct&600 |}}+{{ network:rs-485_conn.png?direct&600 |}}
  
 Probably (if you already have experience with this interface), after reading the phrase RS-485, you immediately decide to use a 2-wire circuit, connecting to the standard terminals A and B, since only 2 wires are really enough to transmit the signal (a lot of specialists adhere to this opinion). However, this is a generally accepted error. The EIA/RS-485 standard says that 3rd wire is needed:  Probably (if you already have experience with this interface), after reading the phrase RS-485, you immediately decide to use a 2-wire circuit, connecting to the standard terminals A and B, since only 2 wires are really enough to transmit the signal (a lot of specialists adhere to this opinion). However, this is a generally accepted error. The EIA/RS-485 standard says that 3rd wire is needed: 
  
-{{ ::standard_485.png?direct&600 |}}+{{ network:standard_485.png?direct&600 |}}
  
 Sources for the formation this fallacy can be: Sources for the formation this fallacy can be:
Line 38: Line 40:
 Thus, for a reliable connection it is necessary to use a 3-wire circuit. The operation of the three-wire circuit is shown in the following figure:  Thus, for a reliable connection it is necessary to use a 3-wire circuit. The operation of the three-wire circuit is shown in the following figure: 
  
-{{ ::rs-485-sch.png?direct&600 |}}+{{ network:rs-485-sch.png?direct&600 |}}
  
 Here Vos is the transmitter bias voltage (measured relative to the common and midpoint of the voltage divider with the same shoulders connected to the A and B outputs), Vgpd is the voltage between the "common points" of the transmitter and receiver, Vnoise is the voltage of the electromagnetic " line, Vcm is the common-mode interference voltage applied to both inputs of the receiver, which adds up as Vgpd + Vos + Vnoise. The transmitter modulates the differential voltage, forming a signal. The receiver must recognize this signal in the presence of strong interference, and it does this very effectively, but within certain limits. The voltage values ​​for the transmitter and receiver are limited by the standard and range from -7 to + 12V (+/- 7V with respect to the 0..5V signal).  Here Vos is the transmitter bias voltage (measured relative to the common and midpoint of the voltage divider with the same shoulders connected to the A and B outputs), Vgpd is the voltage between the "common points" of the transmitter and receiver, Vnoise is the voltage of the electromagnetic " line, Vcm is the common-mode interference voltage applied to both inputs of the receiver, which adds up as Vgpd + Vos + Vnoise. The transmitter modulates the differential voltage, forming a signal. The receiver must recognize this signal in the presence of strong interference, and it does this very effectively, but within certain limits. The voltage values ​​for the transmitter and receiver are limited by the standard and range from -7 to + 12V (+/- 7V with respect to the 0..5V signal). 
Line 46: Line 48:
 As for the 2-wire circuit of the isolated RS-485, it is also unstable for the following reason. The system can be under parasitic induction in this case, but the current noise "general form" always eager to go back to the source, no matter where and how the chain captures interference, ie, including return through an isolated "general" scheme. This point can in turn become a source of electromagnetic interference for another part of the electronic circuit (for example, through capacitive parasitic links). A large explanation of the role of one wire is given only to save the user from the loss of valuable time for setting up communications. In addition, on long lines and at high exchange rates, it is recommended to use a matched cable (twisted pair on the screen, 120 ohm impedance) and termination resistors at the ends of the network segment. As for the 2-wire circuit of the isolated RS-485, it is also unstable for the following reason. The system can be under parasitic induction in this case, but the current noise "general form" always eager to go back to the source, no matter where and how the chain captures interference, ie, including return through an isolated "general" scheme. This point can in turn become a source of electromagnetic interference for another part of the electronic circuit (for example, through capacitive parasitic links). A large explanation of the role of one wire is given only to save the user from the loss of valuable time for setting up communications. In addition, on long lines and at high exchange rates, it is recommended to use a matched cable (twisted pair on the screen, 120 ohm impedance) and termination resistors at the ends of the network segment.
  
-===== Connection Diagnostics =====+===== Connection diagnostics =====
 First of all, after connecting the device and creating a connection, you can create a register in a known state, for example, the bit "always on", etc. After the register is created, its value (Value) will be displayed with the register list:  First of all, after connecting the device and creating a connection, you can create a register in a known state, for example, the bit "always on", etc. After the register is created, its value (Value) will be displayed with the register list: 
  
-{{ ::read-error.png?direct&912 |}}+{{ network:read-error.png?direct&912 |}}
  
 A dash line instead of value means that there is no connection established. In this case first double check the cable and the settings on both sides. Cables are sources of issues in most cases. A dash line instead of value means that there is no connection established. In this case first double check the cable and the settings on both sides. Cables are sources of issues in most cases.
connecting_external_devices.1531300060.txt.gz · Last modified: 2018/07/11 09:07 by akuzmuk

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki