Changing the Values of Variables G code : G36 , G37 Function : The commands change the value of a variable. G36 writes the specified value to a variable. G37 increments the variable by the specified v
Subprograms Function : Call of a subprogram Frequently recurring tasks, such as pocket milling, hole drilling, and tool changing, can be swapped out to G code subprograms and called from there. During
Expressions Function : In version 4.4.0.0 and higher, it is possible to use mathematical, Boolean, and string expressions. The SMC_ReadNCFile2 and SMC_NCInterpreter functions blocks have to be used fo
Local Variables Each G code file can declare local variables. For main programs, the declarations have to be inserted at the very beginning; for subprograms, directly after the subprogram declaration.
CNC Example 01: Generating OutQueue Directly See the CNC01_direct.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples . This example shows a CNC progra
CNC Example 02: Online Decoding with Variables See the CNC02_online.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples . The example shows how to use
CNC Example 03: Performing Path Preprocessing Online See the CNC03_prepro.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples . The example shows how p
CNC Example 04: Programming CNC using the Tabular Editor See the CNC04_table.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples . In this project, the
CNC Example 05: Creating CNC from a File See the CNC05_File.project sample project in the installation directory of CODESYS under ..\CODESYS SoftMotion\Examples . With this sample project, you can und