Skip to content

Commit 7350625

Browse files
authored
PLC troubleshooting updates [HC-1645] (#480)
* Title change * Expand troubleshooting for connection error * Update filename to match title * Add section for compilation error * Add tip about antivirus * Add heading ids to fix TOC
1 parent fb56deb commit 7350625

File tree

1 file changed

+42
-14
lines changed

1 file changed

+42
-14
lines changed

content/Software Support/PLC IDE/If-PLC-IDE-isnt-working-with-your-device.md content/Software Support/PLC IDE/If-PLC-IDE-isnt-working-with-your-Opta-or-Portenta-Machine-Control.md

+42-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "If PLC IDE isn't working with your device"
2+
title: "If PLC IDE isn't working with your Opta or Portenta Machine Control"
33
id: 8824551178780
44
---
55

@@ -18,7 +18,7 @@ In this article:
1818

1919
---
2020

21-
## If you can't find the serial port for your device
21+
## If you can't find the serial port for your device {#if-you-cant-find-the-serial-port-for-your-device}
2222

2323
In this section:
2424

@@ -58,7 +58,7 @@ Try these steps in order. Refresh the list of ports after each step by selecting
5858

5959
---
6060

61-
## If there's an issue when you install the runtime
61+
## If there's an issue when you install the runtime {#if-theres-an-issue-when-you-install-the-runtime}
6262

6363
In this section:
6464

@@ -86,7 +86,7 @@ Follow these steps:
8686

8787
---
8888

89-
## If there's an issue when you connect to the device
89+
## If there's an issue when you connect to the device {#if-theres-an-issue-when-you-connect-to-the-device}
9090

9191
Learn what to do if you are unable to connect to the device.
9292

@@ -109,15 +109,27 @@ Unable to start the communication
109109
Choose 'On-line / Set up communication' to configure it
110110
```
111111

112-
Follow these steps:
112+
Try again after each step:
113113

114-
1. Ensure the correct port is configured for the Modbus protocol:
115-
1. Select **On-line > Set up communication**.
116-
1. Click on **Properties** to open the Modbus configuration.
117-
1. Under Communication, ensure the right **Port** is selected.
118-
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.
119-
1. Close other applications that may be using the port of your PLC device, such as the Serial Monitor in Arduino IDE.
120-
1. Restart your computer.
114+
1. Close other applications that may be using the port of your PLC device, such as the Serial Monitor in Arduino IDE. Alternatively, try restarting your computer.
115+
1. Ensure the correct port is configured for the Modbus protocol.
116+
117+
Do one of the following:
118+
119+
- Reinstall the runtime in bootloader mode to automatically configure the port:
120+
1. Double-press the RESET button.
121+
1. If a green LED is pulsing, the device is now in bootloader mode.
122+
1. Find the panel “<Device name> Configuration” panel for your device:
123+
1. If necessary, scroll down inside the configuration panel until you see the “Other” section.
124+
1. Open the Port menu and select **Automatic (bootloader)**.
125+
1. Click on **Download**.
126+
1. The process is complete when a line like this appears in the **Resources tab** of the **Output** panel:
127+
`C:\Users\USERNAME\Documents\TestProjectOpta\LLSketch\LLSketch.ino: sketch file downloaded`
128+
- Manually configure the correct port:
129+
1. Select **On-line > Set up communication**.
130+
1. Click on **Properties** to open the Modbus configuration.
131+
1. Under Communication, ensure the right **Port** is selected.
132+
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.
121133

122134
### If PLC IDE becomes unresponsive when connecting to the device
123135

@@ -135,7 +147,7 @@ Follow these steps:
135147

136148
---
137149

138-
## If you see an error when programming the device
150+
## If you see an error when programming the device {#if-you-see-an-error-when-programming-the-device}
139151

140152
When there is an issue installing the runtime or downloading your code to the device, error messages may appear in the **Resources** tab of the **Output** console.
141153

@@ -145,10 +157,20 @@ In this section:
145157
- [Cannot generate profile file error message: Error: Path not found](#cannot-generate-profile-file-error-message-error-path-not-found)
146158
- [Error: invalid path creating config dir](#error-invalid-path-creating-config-dir)
147159
- [“Error” in the bottom right corner on first use of the board](#error-in-the-bottom-right-corner-on-first-use-of-the-board)
160+
- [Cannot compile Sketch file (error code: -1)](#cannot-compile-sketch-file)
148161

149162
> [!NOTE]
150163
> If you see a **dfu-util** warning or error that's not in this list, see [dfu-util errors when uploading (exit status 74)](https://support.arduino.cc/hc/en-us/articles/11011849739804-dfu-util-errors-when-uploading-exit-status-74).
151164
165+
<!-- Prevent MD028 linter rule from triggering -->
166+
167+
> [!IMPORTANT]
168+
> Verify that the following paths are allowed by your antivirus software:
169+
>
170+
> - `C:\Program Files (x86)\Arduino PLC IDE`
171+
> - `C:\Program Files\Arduino PLC IDE Tools`
172+
> - `%LOCALAPPDATA%\T`
173+
152174
### Error pop-up: "Cannot download sketch file (error code: 1)"
153175

154176
This error may occur when attempting to download the runtime sketch.
@@ -213,9 +235,15 @@ Follow these steps:
213235
2. [Reformat the QSPI flash memory](https://support.arduino.cc/hc/en-us/articles/16206977438748-Reset-the-flash-memory-on-STM32H747-based-devices).
214236
3. Reinstall the runtime and try again.
215237

238+
### Cannot compile Sketch file (error code: -1)
239+
240+
This means there is a syntax error in the Arduino Sketch.
241+
242+
Review the code and try again.
243+
216244
---
217245

218-
## If there is an issue activating the license
246+
## If there is an issue activating the license {#if-there-is-an-issue-activating-the-license}
219247

220248
When activating the license you may see one of these errors:
221249

0 commit comments

Comments
 (0)