Diagnostic logging - Nesting

 

Extra logging options when using the Nesting optimisers

 

The diagnostic logging facility helps trace software and hardware problems. When logging is turned on the program records software events to a log file. This file can be sent to the distributor for analysis.

 

For full details of logging and how to set it up see the Topic: Diagnostic logging

 

For Nesting extended diagnostics can be used.

 

To select this:-

 

Add the argument ‘V12log’ to the Target field of the desktop shortcut and set the logging level to 2 or higher, for example:-

   

Target: c:\v12\v12.exe v12log=c:\MyLog.txt,2

 

Note - the log file is never deleted by the program and if logging is left on for an extended period, this file may become very large.

 

The activity codes are:-

 

801 - Read nesting parameters

802 - Set registry parameters

803 - Process material

804 - Set offcut parameters

805 - Create MPR(X) file

806 - Create PRN file

807 - Create TXT file

808 - Run WoodNest

809 - Import CSV file

810 - Delete file/directory

 

Example of logging file

 

30-May-15, 10:38:40 (787), 801, C:\V12\Nesting.exe, userx, Read nesting parameters, 1

30-May-15, 10:38:40 (787), 802, C:\V12\Nesting.exe, userx, Set registry parameters

30-May-15, 10:38:40 (787), 802, C:\V12\Nesting.exe, userx, Anfahrlaenge=20.0, 0

30-May-15, 10:38:40 (896), 803, C:\V12\Nesting.exe, userx, Process material=CHIPBOARD-18MM

30-May-15, 10:38:40 (896), 804, C:\V12\Nesting.exe, userx, Set offcut registry parameters

30-May-15, 10:38:40 (896), 804, C:\V12\Nesting.exe, userx, RestGen=2, 0

30-May-15, 10:38:40 (912), 805, C:\V12\Nesting.exe, userx, Create MPR file “C:\V12\Nesting\00004-0001.mpr”, 1

30-May-15, 10:38:40 (943), 806, C:\V12\Nesting.exe, userx, Create PRN file “C:\V12\Nesting\00004-0001.prn”, 1

30-May-15, 10:38:40 (943), 807, C:\V12\Nesting.exe, userx, Create TXT file “C:\V12\Nesting\00004-0001.txt”, 1

30-May-15, 10:38:58 (271), 808, C:\V12\Nesting.exe, userx, Run WoodNest “C:\ww4\Programs\Woodnest\WoodNest.exe -f= C:\V12\Nesting\00004-~1.PRN -r= C:\V12\Nesting\00004-~1.TXT -silent -c= C:\V12\Nesting\ -p –ne”, 0

30-May-015, 10:38:58 (271), 809, C:\V12\Nesting.exe, userx, Import CSV file “C:\V12\Nesting\00004-~1.csv”, 0

30-May-015, 10:39:15 (303), 810, C:\V12\Nesting.exe, userx, Delete file “C:\V12\Nesting\00004-0001.mpr”, 1

 

Where possible return values are specified at the end of the line. For the setting of registry parameters and running of WoodNest ‘0’ (zero) indicates that the process was successful. For all other processes ‘1’ (one) indicates success and ‘0’ (zero) indicates failure. This is a little confusing but both the registry setting function and WoodNest have several different error return codes so they use zero for success and values greater than zero for failure. The other processes return either true (if successful) or false (if not successful).

 

The following activity codes during post-optimisation calculations.

 

801 - Create temporary part files

802 - Create temporary offcut files or 802 - Using offcut file template

803 - Create temporary board files or 803 - Using board file template

804 - Create PRJ file

805 - Run PrjMgr32

806 - Remove temporary files

 

If the nesting parameter offcut template is set then the 2nd 802 message is added to the log.

If the nesting parameter ’Unprocessed panel template’ is set the 2nd 803 message is added.

 

Example output

 

30-May-15, 10:38:40 (787), 801, C:\V12\Nesting.exe, userx, Create temporary part files, 1

30-May-15, 10:38:40 (787), 802, C:\V12\Nesting.exe, userx, Create temporary offcut files, 1

30-May-15, 10:38:40 (787), 803, C:\V12\Nesting.exe, userx, Create temporary board files, 1

30-May-15, 10:38:40 (896), 804, C:\V12\Nesting.exe, userx, Create PRJ file C:\V12\Nesting\00004.prj , 1

30-May-15, 10:38:40 (896), 805, C:\V12\Nesting.exe, userx, Run PrjMgr32 "c:\ww50\prjmgr32 .......", 0

30-May-15, 10:39:15 (303), 806, C:\V12\Nesting.exe, userx, Delete temporary files, 1

 

This is repeated for each run in the batch.

 

The log file will include 0 or 1 at the end of each line to indicate success or failure. 1=Success, 0=failure.

 

 

See Also