website logo
Home pageWeb storeDistributors
Software
Hardware
Settings
Troubleshooting
Navigate through spaces
⌘K
EdingCNC Documentation
Getting started with your new controller
G-code
Language standard
Supported G-code
Supported M-codes
Other input codes
Special commands
Special features
Macro programming
Run behavior during loading of job file and simulation
Software installation
Interface
Keyboard shortcuts
Docs powered by archbee 

GetToolInfo

2min

Retrieves information about used tools inside the current job and stores that information in a variable.

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



PREVIOUS
DlgMsg
NEXT
SP (Store Position)
Docs powered by archbee 
TABLE OF CONTENTS
Example