Lists files in the source folder
awltool ls ./path/to/project
Prints the contents of an AWL file or DB with addresses.
awltool pp /path/to/file.awl
awltool pp ./path/to/project:DB1200
awltool pp ./path/to/project:"My DB"
Dumps core from an Step7 program folder
awltool cat ./path/to/project:"My function block"
You may specify a source file or a block
Copy all source files to a matching directory structure on the disk
awltool outsource ./path/to/project --dest /path/to/destination
Prints the symlist of a project
awltool sym -f ./path/to/project
Lists the contents of two DBS side by side for comparison
awltool diff -a ./path/to/first/project:DB123:A.B.C -b ./path/to.second/project:DB234:B
awltool diff -a ./path/to/first/project:DB123.A.B.C -b ./path/to/file.awl
Note that a general diff between two blocks in AWL source format may be performed from the command line by using two pipes like this:
$ diff <(awltool dump DB123) <(cat ./path/to/awl/file.awl)
All commands support git integration like
awltool cat HEAD^:./path/to/project:"My function block"
Path specs are done by having git:path:block_name
An archived zip file from Step7 may be processed directly by issuing the name of the zip file as a path:
awltool cat ./path/to/zip/file.zip:"My function block"
Any zip file reference or a .awl
file may be supplied as a http reference that is downloaded and processed directly.
awltool cat http://www.host.com/file.zip:"My function block"
A DB may be read from the PLC using the following command.
awltool live 192.168.0.1 ./path/to/project:DB123
It will use the Step7 protocol for this.