G-code based program simulation
Process of modeling processing of NC program
In G-code based simulation, two more steps are added to the calculation of the operation, in addition to the formation of the tool path:
generating of the NC-code by the generated tool path;
interpretation of the in the secondary (restored by NC) tool path.
Machining simulation uses a secondary processing (reduced) tool path.
Generation of the NC-code by the primary path
NC-code is generated by means of the postprocessor selected for the machine. During post-processing overhead variable postprocessor operation mode <WorkingMode> takes the value 1.
Interpretation of the NC-code
By interpretation, we mean the process of transforming the text of a control program, its words and frames, into technological CLDATA commands, which form the tool path. In the SprutCAM X interpreting process with using the selected interpreter for the machine:
sequentially reads the frames of the NC;
using information about registers received from the interpreter, selects words (or semantic constructions) from the NC-code's frame or suggests the interpreter to select words independently;
transmits words to the interpreter in the order they placed in the frame;
the interpreter, taking into account the features of the machine, converts the words of the code into technological CLDATA commands , which form the restored tool path.
The interpreter description is given in section Interpreter structure.
The interaction of SprutCAM X with the interpreter to obtain a secondary (restored) tool path is described in G-code based program interpretation section.