Download, upload and compare a Siemens PLC online
The online boundary. These verbs scan the network for reachable targets, go online, download or upload a station, and compare what is in the PLC against what is in the project before anything is written.
9 of the 351 verbs · TIA Portal V19, V20 and V21
tia online-state [--plc X]- read-only: connection state of the PLC (Offline/Online/NotReachable/...), whether the access configuration was ever made (isConfigured) and the connection modes
tia list-online-targets [--plc X]- read-only: the whole access tree
tia net-scan [--pc-interface X]- read-only: what answers on the network (DCP, the GUI's Accessible devices) on each PC interface
tia go-online [--plc X] [--pc-interface PLCSIM] [--answer Question=Selection] [--user U] [--password-env VAR | --password P] [--target T] [--apply] [--allow-physical]- applies the access configuration and connects
tia go-offline [--plc X] [--apply]- disconnects
tia download [--plc X | --device D] [--pc-interface PLCSIM] [--options hardware,software] [--answer Question=Selection] [--password-env VAR | --password P] [--target T] [--to-dir DIR] [--apply] [--allow-physical]- --to-dir writes the download into a folder instead of a station: the only route for a WinCC Unified PC RT, which has no connection configuration
tia upload-station --device D [--pc-interface PLCSIM] [--answer Question=Selection] [--password-env VAR | --password P] [--apply] [--allow-physical]- uploads a station that is ACCESSIBLE on the network into the project
tia fingerprint-station --device D [--pc-interface PLCSIM] [--answer Question=Selection] [--password-env VAR | --password P] [--allow-physical]- read-only: the fingerprint of a station that answers on the network, for a quick station compare
tia compare-software [--plc X] [--to OTHER-PLC] [--max 200]- read-only: without --to it compares the PLC software against the CONNECTED CPU (CompareToOnline, needs go-online first)
Common questions
How do I download a Siemens PLC station from the command line?
tia net-scan and tia list-online-targets find the target, tia go-online opens the connection, and tia download or tia upload-station moves the station.
How do I check whether the PLC matches the project?
tia compare-software compares offline against online before anything is written; tia online-state reports the operating state and tia fingerprint-station the station's fingerprint.
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
- Run and inspect PLCSIM from the command line5 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