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
      • 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
      • 3D Buttons
      • Screen Overlay Buttons
      • Scene Selectables
      • 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
  • Interface Configuration
  • Signals
  • 2. Machine Signals
  • 3. Entry and Exit Conveyor
  • 4. HMI (Buttons & Lights)
Edit on GitHub
  1. Extensions
  2. ModelZoo

Siemens S7

Learning to program Siemens S7 PLCs

PreviousBeckhoff TwinCATNextDenso Cobotta 1300

Last updated 1 month ago

This is the standard demo cell prepared for control via a Siemens S7 interface using TCP/IP (Put/Get). It can be connected to PLCSim Advanced or a real S7 PLC. The robot control is fully simulated. This model is ideal for training and learning S7 PLC programming in a realistic environment.

Interface Configuration

Before connecting to a Siemens S7 PLC, you need to configure the IP address, rack, and slot of the controller.

To configure the connection:

  1. Click the Settings icon (⚙️) in the toolbar.

  2. Enter the following values based on your setup:

    • SiemensS7Interface.Adress → The IP address of your PLC (e.g., 127.0.0.1 for PLCSim Advanced).

    • SiemensS7Interface.Rack → Usually 0.

    • SiemensS7Interface.Slot → Typically 0 for PLCSim Advanced, 1 for physical PLCs.

📘 Refer to your TIA Portal project or PLC documentation to confirm the correct rack and slot values.

Signals

1.1 Robot Overall Status (Inputs)

Address
Signal Name
Direction
Description

I0.0

IO.Input.Robot.bStatusLoading

Input

Robot is currently loading a part

I0.1

IO.Input.Robot.bStatusUnloading

Input

Robot is currently unloading a part

1.2 Start Robot Programs (Outputs)

Address
Signal Name
Direction
Description

Q0.0

IO.Output.Robot.bStartLoading

Output

Start the robot loading sequence

Q0.1

IO.Output.Robot.bStartUnloading

Output

Start the robot unloading sequence


2. Machine Signals

Address
Signal Name
Direction
Description

Q1.0

IO.Output.Machine.bStart

Output

Start the machine's machining process

Q1.1

IO.Output.Machine.bOpenDoor

Output

Open the machine door

I1.0

IO.Input.Machine.bMachining

Input

Machine is currently machining

I1.1

IO.Input.Machine.bMachiningFinished

Input

Machining process is finished

I1.2

IO.Input.Machine.bDoorOpened

Input

Machine door is open

I1.3

IO.Input.Machine.bDoorClosed

Input

Machine door is closed


3. Entry and Exit Conveyor

Address
Signal Name
Direction
Description

Q2.0

IO.Output.EntryBelt.Motor.bStart

Output

Start the entry belt motor

Q2.1

IO.Output.ExitBelt.Motor.bStart

Output

Start the exit belt motor

I2.0

IO.Input.EntryBelt.Sensor.bOccupied

Input

Entry belt sensor detects an object

I2.1

IO.Input.ExitBelt.Sensor.bOccupied

Input

Exit belt sensor detects an object


4. HMI (Buttons & Lights)

4.1 Buttons (Inputs)

Address
Signal Name
Direction
Description

I3.0

IO.Input.HMI.OnSwitch.bOn

Input

HMI main switch is on

I3.1

IO.Input.HMI.Emergency.bOn

Input

Emergency stop is activated

I3.2

IO.Input.HMI.AutomaticButton.bPressed

Input

Automatic mode button pressed

I3.3

IO.Input.HMI.EntryBelt.bOn

Input

Entry belt button is on

I3.4

IO.Input.HMI.Robot.bOn

Input

Robot enable button is on

I3.5

IO.Input.HMI.ExitBelt.bOn

Input

Exit belt button is on

4.2 Lights (Outputs)

Address
Signal Name
Direction
Description

Q3.0

IO.Output.HMI.AutomaticButton.bLight

Output

Light for the automatic mode button

Q3.1

IO.Output.HMI.Robot.bLight

Output

Light indicator for robot status

Q3.3

IO.Output.HMI.EntryBelt.bLight

Output

Light indicator for entry belt

Q3.4

IO.Output.HMI.ExitBelt.bLight

Output

Light indicator for exit belt

Configuring S7 Settings