Siemens S7
Learning to program Siemens S7 PLCs
Last updated
Learning to program Siemens S7 PLCs
Last updated
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.
Before connecting to a Siemens S7 PLC, you need to configure the IP address, rack, and slot of the controller.
To configure the connection:
Click the Settings icon (⚙️) in the toolbar.
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.
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
Q0.0
IO.Output.Robot.bStartLoading
Output
Start the robot loading sequence
Q0.1
IO.Output.Robot.bStartUnloading
Output
Start the robot unloading sequence
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
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
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
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