EST. 2026 — Notes from real server work SYSADMIN · SECURITY · AI · DIRECTADMIN Issue 01
THE SYSADMIN ALMANAC
Home / Hardware / Three PLCSIM Variants, Python and PID Limits—Which Should I Use?
Hardware

Three PLCSIM Variants, Python and PID Limits—Which Should I Use?

by Ton-Or ·24 Nov 2026·11 min read
Three PLCSIM Variants, Python and PID Limits—Which Should I Use?

The PLCSIM name refers to three programs that simulate different CPU families. The one most people have communicates only through Softbus, with no TCP 102 for external programs to connect to, and another set of functions cannot be simulated regardless of configuration.

1-minute summary

Symptom / problem
The name PLCSIM covers three programs that simulate different CPU families with different communication channels
Who should read
People choosing a Siemens PLC simulator that fits their TIA Portal version and task
Fix in short
The one bundled with TIA talks over Softbus only, with no TCP 102 for external programs. Use the version-pairing table and selection criteria to pick the one that simulates what you need
Jump to steps

I was setting up a PLC lab in a VM to test programs before deploying them to real hardware, and I wanted Python scripts and AI to read values directly from the simulated PLC. From the start, I had assumed that a Siemens simulator was simply a PLC listening on port 102, ready for connections just like the real thing, only without the physical unit. After opening the official manuals and reading them one by one, I realized I had been wrong on two levels. First, PLCSIM does not refer to a single program: there are three, each simulating different CPU families. Second, the one I had did not provide a TCP/IP connection for external programs at all. In this article, I have organized what I read into tables, along with a list of things that cannot be simulated and the criteria I use to choose.

Evidence behind this article

Almost all of this content comes from reading official manuals: the S7-PLCSIM V15 online help (12/2017 edition, 162 pages), the V18 V19 V20 help, the S7-PLCSIM Advanced V6.0 function manual, and the Advanced V2.0 overview document. I have not installed all three for comparison. There is only one aspect I measured myself on the simulator: the behavior of the second interface, which I covered in a separate article. Wherever a table row comes from a secondary source, I have marked it in that row.

Three programs with the same name, simulating different CPU families

The first is S7-PLCSIM used with TIA Portal. Its version number always matches the TIA version: if I use TIA V15.1, it must be PLCSIM V15.1. This one needs no additional license; it comes with the STEP 7 license but must be installed separately from TIA. The range of CPUs it can simulate depends on the STEP 7 license available. STEP 7 Basic can simulate only S7-1200 and S7-1200F. Professional adds S7-1500 (C, T, F models) and ET 200SP. Later versions gradually add ET 200pro, S7-1500R/H in RUN-Solo mode, Software Controller, and S7-1200 G2 from V20 onward.

The second is S7-PLCSIM V5.4 SP8. This one is for the older families, simulating S7-300 (including F models) with firmware 2.6 or later and S7-400 (including F models) with firmware 5.1 or later. It works with both STEP 7 V5.x and TIA Portal when the project uses S7-300/400, and it can run alongside the first program on the same machine.

The third is S7-PLCSIM Advanced, a separate product with its own floating license. 1 license covers 2 instances, and it includes a 21-day trial. It simulates S7-1500 (C, T, F), S7-1500R/H, Drive Controller, ET 200SP, ET 200pro and Software/Open Controller. The point to remember is that the classic S7-1200 has never been on the supported list in any version of Advanced. S7-1200 G2 support reportedly starts with V8.0, but I got that from a secondary source and have not opened the V8.0 manual to confirm it myself.

