Skip to main content

Compilation & Transfer

Once the logic program is finalized, it must be compiled and transferred to the Virtual PLC CPU for execution. This process converts the high-level diagrams and scripts into object code that the simulation engine can process.

Compilation Process

To compile the project, select Program -> Compile from the menu or use the Compile Project icon on the toolbar. The editor compiles each sequence individually.

Driver Configurator
  • Error Handling: If the process fails, a screen appears indicating the specific sequence where the error was found and the cause.
Driver Configurator
  • Compilation Options: In specific cases where all sequences must be compiled together, navigate to Program -> Compile -> Compilation Options.
    • Available Command: \nocheck (Compiles all sequences as a single block).
Driver Configurator

Connecting and Transferring

Before sending the program, the Virtual PLC CPU must be running and the Editor must be connected to it.

  1. Launch: Start the Virtual PLC CPU (from the system or the Editor toolbar).
  2. Connect: Click Connect On-Line with PLC or navigate to Connection -> Connect with Virtual PLC.
  3. Transfer: Once connected, click the Transfer Program to PLC icon. A progress bar will track the upload status.
Driver Configurator
tip

Use the Compile and Transfer (or "Compile and Send Project") button to execute both steps automatically with a single click.

Logic Execution Files

When a program is transferred, the system generates a file named logic.cmp in the \Slot\ folder of the EasyPLC installation path.

  • This file contains all necessary information for the Virtual PLC CPU and the HMI System.
  • Local Transfer: The file is copied directly to the local folder.
  • Remote Transfer: The Virtual PLC generates the file upon receiving the data.