The Preview of Preprocessed Code feature in NCPlayer allows the user to view the final version of the G-code program prepared for simulation.
During preprocessing, the following operations are performed:
Expanding subprograms (M98, Oxxx) into the main code stream;
Substituting values of macro variables (#100–#199, #500–#531, etc.);
Calculating FANUC expressions and functions (SIN, COS, ROUND, etc.);
Removing comments and empty lines (if specified in settings);
Normalizing command format to a unified style (e.g., G00/M00/T00).
The result is displayed in a separate window in a clear, readable format.
This allows the operator or programmer to:
Verify the correctness of macro variable substitutions;
Ensure the proper logic of the control program after processing;
Analyze optimization and detect possible errors before starting simulation or running on the actual machine.
This mode is especially useful when working with macro programming and complex control programs that include loops, conditions, and subprogram calls.