Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:sw:01-mervis:connecting-to-extension-xg18-hidden [2020/06/15 14:34] – [Connecting the Extension xG18 to Mervis IDE] avsetula | en:sw:01-mervis:connecting-to-extension-xg18-hidden [2021/08/05 12:40] (current) – avsetula | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <WRAP half column 81%> | <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:// | 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:// | ||
| + | |||
| + | 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 half column 15%> | <WRAP half column 15%> | ||
| ;;# | ;;# | ||
| - | < | + | < |
| < | < | ||
| + | < | ||
| + | < | ||
| < | < | ||
| ;;# | ;;# | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| - | 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. | ||
| 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 19: | 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:// | * [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| * local network connectivity (any network switch or router) | * local network connectivity (any network switch or router) | ||
| * [[https:// | * [[https:// | ||
| * at least one Unipi 1-Wire temperature sensors with an RJ45 connector | * at least one Unipi 1-Wire temperature sensors with an RJ45 connector | ||
| + | </ | ||
| + | |||
| ===== 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' | + | 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' |
| + | |||
| + | {{ : | ||
| - | {{ : | ||
| ===== 2 Attaching the xG18 to a Mervis IDE project ===== | ===== 2 Attaching the xG18 to a Mervis IDE project ===== | ||
| Line 54: | Line 60: | ||
| Now we need to add a device to the channel. You can do it bu Autodetection, | Now we need to add a device to the channel. You can do it bu Autodetection, | ||
| - | ==== 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 72: | Line 78: | ||
| {{ : | {{ : | ||
| - | ==== 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 94: | Line 100: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 3 Device configuration ===== | ===== 3 Device configuration ===== | ||
| Line 99: | 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 120: | Line 127: | ||
| {{ : | {{ : | ||
| + | |||
| ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ||
| Line 138: | Line 146: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 4 Practical example ===== | ===== 4 Practical example ===== | ||