Check:

Pseudo-code (reconstructed):

For users looking to manage complex CNC projects, ensuring the Mach3lic.dat