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/05/07 07:28] – 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:// | ||
| 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 half column 15%> | ||
| + | ;;# | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | ;;# | ||
| + | </ | ||
| + | </ | ||
| 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:// | + | < |
| - | * [[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 24: | Line 41: | ||
| <WRAP center round box 95%> | <WRAP center round box 95%> | ||
| - | In case of adding the module to an already existing Modbus RTU channel, make sure the communication parameters (parity speed, etc.) are set correctly. If so, continue with [[# | + | In case of adding the module to an already existing Modbus RTU channel, make sure the communication parameters (parity speed, etc.) are set correctly. If so, continue with [[# |
| </ | </ | ||
| Line 43: | 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 61: | 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 83: | Line 100: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 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: | ||
| {{ : | {{ : | ||
| + | |||
| ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ||
| Line 127: | Line 146: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 4 Practical example ===== | ===== 4 Practical example ===== | ||