Download PHS Thermal Process Simulator
Try the simulator on Windows and control the process from your OPC UA client PLC.
This article shows how PHS Thermal Process Simulator works: a tool created to practice physical process control without having the real plant on the desk. The application runs a process model in the browser and exposes the required variables through OPC UA, so a PLC can read states and write commands.
For more complex and complete industrial simulations there is Siemens SIMIT; here the goal is something lighter, direct and ready for quick practice.
The workflow is simple: start the program, open the simulator, switch to remote mode and control the process from an OPC UA client PLC. In this example the natural case is a Siemens S7-1500 with PLCSIM Advanced, but the same concept applies to any controller that can work as an OPC UA client.
Demo of the simulator starting, switching modes and responding to PLC control through OPC UA.
What it is for
The purpose is not to replace complex commercial full-simulation platforms, but to provide a direct teaching tool: a small virtual plant that behaves like a physical process and can be controlled from a PLC.
It lets you test filling, draining, transfer, heat exchange, alarms, permissives, sequences and regulation before moving to a real installation. When there is no pump, valve, tank or sensor available on the bench, the simulator becomes the plant.
Plug and play approach
The package is prepared to run with a double click. It includes the executable and the required dependencies, so you do not need to build a Python environment or install libraries manually to use it.
At startup, the application launches the local server, opens the web interface and exposes the OPC UA server from the PC where it is running.
Equipment and fluids respond to commands and to the simplified physics of the model.
The PLC must keep communication alive, write setpoints and check states.
Guided tutorials make it possible to practice concrete objectives step by step.
Minimum requirements
- Windows 10 or 11, 64-bit.
- A PLC or PLC simulator able to work as an OPC UA client.
- Reachable network path between the PLC and the PC running the simulator.
- To follow the Siemens example, it is useful to review OPC UA Client in a Siemens S7-1500 PLC with TIA Portal first.
Initial screen while the OPC UA server and web interface start.
Startup and interface
Running the package
After extracting the package, run the main program. The folder includes the executable and the internal elements required for the application to work autonomously.
After startup, the browser opens with the model loaded. From there you can monitor values, operate in local mode or prepare remote control.
Web interface with the process and the side panel for control and tutorials.
Light and dark mode
The interface can switch between light and dark mode. This does not change the model behavior; it only helps you work more comfortably depending on the environment, lighting or screenshots you want to prepare for documentation.
Available modes and models
Local and remote
The simulator has two working modes:
- Local: the process is controlled directly from the web interface.
- Remote (PLC): the plant is governed by commands received from the PLC through OPC UA.
When the simulator is switched to remote mode, control logic must come from outside. The model is no longer just a visual demo; it becomes a plant waiting for coherent commands from a controller.
Transfer, heat and recovery
The tool includes several models for different complexity levels:
Move fluid from one tank to another using a pump and valves.
Exchange energy to heat the fluid during transfer.
Heat, cool and reuse part of the energy from the previous process stage.
Transport model: tanks, pump, valves and status signals.
Heat model: heat exchange is added to practice regulation.
Recovery model: more variables, more states and more control decisions.
PLC control through OPC UA
The interesting part starts when the simulator enters remote mode. From that point on, the system responds to commands written by the PLC and keeps states, measurements and alarms updated so the control program can make decisions.
The simulation runs on the IP address of the PC where the program is executed and publishes OPC UA on port 4840. The endpoint follows this pattern:
opc.tcp://PC_IP:4840
Connection and endpoint
The first step in the guided tutorial is to check communication. There must be an OPC UA client permanently connected to the simulator server. In Siemens, this means preparing the client interface, importing or browsing nodes and downloading the project to the PLC or to PLCSIM Advanced.
First tutorial step: verify that the OPC UA connection is open.
OPC UA client in TIA Portal connected to the server exposed by the simulator.
Write lists
It is better not to write directly to any model variable. The recommended approach is to build the control program around the Write Lists: prepared lists where the PLC writes commands, setpoints or valve openings in an orderly way.
The simulation speed can also be adjusted from the corresponding variables. This allows slower tests for debugging or faster runs to see the full process evolution.
The simulation can be accelerated or paused to tune control tests.
Guided tutorial
In addition to manual control, the program includes guided tutorials with concrete objectives. In the transport model, for example, the goal is to fill the initial tank. To do that from the PLC, the matching valve must be opened, the flow must appear and the checklist must continue advancing.
In this test, valve FV-100 is opened to 55 %. There is no special regulation yet: it is a simple write from the PLC to verify that the model responds.
PLC write: FV-100 opening set to 55 % through the write list.
The model reflects the received command and the process starts behaving accordingly.
The tutorial checklist advances when the process conditions are met.
The heat tutorial follows the same logic, but it already requires temperature control, thermal dynamics and PID regulation. That is where the tool becomes especially useful: it forces the jump from “I move a variable” to “I control a process”.
In short, the simulator tries to be the physical plant we often do not have in front of us when testing level control, temperature control, alarms, interlocks or sequences. In a didactic way, it helps to understand basic process concepts before going to the field.
Downloads
You can download the compressed program package here.
PHS Thermal Process Simulator
Compressed file with the executable and its dependencies.