realvirtual.io
  • Building Digital Twins with Unity and realvirtual.io
  • Basics
    • Installation
    • Demo Model
      • Old Demo Model
    • Editor User Interface
      • Hierarchy Window
      • 3D Views
      • Quick Edit
      • Move Pivot Points (Pro)
      • Selection Window (Pro)
      • Material Window (Pro)
      • Measurement (Pro)
      • Kinematic Tool (Pro)
      • Model Checker
    • Runtime UI
      • Group Manager
      • Debug Console
      • Responsiveness
      • Runtime Persistence
    • Importing and exporting
    • Folder structure
    • Tutorial
    • Physics
    • CAD import (Pro)
      • CADLink (Pro)
      • CAD Checker (Pro)
      • CAD Updater (Pro)
    • Reusable Components (Prefabs)
    • Cadenas parts4cad
    • Publishing the Digital Twin
    • Revision management
  • News
  • Login & Download Updates (Pro)
  • Components & Scripts
    • Realvirtual
      • Environment Controller
    • MU, Source and Sink
      • Source
      • Sink
    • Motion and Kinematic
      • Drive
      • Kinematic
      • Group
      • Joint
      • CAM
      • TransportSurface
      • Guided Transport
      • KinematicMU (Pro)
      • Drive behavior
      • Chain
      • Chain element
      • Motion for developers
    • Sensors
      • Sensor
      • Measure
      • MeasureRaycast
    • Picking and Placing MUs
      • Grip
      • Gripper
      • Fixer
      • Pattern
    • Changing MUs
      • MaterialChanger
      • PartChanger
      • Cutter
    • Scene Interaction
      • Tooltip (Pro)
      • 3D Buttons
      • Screen Overlay Buttons
      • Scene Selectables (Pro)
      • Lamp
      • Interact3D
      • UI components
      • HMI components (Pro)
        • Start your own HMI
        • HMI Tab
        • HMI DropDown
        • HMI Puschbutton
        • HMI Switch
        • HMI Value
        • HMI Text
        • HMI Slider
        • HMI Message
        • HMI Marker
      • ModelZoo (Pro)
    • Interfaces
      • Interface Tools
        • Signal Manager
        • Signal Importer Exporter
        • Signal Catcher
        • OnValueChangedReconnect
      • Signal Importer / Exporter
      • ABB RobotStudio (Pro)
      • Denso Robotics (Pro)
      • EthernetIP (Pro)
      • Fanuc (Pro)
      • FMI
      • Igus Rebel
      • MQTT (Pro)
      • Modbus (Pro)
      • OPCUA (Pro)
      • PLCSIM Advanced (Pro)
      • RoboDK (Pro)
      • RFSuite (Pro)
      • SEW SimInterface (Pro)
      • Siemens Simit Interface (Pro)
      • Simit Shared Memory (Pro)
      • Simulink (Pro)
      • S7 TCP
      • TwinCAT (Pro)
      • TwinCAT HMI (Pro)
      • UDP (Pro)
      • Universal Robots (Pro)
      • Wandelbots Nova (Pro)
      • Websocket (Pro)
      • Windmod Y200 (Pro)
      • Custom Interfaces
    • Performance Tools
      • Combine Meshes (Pro)
      • Create Prefab (Pro)
      • Hierarchy Cleanup (Pro)
      • Mesh Optimizer (Pro)
      • Performance Optimizer (Pro)
    • Defining Logic
      • Unity Scripting
      • Behavior Graph
      • Logicsteps
      • Unity Visual Scripting
      • Recorder
    • Robot Inverse Kinematics (Pro)
    • Volume Tracking (Pro)
  • Multiplayer (Pro)
  • Extensions
    • ModelZoo
      • Beckhoff TwinCAT
      • Siemens S7
      • Denso Cobotta 1300
      • Wandelbots Nova Fanuc CRX
      • Universal Robots UR10
      • Fanuc Roboguide
    • realvirtual.io AIBuilder
      • realvirtual.io AI Builder Overview
      • Generate AI Training Data
      • AI Training
      • Testing AI in a Digital Twin
      • Deploying the AI
    • realvirtual.io Simulation
      • Conveyor Library
      • Path System
        • Path finding
        • Line
        • Curve
        • Workstation
        • Catcher
        • Pathmover
    • realvirtual.io Industrial Metaverse
      • Setup Guide
      • VR Modules
      • AR Modules
      • Multiuser
    • AGX Physics
    • VR Builder
    • CMC ViewR
  • Advanced Topics
    • Render Pipelines
    • Mixed Reality with Meta Quest3
    • Upgrade Guide
      • Upgrade to 2022
    • Open Digital Twin Interface
    • Usefull Addons
    • Improving Performance
    • Supported Platforms
    • Compiler Defines
    • For Developers
      • Important Classes and Interfaces
      • Assembly Definitions
      • Starting your development
      • Class documentation
      • realvirtual Init Sequence
      • realvirtualBehavior Lifetime Methods
      • Testing
    • Newtonsoft JSON
    • Troubleshooting
  • Release Notes
  • AI Digital Twin Assistant (GPT4)
  • License Conditions
