• Articles
  • Api Documentation
Show / Hide Table of Contents
  • The main page
  • Introduction
  • Organization of the postprocessing system
    • Running the postprocessing
    • Postprocessors' development tools
    • Postprocessor's file set
  • User interface
    • CLData Viewer
      • Main window
      • Postprocessor settings window
      • Registers windows
    • Visual Studio Code
  • How to write postprocessors
    • How to prepare the computer to start writing the postprocessors
  • Postprocessors object model
    • TPostprocessor
    • CLData subsystem
      • ICLDProject
      • ICLDMachineInfo
      • ICLDFile
      • ICLDTechOperation
      • ICLDSub
      • ICLDCommand
    • Input data subsystem
      • Settings.Params
      • InputBox
      • CreateInputBox
    • Output files subsystem
      • TNCFilesManager
      • TNCFile
      • TTextNCFile
      • TSimpleTextNCFile
      • TExternalNCFile
      • TBinaryNCFile
    • Registers subsystem
      • NCBlock
      • NCWord
      • NumericNCWord
      • CountingNCWord
      • TextNCWord
  • Useful functions
    • String functions
      • SameText
      • Pos
      • Copy
      • Replace
      • Transliterate
      • Length
      • Chr
      • Ord
      • StringOfChar
      • Num
      • Str
      • STFloatToStr
      • STTryStrToFloat
      • TryStrToInt
    • Numerical functions
      • Abs
      • Sgn
      • IsEqD
      • IsGeD
      • IsGtD
      • IsLeD
      • IsLtD
      • IsZeroD
      • Refine
      • Round
      • Trunc
      • Sqr
      • Sqrt
    • Trigonometric functions
      • ArcCos
      • ArcSin
      • ArcTan
      • ArcTan2
      • Cos
      • Sin
      • Tan
    • Point, Vector, Matrix, Quaternion functions
      • Main geometrical types
      • Geometrical functions
      • Euler angles and Matrix converter
      • Geometrical objects visualizer
      • Geometrical objects visualizer methods
    • Date-Time functions
      • CurDate
      • CurISODate
      • CurTime
    • Input-output functions
      • CreateInputBox
      • InputBox
      • Log.MessageBox
      • Log.Error
      • Log.Info
      • Log.Warning
      • Print
    • Specific postprocessing functions
      • BreakTranslation
      • Cross
      • FlagIn
      • NextToolNum
      • ToolChange
    • CLData functions
      • CLDProject.FindCommand
      • CurrentFile.FindCommand
      • CurrentFile.Cmd[i], CurrentFile[i]
      • CurrentFile.GetCommandType(int index)
      • CurrentFile.IndexOfCmd
      • CurrentFile.IndexOfCmdName
      • CurrentCmd.FindNextCommand
      • CurrentCmd.Next
      • CurrentCmd.Prev
      • CurrentCmd.NextMotion
      • CurrentCmd.PrevMotion
      • CurrentOperation.NextOp
      • CurrentOperation.PrevOp
      • CurrentOperation.PPFunCommand
      • CurrentOperation.LocalCSCommand
      • CurrentOperation.PlaneCommand
      • CurrentOperation.SpindleCommand
      • CurrentOperation.Tool
      • CurrentOperation.WorkpieceCSCommand
      • CurrentOperation.Props
    • Useful types
      • InpArray<T>
      • InpNumber
      • TInp2DPoint
      • TInp3DPoint
      • TInp5DPoint
      • TInpQuaternion
      • TInpRotation
      • TInpLocation
      • CLDCmdType
      • CLDConst
      • INCLabel
  • CLData documentation
  • API documentation
  • Tutorials
    • C# programming language official documentation (available in many languages)
    • Visual Studio Code introductory videos

Running the postprocessing

Let's see how to generate a G-code using the postprocessors.

NC-program generation window

The first simplest way, of course, is to use the window of the CAM system specially designed for this. You can open it using the "Postprocessor" button ad the top toolbar of the main window.

NC generation window

Here you just need to choose desired postprocessor in the left top list, then define some additional settings in the right top properties list like output NC file name, for example, and, finally, click the "Run" button. At the bottom part of the window you will see the content of a generated G-code file. To get the file itself you can use the "Show file in Windows explorer" popup menu item of the panel with G-code.

Running of postprocessors in console mode

The postprocessing system is a standalone program, so you can also run it independently from the CAM system, the same way like the CAM do it behind the scenes. To do it just run standard Windows command prompt from the Start menu or "Win+R" keyboard shortcut and type "cmd". Here you need to type the path to the InpCore.exe utility from the CAM installation folder.
It will show you the welcome screen with the list of available parameters.

InpCore.exe console window

To generate a G-code you should specify the following parameters.

  • "-batchmode" - to start standalone postprocessing without postprocessor debugging through the CLData Viewer.
  • "-postfile:<path to the postprocessor dll>" - full path to the postprocessor's dll file you want to use.
  • "-cldfile:<path to the CAM project stcp>" - full path to the CAM project stcp file which contains the toolpath you want to postprocess.
  • "settingsfile:<path to the postprocessor's settings.xml file>" - the full path to the xml file, which should contain settings specific to a particular postprocessor. For example, inside it you can specify the output file name, G-code program number, employee name, etc.

Below is an example of postprocessing in console mode. InpCore.exe example

And the resulting G-code. InpCore.exe example

In this article
Back to top Generated by DocFX