Examples of interpreters with source codes
The example projects were created in Microsoft Visual Studio for .NET Framework 4 and reference interop assemblies for the STNCInterpreter, STNCAnalyzer and STNCFormers type libraries: sample_dc references the ..\tlb\STNC*.dll files, the others use COM references to registered type libraries. These assemblies are not included in the archives: take the *.tlb files from the NuGet package (see Interpreter library) and create the interop assemblies from them with the tlbimp tool. A new C# interpreter is easier to create from a CAM system template, see Developing a custom interpreter in (.NET) C#.
1. Interpreters for simulation and tool path import (based on machine CLData)
1.1. Interpreter sample.
Implements linear and circular movements and the feed change command for the Fanuc 30i controller (milling).
The source code of the interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The interpreter based on the compiled library (sample.dll) and its settings file (sample.snci) can be obtained at this link.
1.2. Interpreter with inheritance sample_inheritance.
Descendant of the sample interpreter. In addition to the parent's commands, it implements several basic commands: M, S, T, G04 X P (dwell).
The source code of the descendant interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The descendant interpreter based on the compiled library (sample_inheritance.dll) and its settings file (sample_inheritance.snci) can be obtained at this link.
1.3. Interpreter with inheritance sample_Fanuc30i_Mill.
Descendant of the Fanuc30i_Mill interpreter (included in the CAM system distribution). In addition to the parent's commands, it implements the G04 X P command (dwell).
The source code of the descendant interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The descendant interpreter based on the compiled library (sample_Fanuc30i_Mill.dll) and its settings file (sample_Fanuc30i_Mill.snci) can be obtained at this link.
1.4. Interpreter using the drilling cycle generator sample_dc.
Implements the CYCLE81 command for the Sinumerik 840D milling controller.
The source code of the interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The interpreter based on the compiled library (sample_dc.dll) and its settings file (sample_dc.snci) can be obtained at this link.
The following project demonstrates how the interpreter works. Download the project and the interpreter. Open the project, set the sample_dc.snci interpreter in the G-code based operation settings, calculate the operation and simulate it.
2. Interpreters for tool path import (based on geometric CLData)
2.1. Interpreter sample_geom.
Implements linear and circular movements for 3-axis milling and the feed change command for the Fanuc 30i controller.
The source code of the interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The interpreter based on the compiled library (sample_geom.dll) and its settings file (sample_geom.snci) can be obtained at this link.
2.2. Interpreter sample_geom_5x.
Implements linear and circular movements for 5-axis milling (commands: X, Y, Z, TRAORI, TRAFOOF, A3, B3, C3) and the feed change command for the Sinumerik controller.
The source code of the interpreter library developed for Microsoft Visual Studio (C#) is available at this link.
The interpreter based on the compiled library (sample_geom_5x.dll) and its settings file (sample_geom_5x.snci) can be obtained at this link.
The following project demonstrates 5-axis movements. Download the project and the interpreter. Open the project, set the sample_geom_5x.snci interpreter in the G-code based operation settings, calculate the operation and simulate it.