Skip to content

Siemens S7 Training Model

Master Siemens S7 PLC programming with a complete industrial automation training environment featuring a realistic demo cell and comprehensive TIA Portal project.

This ModelZoo entry provides a complete S7 training experience, combining:

  • Complete demo cell simulation with robot, CNC machine, and conveyor systems
  • Full TIA Portal project (S7-1500 compatible) with structured programming examples
  • Real-time PLC communication via TCP/IP (Put/Get) for authentic industrial experience
  • Virtual commissioning setup compatible with PLCSim Advanced and real S7 hardware

The training environment simulates a modern manufacturing cell featuring:

  • Entry conveyor with part detection sensors
  • 6-axis robot for pick-and-place operations with simulated kinematics
  • CNC machining center with door control and machining simulation
  • Exit conveyor for processed parts
  • HMI control panel with operator interface elements

The automation sequence demonstrates typical industrial workflows: part arrival, robot loading, machining operations, robot unloading, and part discharge. All operations are coordinated through the S7 PLC program provided in the complete TIA Portal project.

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

Configuring S7 Settings

To configure the connection:

  1. Click the Settings icon (⚙️) in the toolbar.
  2. Enter the following values based on your setup:
    • SiemensS7Interface.Address → 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.

📎 DemoRV6_20250723_1551.zap19

This complete TIA Portal project provides a fully functional S7-1500 program that demonstrates industrial automation best practices:

  • Complete S7-1500 CPU configuration with optimized block access settings
  • Structured function blocks demonstrating professional programming practices
  • Comprehensive I/O mapping for all demo cell components
  • Sequence control logic for coordinated multi-station operation
  • Safety interlocks and emergency stop implementation
  • HMI integration elements for operator interface training

This S7 TIA Portal example project is provided by Andreas Fast from Fast Automation. Thanks a lot for this valuable contribution to the realvirtual community!

🔗 Connect with Andreas Fast: LinkedIn Profile

AddressSignal NameDirectionDescription
I0.0IO.Input.Robot.bStatusLoadingInputRobot is currently loading a part
I0.1IO.Input.Robot.bStatusUnloadingInputRobot is currently unloading a part
AddressSignal NameDirectionDescription
Q0.0IO.Output.Robot.bStartLoadingOutputStart the robot loading sequence
Q0.1IO.Output.Robot.bStartUnloadingOutputStart the robot unloading sequence

AddressSignal NameDirectionDescription
Q1.0IO.Output.Machine.bStartOutputStart the machine’s machining process
Q1.1IO.Output.Machine.bOpenDoorOutputOpen the machine door
I1.0IO.Input.Machine.bMachiningInputMachine is currently machining
I1.1IO.Input.Machine.bMachiningFinishedInputMachining process is finished
I1.2IO.Input.Machine.bDoorOpenedInputMachine door is open
I1.3IO.Input.Machine.bDoorClosedInputMachine door is closed

AddressSignal NameDirectionDescription
Q2.0IO.Output.EntryBelt.Motor.bStartOutputStart the entry belt motor
Q2.1IO.Output.ExitBelt.Motor.bStartOutputStart the exit belt motor
I2.0IO.Input.EntryBelt.Sensor.bOccupiedInputEntry belt sensor detects an object
I2.1IO.Input.ExitBelt.Sensor.bOccupiedInputExit belt sensor detects an object

AddressSignal NameDirectionDescription
I3.0IO.Input.HMI.OnSwitch.bOnInputHMI main switch is on
I3.1IO.Input.HMI.Emergency.bOnInputEmergency stop is activated
I3.2IO.Input.HMI.AutomaticButton.bPressedInputAutomatic mode button pressed
I3.3IO.Input.HMI.EntryBelt.bOnInputEntry belt button is on
I3.4IO.Input.HMI.Robot.bOnInputRobot enable button is on
I3.5IO.Input.HMI.ExitBelt.bOnInputExit belt button is on
AddressSignal NameDirectionDescription
Q3.0IO.Output.HMI.AutomaticButton.bLightOutputLight for the automatic mode button
Q3.1IO.Output.HMI.Robot.bLightOutputLight indicator for robot status
Q3.3IO.Output.HMI.EntryBelt.bLightOutputLight indicator for entry belt
Q3.4IO.Output.HMI.ExitBelt.bLightOutputLight indicator for exit belt