Read and write live PLC values over S7 runtime
The only family that does not need a TIA Portal session at all. It talks to a running PLC: browse the address space, read and write values, and read or acknowledge alarms.
5 of the 351 verbs · TIA Portal V19, V20 and V21
tia rt-browse --user U --password-env VAR [--url https://localhost/graphql/] [--filter F*]- ring 0, no Portal needed
tia rt-read --tag NAME [--tag NAME2] --user U --password-env VAR [--url U]- ring 0, no Portal needed: current value, timestamp and quality of RT tags, read directly from the PLC (directRead)
tia rt-alarms --user U --password-env VAR [--url U] [--filter CQL]- ring 0, no Portal needed: active alarms of the RT
tia rt-write --tag NAME=VALUE [--tag ...] --user U --password-env VAR [--url U] [--apply]- ring 0, no Portal needed: writes RT tags
tia rt-ack --alarm NAME[:INSTANCE] [--alarm ...] --user U --password-env VAR [--url U] [--apply]- ring 0, no Portal needed: acknowledges active alarms
Common questions
How do I read a live PLC value without TIA Portal?
tia rt-read reads over the S7 runtime connection, with tia rt-browse for the address space and tia rt-write to write. This is the only family that needs no TIA Portal session at all.
Can I acknowledge PLC alarms from a script?
tia rt-alarms lists the alarms and tia rt-ack acknowledges them.
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
- Run and inspect PLCSIM from the command line5 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