Powered by GitBook
On this page
  • Overview
  • SEW SimInterface properties
  • Symbol Table
Edit on GitHub
  1. Components & Scripts
  2. Interfaces

SEW SimInterface (Pro)

Interface to SEW Controllers

PreviousRFSuite (Pro)NextSiemens Simit Interface (Pro)

Last updated 20 days ago

Please note that this interface is only included in realvirtual.io Professional

The SEWSimInterface is used to communicate with . As a basis communication protocol MQTT is used.

Overview

The SEW SimInterface component is responsible for managing communication between realvirtual.io and an external SEW controller via MQTT. It connects to a broker and receives signals (e.g. Drive Positions, Inputs and Outputs) from the SEW Controller.

SEW SimInterface properties

General Settings

  • Active: Controls when the SEW interface is active.

  • Broker: The IP address or hostname of the MQTT broker.

    Example: 127.0.0.1

  • Port: The MQTT broker’s port number. This is typically 1883 for standard non-secure MQTT communication.

    Example: 1883

  • Use W String: A checkbox indicating whether to use a "W" string format when parsing incoming data. This option should be usually turned on.

  • Receive Topic PLC Outputs: The MQTT topic that the SEW SimInterface will subscribe to in order to receive data from the SEW controller (PLC outputs).

    Example: SEW/SimOUT

  • Send Topic PLC Inputs: The MQTT topic that the SEW SimInterface will publish to, sending data to the SEW controller (PLC inputs).

    Example: SEW/SimIN

  • Debug Mode: A checkbox enabling detailed logging for debugging purposes. This is useful for development and troubleshooting MQTT connections and data exchange.

  • Symbol Table: The path to the symbol table file that maps SEW controller variables to Unity-readable variables. This is essential for interpreting the data coming from the SEW system and mapping it to corresponding actions or values in Unity.

    Example: E:/realvirtual-release/game4automation/realvirtual/Assets/realvirtual/

  • Split Char: Defines the character used to split incoming data fields. This is usually set based on the data format from the SEW system.

    Example: ; (semicolon)

Inputs/Outputs

  • Num Inputs: Displays the number of inputs being managed by the SEW SimInterface, corresponding to the number of PLC inputs from the SEW controller.

  • Num Outputs: Displays the number of outputs being managed by the SEW SimInterface, corresponding to the number of PLC outputs to the SEW controller.

Thread Status

  • Thread Status: The status of the communication thread managing data exchange. This will indicate whether the connection to the SEW system is active, and whether data exchange is functioning correctly.

Symbol Table

The symbol table used in the SEW SimInterface component is a CSV file that defines the mapping between signals from the SEW controller and realvirtual Inputs and Outputs. Each row in the table corresponds to a signal, specifying its name, data type, and direction (whether the signal is an input to or output from Unity).

The CSV can be generated automatically via the SEW MKC SimInterface in the IEC-Editor

Importing a Symbol Table

To import a symbol table:

  1. Select the symbol table file using the "Select Symbol Table" button.

  2. After selecting, click on "Import Symbol Table" to load and apply the mappings.

Format

The CSV file has the following columns:

  • Name: The name of the signal in the SEW system, which is used in Unity to identify the signal.

  • Type: The data type of the signal, which can be one of the following:

    • REAL: For real or float values (used for PLC inputs and outputs).

    • BOOL: For boolean signals (true/false).

    • INT: For integer signals.

    • TEXT, STRING, WSTRING: For text signals.

  • Direction: Specifies whether the signal is an input to Unity or an output from Unity.

    • PLC_IN: Input signal (data received from the SEW system).

    • PLC_OUT: Output signal (data sent to the SEW system).

Example Symbol Table

Below is an example of a symbol table that could be used in the SEW SimInterface:

Name;Type;Direction
Stacker_Crane_x_Achse_SimlrActualVelocity;REAL;PLC_OUT
Stacker_Crane_x_Achse_SimlrActualPosition;REAL;PLC_OUT
Stacker_Crane_y_Achse_SimlrActualVelocity;REAL;PLC_OUT
Stacker_Crane_y_Achse_SimlrActualPosition;REAL;PLC_OUT
z_Achse_SimlrActualVelocity;REAL;PLC_OUT
StackerCrane_ExecuteOrder;BOOL;PLC_OUT
StackerCrane_Ready;BOOL;PLC_OUT
StackerCrane_PickBox;BOOL;PLC_OUT
z_Achse_SimlrActualPosition;REAL;PLC_OUT

SEW MOVI-C Controller
SEW Sim Interface properties