Three PLCSIM programs, from official manualsPLCSIM (TIA)PLCSIM V5.4 SP8PLCSIM AdvancedSimulated CPUsS7-1200, S7-1500S7-300, S7-400S7-1500, ET 200SPClassic S7-1200Yes (FW 4.0+)-No version supports itCommunicationSoftbus onlySoftbusSoftbus + TCP/IPinstance2Not specified16OPC UA, web, APINoNoYeslicenseWith STEP 7With STEP 7 ProSeparate, 21-day trialThe first always matches TIA's version; Advanced has its own versions to pair with TIA
Three programs sharing the PLCSIM name. The red boxes highlight the two points most likely to lead to the wrong choice: the standard version has only Softbus, and Advanced has no classic S7-1200 support.
Version numbers must matchTIA PortalV15.1->S7-PLCSIMV15.1 installed separately->SoftbusPG/PC interface named PLCSIM->instanceUp to 2

If the project uses S7-1200 with an older TIA version, this table settles the question: there is no alternative; it has to be standard PLCSIM. Even paying for Advanced will not give me S7-1200 support.

The standard version communicates only through Softbus

This was my biggest misunderstanding. Standard PLCSIM communicates only through Softbus. TIA sees it as a PG/PC interface named PLCSIM, not a network card. It has no TCP/IP connection to external programs, whether Python, SCADA or any OPC client. TCP/IP mode, the web server and OPC UA are available only in Advanced instances.

2Standard version instances
16Advanced instances
1024 bytesPer T-block receive
21 daysAdvanced trial period

I took this comparison table from section 2.2 of the Advanced V6.0 function manual, which already compares three columns: Advanced V6.0, S7-PLCSIM V19 and PLCSIM V5.x.

Capability Advanced V6.0 PLCSIM V19 PLCSIM V5.x
API for co-simulation Yes No No
Web server Yes No No
OPC UA Yes No No
S7 communication Yes Softbus Softbus
Open user communication Yes Softbus No
Trace Yes No No
Motion Yes Yes No
Know-how protected blocks Yes Yes, 1500 only No
Number of instances 16 2 Not specified

Communication between two standard PLCSIM instances is possible. Pages 143 to 146 of the V15 manual specify that all instances must be on the same PC and must have unique IP addresses. The instructions that can be simulated between instances are PUT/GET, TSEND/TRCV and TSEND_C/TRCV_C. But there is one behavioral difference from a real PLC: T-blocks have no receive buffer. TSEND will not finish until the receiving program runs TRCV, and it can receive at most 1024 bytes at a time. If the receiving program has not yet been called, the sender will appear stuck, even though on a real PLC the data could wait in a buffer.

There is another limitation involving this pair of instances that the manual does not describe, which I found myself while testing a TCP link between two PLCs. I covered it separately in the article on PLCSIM's second PROFINET interface, so I will not repeat it here.

What cannot be simulated: know this before trusting test results

The PLCSIM V15 manual clearly lists unsupported functions. I divide them into two groups: functions that cannot be simulated specifically on S7-1200, and functions that cannot be simulated on any model.

S7-1200 only

counting, PID, motion

Counting and HSC functions, PID (PID_Compact V2.x), and motion control technology objects cannot be simulated on S7-1200, but they can on S7-1500 and ET 200SP. The S7-1200 itself must have firmware 4.0 or later, and S7-1200F must have 4.1 or later, to be simulated.

All models

memory card, protection, special modules

Memory card functions such as data logging and recipes, access protection and copy protection, and special I/O module functions (the simulator sees only the process image). Everything involving PROFIBUS is skipped, and timing differs from a real PLC.

There are three more small details that can waste time if I do not know them beforehand.

First, blocks with know-how protection in V15 can be simulated only on S7-1500 and ET 200SP, and I must select Support simulation during block compilation in Project properties under Protection before compiling. V15.1 adds S7-1200 support.

Second, for an F-CPU, I must increase F-monitoring time from the default 150 ms before downloading to the simulator because its timing differs from real hardware.

Third, PLCSIM V15 and Advanced V2.0 can be installed on the same machine, but they cannot run at the same time.

Passing in the simulator does not mean everything was tested

If an S7-1200 program contains PID_Compact, HSC or a motion axis, that part is not simulated at all. What appears to pass is the result of the other logic. That leaves two options: test that part on real hardware, or write a custom FB to simulate the process, such as an FB that takes the loop output and calculates a measured value to feed back, with a bit to select simulation or real operation. And I must remember that the simulation FB represents my own assumptions, not the machine's behavior.

Reading values with Python or SCADA requires a bridge

Back to my original problem: since standard PLCSIM does not open TCP 102, there are two ways to let external programs read values. The first is a bridge program called NetToPLCsim, which supports TIA's PLCSIM from version 1.1.0 onward. It listens on port 102 instead and forwards traffic into Softbus. It gets control of port 102 by first stopping the machine's S7DOS service. The second is Advanced, which has its own virtual Ethernet adapter, but only supports S7-1500.

Two ways for external programs to read a simulated PLCExternal programPython, SCADANetToPLCsimListens on port 102Standard PLCSIMS7-1200, S7-1500TCP 102SoftbusStandard PLCSIM does not open TCP 102; it requires a bridgeExternal programPython, SCADA, OPC UAPLCSIM AdvancedS7-1500 onlyTCP/IP via virtual Ethernet adapterThe bridge must stop the machine's S7DOS service to take port 102
The only way for external programs to reach standard PLCSIM is through a bridge that listens on port 102 on its behalf. Advanced has its own TCP/IP support but can simulate only S7-1500.

Before starting the bridge, I recommend checking what currently holds port 102 and which service will be stopped.

# ใครฟัง port 102 อยู่บนเครื่องที่รัน simulator
Get-NetTCPConnection -LocalPort 102 -State Listen -ErrorAction SilentlyContinue |
    Select-Object LocalAddress, LocalPort, OwningProcess

# บริการที่สะพานต้องหยุดก่อนถึงจะยึด port 102 ได้
Get-Service | Where-Object DisplayName -like '*S7DOS*' |
    Select-Object Name, DisplayName, Status

For the program reading the values, code using the python-snap7 library would look roughly like this. The IP address is that of the machine running the bridge, not the IP address configured in the PLC project.

import snap7

plc = snap7.client.Client()
plc.connect('192.168.10.20', 0, 1)      # IP เครื่องที่รันสะพาน, rack 0, slot 1
raw = plc.db_read(10, 0, 2)             # DB10 เริ่มที่ byte 0 ยาว 2 byte
print(int.from_bytes(raw, 'big', signed=True))
plc.disconnect()
I have not measured this part myself yet

The bridge route is based on the program's documentation and the manuals. I have not measured it in my own lab yet, so I have no performance figures or side effects to report. In particular, what happens to other work on the same machine that depends on S7DOS when the service is stopped needs to be tested on a lab machine first. Also, according to the library documentation, reading DBs through the S7 protocol this way requires enabling PUT/GET access on the CPU, and the DBs must not be optimized. These settings should be used only in test projects.

What PLCSIM Advanced adds, and what it requires

If the work involves S7-1500 and requires actual TCP/IP, Advanced is the most direct answer. Besides Softbus, it offers TCP/IP through a virtual Ethernet adapter, can distribute instances across machines, can connect to an HMI or a real CPU, provides OPC UA, a web server, and C++ and C# APIs for co-simulation, runs up to 16 instances, and has virtual time and a virtual memory card.

The version numbers need attention: each Advanced version pairs with a TIA version.

Advanced TIA Portal Source for this row
V2.0 V15 Manufacturer documentation
V2.0 SP1 V15.1 Manufacturer documentation
V3.0 V16 Secondary source
V4.0 V17 Secondary source
V5.0 V18 Secondary source
V6.0 V19 (simulates CPU 15xx firmware 3.1.1) Manufacturer documentation
V7.0 V20 Secondary source
V8.0 V21 Secondary source

According to the manual, V6.0 requires 1 core and 1 GB of RAM per instance, plus 4 GB for Windows, or 8 GB if TIA runs on the same machine. This translates directly into a formula.

def ram_gb(instances, tia_same_machine):
    base = 8 if tia_same_machine else 4     # ส่วนของ Windows (และ TIA ถ้าอยู่เครื่องเดียวกัน)
    return base + instances * 1             # 1 GB ต่อ instance

def cores(instances):
    return instances * 1                    # 1 core ต่อ instance ไม่รวมของระบบ

for n in (2, 4, 16):
    print(n, 'instance ->', ram_gb(n, True), 'GB,', cores(n), 'core')
# 2 instance -> 10 GB, 2 core
# 4 instance -> 12 GB, 4 core
# 16 instance -> 24 GB, 16 core

Another point the manual emphasizes is using an isolated simulation network, because instance communication has no authentication: anyone on the same network can connect. If running in a VM, I recommend attaching the simulator's adapter to a host-only network and keeping it off the office network.

The selection criteria I use

After reading everything, I reduced it to a sequence of questions. Answering them from top to bottom leaves just one option almost every time.

  1. If the CPU is S7-300 or S7-400, use S7-PLCSIM V5.4 SP8 and stop here.
  2. If the CPU is a classic S7-1200, use only standard PLCSIM with the version matching TIA. Advanced does not support it.
  3. If the CPU is S7-1500 and the task is just testing logic from TIA, standard PLCSIM is enough. No additional license is needed.
  4. If Python, SCADA or AI must read values over TCP, S7-1500 allows a choice between Advanced and a port 102 bridge. For S7-1200, the bridge is the only option.
  5. If OPC UA, a web server, an API or more than 2 instances are needed, use Advanced and check that its version pairs with TIA.
  6. If the program uses PID, HSC or motion on S7-1200, plan to test that part on real hardware or write a custom FB to simulate the process.

I wrote it as a short function so the team can use it to answer the same question.

def pick_simulator(cpu, need_tcp=False, need_opcua=False, instances=1):
    if cpu in ('S7-300', 'S7-400'):
        return 'S7-PLCSIM V5.4 SP8'
    if cpu == 'S7-1200':
        if need_opcua or instances > 2:
            return 'ไม่มี simulator ที่ทำได้ ต้องใช้ฮาร์ดแวร์จริง'
        return 'S7-PLCSIM (TIA)' + (' + สะพาน port 102' if need_tcp else '')
    if cpu == 'S7-1500':
        if need_opcua or instances > 2:
            return 'S7-PLCSIM Advanced'
        if need_tcp:
            return 'S7-PLCSIM Advanced หรือ S7-PLCSIM (TIA) + สะพาน port 102'
        return 'S7-PLCSIM (TIA)'
    raise ValueError('ไม่รู้จัก CPU: ' + cpu)

print(pick_simulator('S7-1200', need_tcp=True))
print(pick_simulator('S7-1500', need_opcua=True))

For my own work, I am using an older TIA version and only need to verify the logic before deploying to the machine, so I am staying with standard PLCSIM and accepting that external programs need another route to read values. For S7-1500 work that needs thorough testing with SCADA, paying for Advanced makes sense, depending on the budget and the nature of the work at each site.

Summary

Before asking what PLCSIM can do, the first question is which PLCSIM. The standard version is tied to TIA's version number, can simulate S7-1200 and S7-1500, communicates only through Softbus, and supports 2 instances. V5.4 SP8 is for S7-300/400, while Advanced is for S7-1500 work that needs real networking, with no classic S7-1200 support. The manuals clearly list what cannot be simulated, and that list should be checked before concluding that a program has passed testing.

Simulator results do not certify a real machine

Simulator timing differs from a real PLC, special modules are visible only through the process image, and some functions are not simulated at all. The figures and conditions in this article come only from the manuals for the versions I read; other versions may differ. Downloading a program to a machine whose outputs drive real equipment requires on-site inspection and testing by the control systems engineer responsible for that machine, rather than relying on simulation results alone.

What remains is measuring the port 102 bridge route in my own lab and reading the manuals for the Advanced versions I still cite from secondary sources. Once I have results, or if I find that I have misinterpreted anything in the manuals, I will come back and update the article.

Hit something like this? Stuck somewhere?

Come trade notes on the LinuxThai board

→ Continue on the board

Comments 0

No comments yet — be the first