Tutorial: Creating and Deploying Your First Project

This tutorial guides you through creating a new project in Mervis IDE, connecting to your hardware via the network scan, and deploying your first logic program.

Before you begin, ensure you have the following:

  • Mervis IDE installed on your computer.
  • A Supported PLC Controller connected to the same network as your PC via Ethernet.
  • The controller is powered on (Ready LED is active).
  1. Open Mervis IDE.
  2. In the top menu, go to File > New Solution.

New Project Dialog

In the dialog window:

  1. Project Name: Enter a name for your project (e.g., “MyFirstProject”).
  2. Mode: Select Simple Mode.
  3. Click Create.

Instead of manually configuring the IP, we will use the “Attach” feature to scan the network.

  1. In the Solution Explorer (left panel), right-click on the PLC object.
  2. Select Attach PLC.
  3. Select Probing Method: Choose UDP broadcast and click Next.
  4. Credentials: Enter the default login (usually `admin` / `rw`) and click Next.

The IDE will now scan your local network.

  1. Select your controller from the list of Found PLCs.
  2. Click Finish/OK to confirm.

Once attached, the PLC properties are displayed in the right-hand panel.

PLC Connection Properties

Your project automatically includes a `main` program file.

  1. Double-click main in the Solution Explorer to open the editor.
  2. Adding Function Blocks: Drag blocks (e.g., *Pulse Generator*) from the Library Browser on the right into the workspace.
  3. Linking Hardware: To link a physical output (like a relay):
    1. Right-click on the workspace.
    2. Select Insert existing variable.
    3. Choose your output (e.g., `DO_1.01`) from the list.
    4. Connect the function block output to this variable.
  1. Build: Click the Build Solution icon in the top ribbon (or press F7).
    • Ensure the “Results” window at the bottom shows Build Success.
  2. Deploy: Click the Deploy Solution icon in the top ribbon.

Deploy Solution Ribbon

You will be prompted to select a restart mode:

  • Warm Restart: Keeps current variable values (recommended for updates).
  • Cold Restart: Resets all variables to defaults (recommended for first upload).

To view the program running live:

  1. Click the Debug icon (Play button) in the top toolbar.
  2. You will see live values changing in your function block diagram (e.g., True/False states switching).
  • © Energocentrum Plus, s.r.o. 2017 - 2025