Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sw:01-mervis:connecting-to-extension-xg18-hidden [2020/05/13 13:41] avsetula |
en:sw:01-mervis:connecting-to-extension-xg18-hidden [2021/08/05 12:40] (current) avsetula |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Connecting the Extension xG18 to Mervis IDE ====== | ====== Connecting the Extension xG18 to Mervis IDE ====== | ||
- | Are you looking for an affordable temperature measurement solution, need to read the temperature at longer distances, or want to automate a boiler room? Then the Extension xG18 is the ideal solution. | + | <WRAP group> |
+ | <WRAP half column 81%> | ||
+ | Are you looking for an affordable temperature measurement solution, need to read the temperature at longer distances, or want to automate a boiler room? Then the [[https://www.unipi.technology/unipi-extension-xg18-p331|Extension xG18]] is the ideal solution. | ||
This compact module is designed as a simple and reliable tool capable of reading temperature from up to 8 Unipi 1-Wire temperature sensors (DS18B20). Modbus RTU protocol on RS-485 serial line is used to provide the data to the control system. | This compact module is designed as a simple and reliable tool capable of reading temperature from up to 8 Unipi 1-Wire temperature sensors (DS18B20). Modbus RTU protocol on RS-485 serial line is used to provide the data to the control system. | ||
+ | </WRAP> | ||
+ | <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-extens">Extension</span></html> | ||
+ | ;;# | ||
+ | </WRAP> | ||
+ | </WRAP> | ||
Each 1-Wire channel is dedicated for just the one 1-Wire sensor with a RJ45 connector, which highly increases reliabily of the measurements. | Each 1-Wire channel is dedicated for just the one 1-Wire sensor with a RJ45 connector, which highly increases reliabily of the measurements. | ||
Line 8: | Line 21: | ||
The following guide will lead you through both hardware and software settings, and will also show you how to set it up in Mervis IDE. | The following guide will lead you through both hardware and software settings, and will also show you how to set it up in Mervis IDE. | ||
- | ==== Prerequisites ==== | + | <WRAP center round box> |
- | * [[https://www.unipi.technology/axon-c20 | Unipi controllers]] with at least [[en:files:software:os-images:00-start|Mervis OS v2.2.0]] and [[en:files:software:mervis:00-start|Mervis IDE v2.3.0]] | + | <html><span class="kbBlue-H4alt">Prerequisites:</span></html> |
- | * [[https://www.unipi.technology/accessories-c4|24V DC power supply]] | + | * [[https://www.unipi.technology/axon-c20 | Unipi controllers]] and [[en:files:software:mervis:00-start|Mervis IDE v2.3.0]] |
+ | * [[https://www.unipi.technology/accessories-c4|24 V⎓ power supply]] | ||
* local network connectivity (any network switch or router) | * local network connectivity (any network switch or router) | ||
* [[https://www.unipi.technology/en/rozsirujici-moduly-c40|Extension xG18 module]] | * [[https://www.unipi.technology/en/rozsirujici-moduly-c40|Extension xG18 module]] | ||
* at least one Unipi 1-Wire temperature sensors with an RJ45 connector | * at least one Unipi 1-Wire temperature sensors with an RJ45 connector | ||
+ | </WRAP> | ||
+ | |||
===== 1 Connecting xG18 to an Unipi PLC ===== | ===== 1 Connecting xG18 to an Unipi PLC ===== | ||
- | Extension xG18 communicates with the PLC using a two-wire RS-485 connection. The module can be powered by the same power source as the PLC (if the power supply's specification allows it). Alternatively, you can use a standalone 5-24V DC power supply. As to temperature sensors, simply plug them into the available RJ45 ports. | + | Extension xG18 communicates with the PLC using a two-wire RS-485 connection. The module can be powered by the same power source as the PLC (if the power supply's specification allows it). Alternatively, you can use a standalone 5-24 V⎓ power supply. As to temperature sensors, simply plug them into the available RJ45 ports. |
+ | |||
+ | {{ :en:sw:01-mervis:connecting-to-extension-xg18-001-en.png?nolink&800 |}} | ||
- | {{ :en:sw:01-mervis:connecting-to-extension-xg18-001-en.png?nolink |}} | ||
===== 2 Attaching the xG18 to a Mervis IDE project ===== | ===== 2 Attaching the xG18 to a Mervis IDE project ===== | ||
Line 43: | Line 60: | ||
Now we need to add a device to the channel. You can do it bu Autodetection, or, if you don't have the xG18 at hand, manually. | Now we need to add a device to the channel. You can do it bu Autodetection, or, if you don't have the xG18 at hand, manually. | ||
- | ==== 2.1 Automatic detection using module autodetect ==== | ||
+ | ==== 2.1 Automatic detection using module autodetect ==== | ||
Right-click on the Modbus_RTU channel and choose **Unipi - modules autodetect**. | Right-click on the Modbus_RTU channel and choose **Unipi - modules autodetect**. | ||
Line 61: | Line 78: | ||
{{ :en:sw:01-mervis:connecting-to-extension-xg18-008-en.png |}} | {{ :en:sw:01-mervis:connecting-to-extension-xg18-008-en.png |}} | ||
- | ==== 2.2 Manual addition using a library device ==== | ||
+ | ==== 2.2 Manual addition using a library device ==== | ||
Right-click on the Modbus_RTU channel and click on **Add Library Device**. | Right-click on the Modbus_RTU channel and click on **Add Library Device**. | ||
Line 83: | Line 100: | ||
{{ :en:sw:01-mervis:connecting-to-extension-xg18-013-en.png |}} | {{ :en:sw:01-mervis:connecting-to-extension-xg18-013-en.png |}} | ||
+ | |||
===== 3 Device configuration ===== | ===== 3 Device configuration ===== | ||
Line 88: | Line 106: | ||
The following communication parameters can be set via DIP switches: | The following communication parameters can be set via DIP switches: | ||
- | * Address .................................. 1 – 15 (Address 0 = SW configuration from Modbus registers is used) | + | * Address .................................. 1–15 (Address 0 = SW configuration from Modbus registers is used) |
* Baud rate ............................... 9600 / 19200 baud | * Baud rate ............................... 9600 / 19200 baud | ||
* Parity ....................................... none / even | * Parity ....................................... none / even | ||
Line 109: | Line 127: | ||
{{ :en:sw:01-mervis:connecting-to-extension-xg18-015-en.png |}} | {{ :en:sw:01-mervis:connecting-to-extension-xg18-015-en.png |}} | ||
+ | |||
==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ||
Line 127: | Line 146: | ||
{{ :en:sw:01-mervis:connecting-to-extension-xg18-018-en.png |}} | {{ :en:sw:01-mervis:connecting-to-extension-xg18-018-en.png |}} | ||
+ | |||
===== 4 Practical example ===== | ===== 4 Practical example ===== |