Tia-Portal-CLI

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.

Start a 14-day free trial

Other verb families