Skip to content

Parser and command line tool for Siemens AWL files - GROSSLY INCOMPLETE

License

Notifications You must be signed in to change notification settings

tallakt/awltool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWL Tool

Subcommands

List files

Lists files in the source folder

awltool ls ./path/to/project

Pretty print awl file

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"

Dump raw AWL code

Dumps core from an Step7 program folder

awltool cat ./path/to/project:"My function block"

You may specify a source file or a block

Export all sources

Copy all source files to a matching directory structure on the disk

awltool outsource ./path/to/project --dest /path/to/destination

Symlist

Prints the symlist of a project

awltool sym -f ./path/to/project

DB compare

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)

Git integration

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

Zip file integration

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"

HTTP support

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"

Read live values from PLC

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.

About

Parser and command line tool for Siemens AWL files - GROSSLY INCOMPLETE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages