Table of Contents

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.

1. Prerequisites

Before you begin, ensure you have the following:

2. Creating a New Project

  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.

3. Connecting to the Controller (Attach PLC)

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.

4. PLC Configuration & Security

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

PLC Connection Properties

5. Creating a Simple Program

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.

6. Building and Deploying

  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:

7. Debugging

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).