Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:sw:01-mervis:connecting-to-unipi-extension-hidden [2020/06/16 07:33]
avsetula
en:sw:01-mervis:connecting-to-unipi-extension-hidden [2021/04/29 13:47]
avsetula [Connecting to Unipi extension]
Line 3: Line 3:
 <WRAP half column 81%> <WRAP half column 81%>
 The Unipi extensions are a convenient way how to extend the number of inputs and outputs at one location or make accessible at another one.  The Unipi extensions are a convenient way how to extend the number of inputs and outputs at one location or make accessible at another one. 
 +
 +The communication between controller and extension is via RS485 ports. The extension acts as a Modbus slave, which has extended support in the Mervis. ​
 </​WRAP>​ </​WRAP>​
 <WRAP half column 15%> <WRAP half column 15%>
 ;;# ;;#
 +<​html><​span class="​dev-tag dev-patron">​Patron</​span></​html>​ \\
 +<​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\
 +<​html><​span class="​dev-tag dev-gate">​Gate</​span></​html>​ \\
 <​html><​span class="​dev-tag dev-axon">​Axon</​span></​html>​ \\ <​html><​span class="​dev-tag dev-axon">​Axon</​span></​html>​ \\
-<​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\ 
 <​html><​span class="​dev-tag dev-extens">​Extension</​span></​html>​ <​html><​span class="​dev-tag dev-extens">​Extension</​span></​html>​
 ;;# ;;#
 </​WRAP>​ </​WRAP>​
 </​WRAP>​ </​WRAP>​
- 
-The communication between controller and extension is via RS485 ports. The extension acts as a Modbus slave, which has extended support in the Mervis. ​ 
  
 ===== HW connection ===== ===== HW connection =====
Line 20: Line 22:
 {{:​cs:​sw:​01-mervis:​connecting-the-unipi-extension-01-hw-connection.png|}} {{:​cs:​sw:​01-mervis:​connecting-the-unipi-extension-01-hw-connection.png|}}
  
-For communication to work, you have to have identical serial port parameters on both sides - speed, data bits, stop bits and parity. ​ Also, each extension unit has to have unique Modbus address. You can set those in two ways: by HW DIP switches or in the Mervis. +===== Module addressing and communication parameters ===== 
- +{{page>en:hw:04-extensions-communication-hidden}}
-==== DIP switches ​==== +
-DIP switches are small levers with two positions - up or down. If the lever is pushed down, its specific function is enabled.  +
- +
-{{:cs:sw:01-mervis:​dipswitch.png|}} +
- +
-On all Extension models, the DIP switches allow for configuring bitrate, parity and address. +
- +
-<​html><​span class="​kbBlueText">​The RS485-END</​span></​html>,​ placed next to RS-485 connectors, is intended for attaching or unattaching an internal 120Ω resistor between RS485-A and RS485-B ports for a proper termination of the RS-485 bus. The resistor needs to be attached if the said module is the last device on the bus - this instruction applies mostly for large serial buses several hundred meters long.   +
- +
-<​html><​span class="​kbBlueText">​Switches 1 to 3</​span></​html>​ serve for device addressing in a binary format, and can be used to set an address within 0-7 range.  +
- +
-^ Address ^ DIP no.1 ^ DIP no. 2 ^ DIP no. 3 ^ +
-| 0       | OFF       | OFF       | OFF       | +
-| 1       | ON        | OFF       | OFF       | +
-| 2       | OFF       | ON        | OFF       | +
-| 3       | ON        | ON        | OFF       | +
-| 4       | OFF       | OFF       | ON        | +
-| 5       | ON        | OFF       | ON        | +
-| 6       | OFF       | ON        | ON        | +
-| 7       | ON        | ON        | ON        | +
- +
-<​html><​span class="​kbBlueText">​DIP switch 4</​span></​html>​ configures the serial bus' bitrate. There are two bitrates available - **19200 bps** (''​OFF''​ position) and **9600 bps** (''​ON''​ position. +
- +
-<​html><​span class="​kbBlueText">​DIP switch 5</​span></​html>​ serves for switching between **even** parity (''​OFF''​ position) or **no** parity (''​ON''​ position). +
- +
-==== Software settings ==== +
-The connection parameters can be also set in Mervis. The HW settings take precedence, so to SW settings take place **you have to set the address to 0**. The rest will be described [[#​reconfiguration_of_the_unipi_extension|later]] in this tutorial.+
  
 ===== Using Unipi extension in the Mervis ===== ===== Using Unipi extension in the Mervis =====