You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/Software Support/PLC IDE/If-youre-having-trouble-connecting-a-device-to-PLC-IDE.md
+77-24Lines changed: 77 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "If you're having trouble connecting a device to PLC IDE"
3
3
id: 8824551178780
4
4
---
5
5
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.
7
7
8
8
> ![TIP]
9
9
> 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:
22
22
23
23
In this section:
24
24
25
+
-[About serial ports in PLC IDE](#about-serial-ports-in-plc-ide)
25
26
-[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.
27
37
28
38
### If you don't know which port to use
29
39
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.
31
41
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).
33
45
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.
35
49
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.
38
51
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.
40
53
1. Connect the board directly to your computer instead of through a USB hub.
41
54
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.
43
58
44
59
---
45
60
46
61
## If you can't install the runtime
47
62
48
63
In this section:
49
64
50
-
-[If nothing happens when downloading the runtime](#if-nothing-happens-when-downloading-the-runtime)
51
65
-[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.
52
71
53
72
### If nothing happens when downloading the runtime
54
73
55
-
Try selecting the Resources tab in the Output panel.
74
+
Follow these steps:
56
75
57
76
1. Under the Output panel, select the **Resources** tab.
58
77
59
78
1. Follow the linked instructions if you see any of these errors:
- If you see a different error, see the [If you see an error when downloading](#if-you-see-an-error-when-downloading) section.
65
82
66
83
1. Restart PLC IDE.
67
84
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.
71
86
72
87
---
73
88
74
89
## If you can't connect to the device
75
90
91
+
Learn what to do if you are unable to connect to the device.
92
+
76
93
In this section:
77
94
78
95
-[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)
79
96
-[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)
80
98
81
99
### If the "On-Line > Set up communications" and "On-line > Connect" options are disabled
82
100
@@ -91,7 +109,18 @@ Unable to start the communication
91
109
Choose 'On-line / Set up communication' to configure it
92
110
```
93
111
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.
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`.
126
172
127
173
### Error: invalid path creating config dir
128
174
129
175
You may see this error:
130
176
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.`
132
178
133
179
This error can occur when the `arduino-cli.yaml` file is copied from another user.
134
180
135
181
Do one of the following:
136
182
137
-
- Delete`arduino-cli.yaml` to use the standard Arduino CLI configuration.
138
183
- 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.
139
191
140
192
### “Error” in the bottom right corner on first use of the board
141
193
142
194
Follow these steps:
143
195
144
196
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.
146
199
147
200
---
148
201
@@ -156,7 +209,7 @@ When activating the license you may see one of these errors:
156
209
157
210
Try the following:
158
211
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.
160
213
161
214
- If you are using a company-owned computer, please follow these steps:
0 commit comments