Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:sw:01-mervis:creating-new-project-on-unipi11-hidden [2021/08/05 11:42] – avsetula | en:sw:01-mervis:creating-new-project-on-unipi11-hidden [2024/07/22 12:58] (current) – kcerny | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| ;;# | ;;# | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP center round alert 60%> | ||
| + | Mervis 2.6.5 and newer do not use this way anymore, please refer [[en: | ||
| </ | </ | ||
| Line 23: | Line 27: | ||
| - MicroSD-> | - MicroSD-> | ||
| - [[https:// | - [[https:// | ||
| - | - Downloaded archive with [[en:files:software:os-images:00-start# | + | - Downloaded archive with [[en:hw:03-unipi11:download-image:01-mervis|Mervis OS for Unipi 1.1/Lite]] |
| - Computer with [[en: | - Computer with [[en: | ||
| Line 31: | Line 35: | ||
| - [[en: | - [[en: | ||
| - [[en: | - [[en: | ||
| - | - [[en: | + | - [[en: |
| - Plug in the power supply and wait for at least a minute until the PLC's OS boots up. | - Plug in the power supply and wait for at least a minute until the PLC's OS boots up. | ||
| </ | </ | ||
| Line 99: | Line 103: | ||
| ===== Connecting inputs/ | ===== Connecting inputs/ | ||
| - | In Mervis IDE you now have Unipi 1.1/Lite attached. Construction-wise, | + | In Mervis IDE you now have Unipi 1.1/Lite attached. Construction-wise, |
| Add two **communication channels** to the PLC. TO add a channel right-click on the **PLC** name and then click on **Add Channel**. Repeat for the second channel. | Add two **communication channels** to the PLC. TO add a channel right-click on the **PLC** name and then click on **Add Channel**. Repeat for the second channel. | ||
| Line 109: | Line 113: | ||
| {{ : | {{ : | ||
| - | If you click on the first channel, its properties will appear in the right panel. The first item determines the channel' | + | If you click on the first channel, its properties will appear in the right panel. The first item determines the channel' |
| - | Click on **no protocol** and select **PlatformIO** from the list. By doing so more options will appear - all you need to do here is to make sure the **link protocol** is set to **I2C**. | + | Click on **no protocol** and select **PlatformIO** from the list. By doing so more options will appear - all you need to do here is to make sure the **link protocol** is set to **I²C**. |
| The first channel for relay outputs is already set. | The first channel for relay outputs is already set. | ||
| Line 125: | Line 129: | ||
| With both channels configured we can now move to add individual devices. These device definitions **are different between Unipi 1.1 and Unipi 1.1 Lite**, making the correct selection of definition necessary. | With both channels configured we can now move to add individual devices. These device definitions **are different between Unipi 1.1 and Unipi 1.1 Lite**, making the correct selection of definition necessary. | ||
| - | ==== I2C ==== | + | ==== I²C ==== |
| - | In the **left panel** right-click on the I2C channel. Select **Add Library Device** from the context menu. | + | In the **left panel** right-click on the I²C channel. Select **Add Library Device** from the context menu. |
| {{ : | {{ : | ||
| - | In the **Add Library Device** dialogue window you will see a list of devices. Find and expand the **Unipi (v1.1)** folder and move to the **I2C** subfolder. Select the suitable device definition accordingly (eg. **Analog-Inputs + Unipi1_Relays** for Unipi 1.1 and **Unipi1Lite_Relay** for Unipi 1.1 Lite). If you have the definition selected, click on the arrow icon {{: | + | In the **Add Library Device** dialogue window you will see a list of devices. Find and expand the **Unipi (v1.1)** folder and move to the **I²C** subfolder. Select the suitable device definition accordingly (eg. **Analog-Inputs + Unipi1_Relays** for Unipi 1.1 and **Unipi1Lite_Relay** for Unipi 1.1 Lite). If you have the definition selected, click on the arrow icon {{: |
| {{ : | {{ : | ||
| Line 145: | Line 149: | ||
| {{ : | {{ : | ||
| - | The new device will appear below the corresponding | + | The new device will appear below the corresponding |
| {{ : | {{ : | ||
| Line 245: | Line 249: | ||
| {{ : | {{ : | ||
| - | In the **Insert existing variable**, a list of all available variables, inputs and outputs of your controller will be displayed. If the list is nearly empty, you probably did not use Autogen to define variables available for your PLC. In that case, right-click on devices in both I2C and Modbus TCP channels and click on **Set autogen** in the context menu. | + | In the **Insert existing variable**, a list of all available variables, inputs and outputs of your controller will be displayed. If the list is nearly empty, you probably did not use Autogen to define variables available for your PLC. In that case, right-click on devices in both I²C and Modbus TCP channels and click on **Set autogen** in the context menu. |
| If you followed the guide closely, Simple Mode already generated all variables for the program. | If you followed the guide closely, Simple Mode already generated all variables for the program. | ||