G-code
Special commands
GetToolInfo
2min
retrieves information about used tools inside the current job and stores that information in a variables docid\ oqhjs3llcfqksac cemc2 gettoolinfo \<num | first | next> \<variable number> example gettoolinfo num 200 will store the number of used tools in the current job in variable #200 gettoolinfo first 201 will store the first tool number in variable #201 gettoolinfo next 201 will store the next tool number in variable #201 ; enumerate tools used in a job ; as an example, this can be used to measure the length of all tools at once before running the job sub measure used tools gettoolinfo num 5025 ; msg "number of tools used = " #5025 gettoolinfo first 5025 while \[#5025 <> 1] gosub m tool no dlg ; subroutine that measures tools msg "tool "#5025" is measured" gettoolinfo next 5025 endwhile endsub