For a university project I built a tool which measures a suite of common software metrics for ladder logic code. Metrics calculated include cyclomatic complexity, Halstead volume, difficulty and effort as well as many others at various points in the control hierarchy; Routines, Programs, Controllers and multiple files. All results are exported as an xml file which can then be imported in to Excel. I'd like to increase the robustness of the tool. I've already tested it with 1.5million lines of code from a car manufacturer but it still needs more refining. If anyone is interested in using this tool to assess the quality of their code or is prepared to let me loose on their source code (I'll sign any NDA if that is an issue) then please let me know.