Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
---
title: If you're having trouble connecting a device to PLC IDE
title: "If you're having trouble connecting a device to PLC IDE"
id: 8824551178780
---

## Check this first
## Essential Pre-Setup Checklist

* If you haven't done so, start by checking the [Arduino PLC IDE Setup and Board's License Activation](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#instructions) tutorial.
* Make sure you've installed the latest version of the **Arduino PLC IDE** software.
* Make sure you're using a working USB cable that supports data transfer.
* When downloading the runtime, or connecting to the device, make sure you're [targeting the correct port](#about-ports).
* When opening a project created with an earlier version of the PLC IDE, some issues may occur. Try creating a new project (**File > New Project**) to see if this resolve the issue.
* You need **valid license** to download code to the device:
* Licenses for Portenta Machine Control are [available in the store](https://store.arduino.cc/products/plc-key-portenta-machine-control). Instructions for license activation [are available here](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#6-license-activation-with-product-key-portenta-machine-control).
* Arduino Opta is a pre-licensed product, just follow the [activation instructions](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#7-license-activation-with-pre-licensed-products-opta).
- If you haven't done so, start by checking the [Arduino PLC IDE Setup and Board's License Activation](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#instructions) tutorial.

---
- Ensure you've installed the latest version of the **Arduino PLC IDE** software.

<a id="about-ports"></a>
- Ensure you use a USB cable that supports data transfer.

## About port selection
- When downloading the runtime, or connecting to the device, ensure you're [targeting the correct port](#about-ports).

It's important to understand which ports to target when configuring your PLC device connection.
- When opening a project created with an earlier version of the PLC IDE, some issues may occur. Try creating a new project (**File > New Project**) to see if this resolves the issue.

- You need **valid license** to download the code to the device:

### List of ports
- Licenses for Portenta Machine Control are [available in the store](https://store.arduino.cc/products/plc-key-portenta-machine-control). Instructions for license activation [are available here](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#6-license-activation-with-product-key-portenta-machine-control).

#### Physical serial port (default)
- Arduino Opta is a pre-licensed product, just follow the [activation instructions](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#7-license-activation-with-pre-licensed-products-opta).

Initially, only this port will be available. Target this port when [downloading the runtime](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#4-download-the-runtime).
---

#### Virtual serial port (created by runtime)
## About port selection

When the runtime has been downloaded to your device, an additional (virtual) port will appear. Because the virtual port is created after the serial port, it will usually have a **higher port number**. Target this port when [configuring the Modbus communication](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#5-connect-to-the-device).
It's important to understand which ports to target when configuring your PLC device connection.

### How to identify which ports belong to your device

Expand All @@ -40,7 +35,7 @@ If other devices connected to your computer have open serial ports, you need to
1. Select **Project > Refresh current target** to refresh the list of ports.
1. Open the runtime sketch download port menu, and take note of the available ports.

![The runtime download widget.](img/plc-ide-runtime-ports.png)
![The runtime download widget.](img/plc-ide-runtime-ports.png)

1. Connect your PLC device.
1. Again, select **Project > Refresh current target** to refresh the list of ports.
Expand All @@ -53,7 +48,7 @@ You can also use the **Device Manger** in Windows:
1. Look for an **Arduino Opta** or **Portenta H7 MCUboot** container.
1. Click to expand the container:

![Arduino Opta ports in Device Manager.](img/device-manager.png)
![Arduino Opta ports in Device Manager.](img/device-manager.png)

1. Look for **USB Serial Device** items, and note the port names.

Expand Down Expand Up @@ -106,4 +101,5 @@ When downloading the runtime sketch, this error may appear in the console:
```

It can occur if the wrong port is selected in the manual sketch download widget. If you're unsure which port to use, see [About ports in PLC IDE](#about-ports).

<!-- markdownlint-disable-file HC001 -->
Loading