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/04/23 11:38] – [2.2 Manual addition using a library device] jan_kozak | 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) | ||
| - | * Extension xG18 module | + | * [[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 ===== | ||
| Create a new project or integrate the device into an already-existing one. Follow the steps below: | Create a new project or integrate the device into an already-existing one. Follow the steps below: | ||
| + | <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 [[# | ||
| + | </ | ||
| - | You can use an existing Modbus RTU channel (if you have one). In this case, you need only to ensure all communication parameters (bitrate, parity etc.) are set correctly. | + | Alternatively, create a new channel. Right-click on the PLC's name and choose |
| - | + | ||
| - | Alternatively | + | |
| {{ : | {{ : | ||
| Line 40: | Line 58: | ||
| {{ : | {{ : | ||
| - | ==== 2.1 Automatic detection using module autodetect ==== | + | Now we need to add a device to the channel. You can do it bu Autodetection, |
| + | |||
| + | ==== 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 58: | 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**. | ||
| {{ : | {{ : | ||
| - | Expand the **Unipi technology** folder and then the underlyin | + | Expand the **Unipi technology** folder and then the underlying |
| {{ : | {{ : | ||
| Line 80: | Line 100: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 3 Device configuration ===== | ===== 3 Device configuration ===== | ||
| Line 85: | 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 106: | Line 127: | ||
| {{ : | {{ : | ||
| + | |||
| ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ==== 3.2 Hardware configuration of communication parameters through DIP switches ==== | ||
| Line 124: | Line 146: | ||
| {{ : | {{ : | ||
| + | |||
| ===== 4 Practical example ===== | ===== 4 Practical example ===== | ||