G-code
Special commands
SP (Store Position)
2min
store the current work position in a text file sp "\<file path>" \[mode] parameters the file path parameter is a text parameter that specifies the file path to be used to write to mode parameter needs to be a value of either 0 or 1 0 specifies that the file is to be overwritten 1 specifies that the file is to be appended to if this parameter is omitted, the file is appended to