Website logo
Home pageWeb storeDistributors
Software
Hardware
Settings
Troubleshooting
Navigate through spaces
⌘K
EdingCNC Documentation
Software installation
G-code
Language standard
Supported G-code
Supported M-codes
Other input codes
Special commands
Special features
Macro programming
Macro programming
Run behavior during loading of job file and simulation
M Function override and user M-functions
Features
Oil pump
Interface
Keyboard shortcuts
Release notes
Docs powered by Archbee
G-code
Special commands

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
Docs powered by Archbee