1/30/2025

Getting Started with PLC runtime on Finder Opta PLC

A step-by-step guide for setting up the Arduino Opta PLC runtime for the first time, including how to solve the 'Error Cannot download sketch file (error code 1).'

Getting Started with PLC runtime on Finder Opta PLC

Overview

This tutorial walks you through how to set up and work with the Finder Opta PLC runtime for the first time. We’ll also address a common error you might encounter—“Cannot download sketch file (error code 1).” If you follow these instructions step by step, you should be able to get your Opta PLC up and running smoothly.

Note: This guide assumes you’re on a Windows PC, although the general steps should be similar on other operating systems.

Prerequisites

Hardware

  • Opta PLC
  • USB-C cable that supports data transfer

Software


Step-by-Step Guide

1. Download and Install Necessary Tools

  1. Install Arduino IDE: If not already installed, download the Arduino IDE from here and follow the setup instructions.
  2. Install Arduino PLC IDE: You’ll find the download on the same page. Install it as well.

2. Arduino IDE Configuration

  1. Open Arduino IDE.
  2. Go to Tools → Board → Boards Manager.
  3. Search for Arduino mbed os opta and click Install.
    Arduino IDE Screenshot - Install Arduino drivers
  4. Accept possible unknown publisher notification.
    This should install all required tooling to communicate with the Opta PLC on your PC.

3. Connect the OPTA to Your PC

  1. Use a USB-C Cable (one that supports data transfer).
  2. Plug the Opta PLC into your computer.

4. Enter DFU Mode on the OPTA

  1. Locate the Reset button on the device.
  2. Double-click this reset button to set the device into DFU (Device Firmware Upgrade) mode.
    Arduino Opta photo - Enter DFU mode using reset button
  3. (Optional) Check COM ports in your device manager to confirm two new devices appear (e.g., COM7 and COM10).
    Windows device manager - Select com port

5. Arduino PLC IDE Configuration

  1. Open the Arduino PLC IDE.
  2. Open or create a Project.
  3. Click Refresh current target to ensure the IDE recognizes your device.
  4. Select the First COM Port in the Arduino PLC IDE Communication settings (the highest COM port number). In our example, it’s COM10 inside the project overview window.
    Arduino PLC IDE - Select com port

6. Set Up Modbus Communication

  1. Go to Online → Setup Communication → Properties in the PLC IDE.
  2. Select the Modbus protocol, then click Properties again.
  3. In the Port dropdown, select the lowest COM port number of the two new ports you identified earlier (in our example, COM7).
    Modbus Port Selection Screenshot

7. Download Your PLC Project

  1. Click the Download button in the Arduino PLC IDE (this uses the previously chosen highest port, e.g., COM10).
  2. If prompted by a firewall access alert, click Allow (this only appears the first time).
  3. Check the Output window in Arduino PLC IDE for a confirmation message indicating a successful download.
    Successful Download Screenshot

8. Connect to the Opta PLC

  1. Click the Connect to target button.
  2. If the connection is successful, you’re ready to interact with and program the Opta PLC.

Connect to Target Screenshot

9. Activate the PLC Runtime

  1. Finally, to fully leverage your Opta PLC, click the Activate PLC runtime button.
  2. Follow any on-screen prompts to complete the activation.

Common Issue: “Cannot Download Sketch File or cannot compile sketch file error code 1”

  • Check DFU Mode: Make sure you double-clicked the reset button and that the device is in the correct mode.
  • COM Ports: Ensure you’re selecting the correct COM ports as described above.
  • Install Board Support: Verify that “Arduino mbed os opta” is installed in the Arduino IDE’s Boards Manager.
  • Firewall Settings: Sometimes, a firewall may block communications; ensure you allowed access when prompted.

Conclusion

You should now have the Opta PLC set up and ready for your first project. Following these steps typically resolves the “Cannot download sketch file” (error code 1). If you continue to have issues, re-check your connections, COM port assignments, and that you’ve correctly installed all required software components.

Meshnex is official software implementer for Finder products.
For support or questions, contact: support@meshnex.nl

Back to Blog