Skip to content

Commit 628919c

Browse files
committed
Added additional detail + fixed some typos
1 parent 2a1afd3 commit 628919c

File tree

1 file changed

+77
-24
lines changed

1 file changed

+77
-24
lines changed

content/Software Support/PLC IDE/If-youre-having-trouble-connecting-a-device-to-PLC-IDE.md

Lines changed: 77 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "If you're having trouble connecting a device to PLC IDE"
33
id: 8824551178780
44
---
55

6-
Learn what do to do if you having an issue using your device with PLC IDE.
6+
Learn what to do if you having an issue using your device with PLC IDE.
77

88
> ![TIP]
99
> If you're just getting started with PLC IDE, see [Arduino® PLC IDE Setup & Device License Activation](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/).
@@ -22,61 +22,79 @@ In this article:
2222

2323
In this section:
2424

25+
- [About serial ports in PLC IDE](#about-serial-ports-in-plc-ide)
2526
- [If you don't know which port to use](#if-you-dont-know-which-port-to-use)
26-
- [If no COM port is available](#if-no-com-port-is-available)
27+
- [If your device does not appear on any port](#if-your-device-does-not-appear-on-any-port)
28+
29+
### About serial ports in PLC IDE
30+
31+
There are two contexts where you need to specify a serial port target.
32+
33+
- _When installing the runtime._
34+
- _When configuring the Modbus protocol._
35+
36+
Note that when the runtime has been installed, two serial ports may appear. When installing the runtime, the choice of port doesn't matter. When configuring the Modbus protocol, you should select the lower-numbered port as the target.
2737

2838
### If you don't know which port to use
2939

30-
[Find the correct port for your device in PLC IDE](https://support.arduino.cc/hc/en-us/articles/16724283965596-Find-the-correct-port-for-your-device-in-PLC-IDE){.link-chevron-right}
40+
In some cases, it may be challenging to determine which serial port belongs to your PLC device. This is especially true if other devices or interfaces have ports open on your computer.
3141

32-
### If no COM port is available
42+
1. If two ports are open, and they are numbered COM<N> and COM<N+1> (for example, COM20 and COM21), it's likely that both are created by your PLC device. Choose the **lower-numbered port** when configuring PLC IDE.
43+
2. If many ports are available, try disconnecting other USB devices that may be using serial communication and select **Project > Refresh current target** to refresh the list of ports.
44+
3. If you're still unsure what port to choose, see [Find the correct port for your device in PLC IDE](https://support.arduino.cc/hc/en-us/articles/16724283965596-Find-the-correct-port-for-your-device-in-PLC-IDE).
3345

34-
Follow these steps:
46+
### If your device does not appear on any port
47+
48+
Try these steps in order. Refresh the list of ports after each step by selecting **Project > Refresh current target** in the menu bar.
3549

36-
1. Ensure your device is connected using a working data USB cable. Connect your board with a data USB cable, not a charging-only cable.
37-
1. Disconnect and reconnect your board to reset its power.
50+
1. Disconnect and reconnect your PLC device.
3851
1. Check for any system notifications that may prompt you to grant USB device permissions, and allow them if they appear.
39-
1. Confirm the cable is working by testing it with another device or trying a different cable.
52+
1. Ensure your device is connected using a working data USB cable. Connect your board with a data USB cable, not a charging-only cable. Confirm the cable is working by testing it with another device or trying a different cable.
4053
1. Connect the board directly to your computer instead of through a USB hub.
4154
1. If the board is still not detected, try a different USB port on your computer.
42-
1. Press the `RESET` button twice to put it into Bootloader mode. On the Opta, the button is located in a small hole, similar to those on a router, so you'll need a pointed object. On the PMC, it's a standard button that you can press directly.
55+
1. Press the `RESET` button twice to put it into Bootloader mode and try to [install the runtime](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/#3-download-the-runtime).
56+
- On the Opta, the button is located in a small hole, similar to those on a router, so you'll need a pointed object.
57+
- When installing the runtime, select the **Automatic (Bootloader)** target.
4358

4459
---
4560

4661
## If you can't install the runtime
4762

4863
In this section:
4964

50-
- [If nothing happens when downloading the runtime](#if-nothing-happens-when-downloading-the-runtime)
5165
- [If there is an error when installing the runtime](#if-there-is-an-error-when-installing-the-runtime)
66+
- [If nothing happens when downloading the runtime](#if-nothing-happens-when-downloading-the-runtime)
67+
68+
### If there is an error when installing the runtime
69+
70+
See the [If you see an error when downloading](#if-you-see-an-error-when-downloading) section.
5271

5372
### If nothing happens when downloading the runtime
5473

55-
Try selecting the Resources tab in the Output panel.
74+
Follow these steps:
5675

5776
1. Under the Output panel, select the **Resources** tab.
5877

5978
1. Follow the linked instructions if you see any of these errors:
60-
61-
- [Error: "Cannot download sketch file error code: 1"](#error-cannot-download-sketch-file-error-code-1)
6279
- [Cannot generate profile file error message: Error: Path not found](#cannot-generate-profile-file-error-message-error-path-not-found)
63-
64-
1. Ensure you've installed the latest version of the Arduino PLC IDE software from the Arduino Software page.
80+
- [Error: invalid path creating config dir](#error-invalid-path-creating-config-dir)
81+
- If you see a different error, see the [If you see an error when downloading](#if-you-see-an-error-when-downloading) section.
6582

6683
1. Restart PLC IDE.
6784

68-
### If there is an error when installing the runtime
69-
70-
See the [If you see an error when downloading](#if-you-see-an-error-when-downloading) section.
85+
1. Ensure you've installed the latest version of the Arduino PLC IDE software from the Arduino Software page.
7186

7287
---
7388

7489
## If you can't connect to the device
7590

91+
Learn what to do if you are unable to connect to the device.
92+
7693
In this section:
7794

7895
- [If the "On-Line > Set up communications" and "On-line > Connect" options are disabled](#if-the-on-line--set-up-communications-and-on-line--connect-options-are-disabled)
7996
- [Error: “Unable to start the communication”](#error-unable-to-start-the-communication)
97+
- [If PLC IDE becomes unresponsive when connecting to the device](#if-plc-ide-becomes-unresponsive-when-connecting-to-the-device)
8098

8199
### If the "On-Line > Set up communications" and "On-line > Connect" options are disabled
82100

@@ -91,7 +109,18 @@ Unable to start the communication
91109
Choose 'On-line / Set up communication' to configure it
92110
```
93111

94-
Resolve the issue by selecting **On-line > Set up communication** and checking the settings. See [Connect to the Device](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license#5-connect-to-the-device) for help.
112+
Resolve the issue by selecting **On-line > Set up communication** and checking the settings. See [Connect to the Device](https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license/#4-connect-to-the-device) for help.
113+
114+
### If PLC IDE becomes unresponsive when connecting to the device
115+
116+
PLC IDE may become unresponsive if there isn't a response on the targeted port.
117+
118+
Follow these steps:
119+
120+
1. Select **On-line > Set up communication**.
121+
1. Click on **Properties** to open the Modbus configuration.
122+
1. Under Communication, ensure the right **Port** is selected.
123+
1. See the [If you can't find the serial port for your device](#if-you-cant-find-the-serial-port-for-your-device) section for help finding the right port.
95124

96125
---
97126

@@ -122,27 +151,51 @@ Solutions:
122151

123152
### Cannot generate profile file (error message: Error: Path not found)
124153

125-
If you see this error, it means that the sketch.yaml file is missing from `C:\Users\<Profile-Name>\AppData\Local\T\sketch.yaml`.
154+
If you see this error, it means that the `sketch.yaml` file is missing from `C:\Users\USERNAME\AppData\Local\T\sketch.yaml`.
155+
156+
When installing PLC IDE, a **User Account Control** prompt will ask for administrator privileges. Some files that are used by PLC IDE will be created in the `C:\Users\ADMIN-USERNAME\AppData\Local\T` directory for that admin account.
157+
158+
Do one of the following:
159+
160+
- If your account has admin privileges, you can simply reinstall PLC IDE to create the missing files for your user.
161+
- Run PLC IDE using the same admin account that installed it:
162+
1. Close PLC IDE.
163+
2. Right-click PLC IDE and select **Run as administrator**.
164+
3. Continue using the same admin credentials that were used when installing PLC IDE.
165+
- Copy the files to configure a non-admin user for PLC IDE:
166+
1. Sign in as an admin.
167+
2. Copy the `C:\Users\ADMIN-USERNAME\AppData\Local\T` folder.
168+
3. Paste the folder into the `C:\Users\REGULAR-USERNAME\AppData\Local\T` directory.
169+
4. Open the `C:\Users\REGULAR-USERNAME\AppData\Local\T\arduino-cli.yaml` file in a text editor.
170+
5. Replace `ADMIN-USERNAME` with `REGULAR-USERNAME` in all file paths inside the file.
171+
6. Save the changes to `arduino-cli.yaml`.
126172

127173
### Error: invalid path creating config dir
128174

129175
You may see this error:
130176

131-
`Error: invalid path creating config dir: C:\Users\Sweden UX\AppData\Local\T\A error: mkdir C:\Users\<User>\AppData: Cannot create a file when that file already exists.`
177+
`Error: invalid path creating config dir: C:\Users\USERNAME\AppData\Local\T\A error: mkdir C:\Users\<User>\AppData: Cannot create a file when that file already exists.`
132178

133179
This error can occur when the `arduino-cli.yaml` file is copied from another user.
134180

135181
Do one of the following:
136182

137-
- Delete`arduino-cli.yaml` to use the standard Arduino CLI configuration.
138183
- Open `arduino-cli.yaml` in a text editor and change all paths to use your own user folder.
184+
1. Open the `C:\Users\USERNAME\AppData\Local\T\arduino-cli.yaml` file in a text editor.
185+
2. Replace `OTHER-USERNAME` with `USERNAME` in all file paths inside the file.
186+
3. Save the changes to `arduino-cli.yaml`.
187+
- Run PLC IDE using the same admin account that installed it:
188+
1. Close PLC IDE.
189+
2. Right-click PLC IDE and select **Run as administrator**.
190+
3. Continue using the same admin credentials that were used when installing PLC IDE.
139191

140192
### “Error” in the bottom right corner on first use of the board
141193

142194
Follow these steps:
143195

144196
1. In the Output panel, open the **Resources** tab and check for error messages.
145-
2. [Reformat the QSPI flash memory.](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices)
197+
2. [Reformat the QSPI flash memory](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices).
198+
3. Reinstall the runtime and try again.
146199

147200
---
148201

@@ -156,7 +209,7 @@ When activating the license you may see one of these errors:
156209

157210
Try the following:
158211

159-
- Upload the [Memory Partitioning sketch](https://docs.arduino.cc/tutorials/opta/memory-partitioning/) using Arduino IDE. Then, try to activate the license again.
212+
- [Reformat the QSPI flash memory](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices). Then, try to activate the license again.
160213

161214
- If you are using a company-owned computer, please follow these steps:
162215

0 commit comments

Comments
 (0)