Siemens Simit Interface (Pro)

New in Version 6.0.4: This documentation includes new features and improvements coming in realvirtual 6.0.4, including one-click compiler define setup and enhanced SIMIT Unity Coupling V4.0.2 support.

Overview

The Siemens Simit Unity Coupling Interface provides time-synchronized communication between realvirtual and Siemens SIMIT simulation platform. This interface enables precise coupling of Unity-based virtual commissioning with SIMIT plant models and PLC simulation environments including PLCSIMAdvanced.

Key Features:

  • Time-synchronized communication with SIMIT

  • Automatic signal mapping between realvirtual and SIMIT

  • Support for Binary, Analog, and Integer signal types

  • One-click compiler define setup (New in 6.0.4)

  • Enhanced SignalType enum handling (New in 6.0.4)

  • Compatible with PLCSIMAdvanced integration

  • Real-time bidirectional data exchange

When to Use This Interface

Use the Siemens SIMIT Interface when you need:

  • Precise timing synchronization between Unity and SIMIT simulations

  • Coupled simulation where Unity waits for SIMIT calculation steps

  • PLCSIMAdvanced integration through SIMIT coupling

  • Advanced co-simulation scenarios requiring deterministic timing

For standard applications without timing requirements, consider the SIMIT Shared Memory Interface as a lighter alternative.

Additional information on the Siemens Simit Interface can be found at this page:

Siemens Simit Coupling - Documentation

Requirements

Software Requirements:

  • Unity 2022.3 LTS or later (Unity 6 recommended)

  • Siemens SIMIT V11.2 or later

  • SIMIT Unity Coupling Package V4.0.2 or later

  • realvirtual Professional license

Hardware Requirements:

  • Windows 10/11 (64-bit)

  • Minimum 8GB RAM (16GB recommended)

  • DirectX 11 compatible graphics card

Installation

Step 1: Obtain SIMIT Unity Coupling Package

Download the SIMIT Unity Coupling package from Siemens:

Step 2: Install SIMIT Unity Package

  1. Extract the SIMIT Unity package to a local directory

  2. In Unity, open Window → Package Manager

  3. Click + → Add package from disk

  4. Navigate to the extracted SIMIT package and select package.json

  5. Wait for Unity to import the package

Siemens Simit Interface

Step 3: Setup Compiler Define Symbol

The interface requires the compiler define REALVIRTUAL_SIEMENSSIMIT to be set. realvirtual 6.0.4 provides an automated setup:

  1. Add a SiemensSimitInterface component to a GameObject in your scene

  2. In the Inspector, click "Add REALVIRTUAL_SIEMENSSIMIT Define" button

  3. Unity will automatically add the define and recompile scripts

One-click compiler define setup

The setup button automatically disappears once the define is properly configured, preventing accidental duplicate defines.

Alternative Manual Setup: If needed, you can manually add the define in Project Settings → Player → Scripting Define Symbols:

  • Add: REALVIRTUAL_SIEMENSSIMIT

Configuration

Adding the Interface to Your Scene

  1. Create Interface GameObject:

    • Add an empty GameObject to your scene

    • Add SiemensSimitInterface component

    • The realvirtualCoupler component is added automatically

  2. Add SIMIT Connection:

    • Drag the SimitConnection prefab from the SIMIT Unity package into your scene

    • Reference it in the Simit Connection field of the SiemensSimitInterface

Complete SIMIT interface setup in Unity

Signal Configuration

Step 1: Add realvirtual Signals

  1. Add all realvirtual signal components as children of the SiemensSimitInterface GameObject

  2. Supported signal types:

    • PLCInputBool/PLCOutputBool → SIMIT Binary signals

    • PLCInputFloat/PLCOutputFloat → SIMIT Analog signals

    • PLCInputInt/PLCOutputInt → SIMIT Integer signals

Step 2: Update Signal Mapping

  1. Click "Update Simit Signals" button in the SiemensSimitInterface component

  2. This automatically maps all child signals for SIMIT coupling

  3. The interface handles signal type conversion automatically

Step 3: Import Signals in SIMIT

  1. In your SIMIT project, use Unity Coupling → Update Signals

  2. All signals appear in SIMIT with the naming convention:

    [SimitInterfaceName].realvirtualCoupler.[SignalName]
Scene with SIMIT interface and signals
Signals imported in SIMIT

Properties

Siemens Simit Interface (Script)

  • Active (Always/Never) - Interface activation mode

  • Simit Connection (GameObject) - Reference to SimitConnection prefab

  • Debug Mode (boolean) - Enable debug logging

Realvirtual Coupler (Script)

  • Signals (Signal[]) - Auto-populated array of mapped signals (read-only)

Troubleshooting

Common Issues:

  1. "SIMIT types not found" compilation errors

    • Ensure SIMIT Unity package is properly installed

    • Verify REALVIRTUAL_SIEMENSSIMIT define is set

    • Use the automated setup button in the interface

  2. No signals appear in SIMIT

    • Check that signals are children of SiemensSimitInterface

    • Click "Update Simit Signals" button

    • Verify SimitConnection is referenced and active

  3. Interface not connecting

    • Ensure SimitConnection prefab is in the scene

    • Check SIMIT Unity Coupling settings in SIMIT

    • Verify network connectivity if using remote SIMIT

Last updated