Simulate an Application

Simulating running an application signifies that virtual machines execute the code of the device and the Windows platform performs aspects like program organization unit (POU) execution. Virtual machines ignore inputs and outputs.
The compiler generates different code for simulation than for online.
Prerequisite
Build the project code before simulating an application. Simulation executes code in real-time mode. The programmed cycle timing triggers target cycles.
To simulate an application
  1. Select the device, then set the
    Enable Simulation
    property to
    True
    from the list in the
    Properties
    window.
  2. For applications using functions and function blocks from the global library, set the global library for simulation.
    1. In the
      Application View
      , expand
      Libraries
      , then
      Global
      .
    2. Select
      Functions
      , then set the
      Targets
      property to
      Simulate
      from the list in the
      Properties
      window.
    3. Select
      Function Blocks
      , then set the
      Targets
      property to
      Simulate
      from the list in the
      Properties
      window.
  3. From the
    Project
    menu, point to
    Connect Mode
    , and then click
    Simulation
    to set the connection mode for the project.
    The
    Simulation
    menu category appears with the simulation command options.
  4. In the
    Application View
    , select the project.
  5. Build the project code, then select
    Simulation
    >
    Start Simulation
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal