Run and inspect PLCSIM from the command line
Simulation makes a change testable before it reaches real hardware. These verbs run PLCSIM, read its diagnostic buffer and memory areas, snapshot its state, and move its clock.
5 of the 351 verbs · TIA Portal V19, V20 and V21
tia sim-run [--plc X] [--instance plc_1500_1] [--pc-interface PLCSIM] [--script sim.json] [--no-download] [--target T] [--password-env VAR] [--apply]- --password-env answers the confidential-data password (PlcMasterSecretPassword) the download asks on a protected CPU, as in download
tia sim-diag [--instance NAME] [--watch SEC]- ring 0, no Portal needed
tia sim-mem [--instance plc_1500_1] [--addr %M10.0] [--write %M10.0=1] [--apply]- ring 0, no Portal needed: reads and writes the memory areas of the PLCSIM Advanced instance BY ADDRESS, where sim-run goes by tag name
tia sim-snapshot [--instance plc_1500_1] [--file PATH] [--restore] [--cleanup] [--offline-first] [--apply]- ring 0, no Portal needed: storage of the PLCSIM Advanced instance
tia sim-time [--instance plc_1500_1] [--set-time ISO8601] [--scale X] [--mode M] [--min-cycle-ns N] [--run-ns N] [--apply]- ring 0, no Portal needed: virtual clock of the PLCSIM Advanced instance
Common questions
Can I run PLCSIM from the command line?
Yes. tia sim-run starts the simulation, tia sim-diag reads its diagnostic buffer, tia sim-mem reads memory areas, tia sim-snapshot saves the state and tia sim-time moves the clock.
Do I need an open project to read the PLCSIM diagnostic buffer?
No. tia sim-diag takes no TIA Portal session; the rest of the family works alongside one.
Run these verbs on your own project
Every verb above takes JSON on the way out and plain flags on the way in. Tia-Portal-CLI is local and on-premise: nothing is sent to a cloud service, and
every write is a preview until you pass --apply. 14-day free trial, e-mail only,
no card.
Other verb families
- Open, create and archive a TIA Portal project from the command line11 verbs
- Read a Siemens TIA Portal project from the command line123 verbs
- Create, move and delete TIA Portal blocks and folders12 verbs
- Configure Siemens PLC hardware from the command line46 verbs
- Generate and import TIA Portal blocks in SCL and ladder46 verbs
- Install and harmonise a TIA Portal global library by command24 verbs
- WinCC Unified screens and tags from the command line26 verbs
- Siemens Safety groups, signatures and printouts by command12 verbs
- TIA Portal Multiuser server sessions from the command line12 verbs
- Download, upload and compare a Siemens PLC online9 verbs
- Read and write live PLC values over S7 runtime5 verbs
- Browse, read and write OPC UA from the command line4 verbs
- TIA Portal certificates, syslog and password policy by command5 verbs
- Check the TIA Portal environment, licences and knowledge base11 verbs