
Learn to build and control a three-conveyor system by connecting Unity with TIA Portal using the S7netPlus library, featuring start/stop controls, sensors, and a slider for analog speed.
Connect Unity and TIA Portal with S7netPlus library demonstrates sorting metal and non-metal objects on conveyors using inductive sensors and counters, stopping after six items.
Watch a demo on adding your robot to Unity, illustrating how to connect Unity with TIA Portal using the S7netPlus library.
Add your robot to Unity by importing the FBX model, setting rotation regions for each joint (J1–J6), and using Blender to center origins.
Explore world coordinates and their transformations, describing points with three coordinates and using rotation matrices and 4x4 transformation matrices for translations and rotations.
Watch a demo video on making a robot move using inverse kinematics, within the workflow of connecting Unity and TIA Portal with the S7netPlus library.
Learn how to implement inverse kinematics in Unity to move a robot, pick and place objects with a gripper, and deliver items between conveyors using configuration-specific IK files.
Connect Unity with TIA Portal using the S7netPlus library to control a robot, demonstrated in Part 3.
Learn to control a two-conveyor system with TIA Portal and Unity, using sensors to move objects and coordinate a robot arm via start/stop signals and PLC data blocks.
Bulbs Control
This scene contains 6 bulbs which can be controlled by TIA Portal with discrete and analog signals. Corresponding folders:
Unity Scene: S7netUnityProject/Assets/Scenes/BulbsControl
TIA Portal project: S7netTiaProject(BulbsControl)
Water Level Control (discrete)
This scene contains water tank which can be controlled by TIA Portal with discrete and analog signals. The example below shows discrete control of the water. Corresponding folders:
Unity Scene: S7netUnityProject/Assets/Scenes/WaterLevelControl
TIA Portal project: S7netTiaProject(WaterLevelControl_discrete)
Water Level Control (PID controller)
This scene contains water tank which can be controlled by TIA Portal with discrete and analog signals. The example below shows PID control of the water. Corresponding folders:
Unity Scene: S7netUnityProject/Assets/Scenes/WaterLevelControl
TIA Portal project: S7netTiaProject(WaterLevelControl_pid)
Robot Control
This scene contains Industrial Robot and conveyor which can be controlled by TIA Portal. The example below shows sorting of the red object. Corresponding folders:
Unity Scene: S7netUnityProject/Assets/Scenes/RobotControl
TIA Portal project: S7netTiaProject(RobotControl)
S7NetPlus is a library written in C# offered by Siemens. In this course it is shown how to establish a communication between Unity and TIA Portal using this library. So, several scenes are given, so you can modify them as well. The preliminary idea was taken by the powerful Factory IO software, I was willing to try to make something similar to it:)
This course demonstrates communication between Unity 2020.3.15f2 and TIA Portal V16 by S7NetPlus library with several examples:
-Bulbs Control: This scene contains 6 bulbs which can be controlled by TIA Portal with discrete and analog signals.
- Water Level Control (discrete): This scene contains water tank which can be controlled by TIA Portal with discrete and analog signals. The example below shows discrete control of the water.
- Water Level Control (PID control): This scene contains water tank which can be controlled by TIA Portal with discrete and analog signals. The example below shows PID control of the water.
- Industrial Robot Control: This scene contains Industrial Robot and conveyor which can be controlled by TIA Portal. The example below shows sorting of the red object
- Heating Conveyor Control: This scene contains Heating Conveyor which can be controlled by TIA Portal