Additional Spline Axes A, B, C G code word : A , B , C Function : The words A, B, and C define the target positions for spline additional axes. In principle, the additional axes act like P , Q , U , V
Smoothing of Additional Axis Motion using Multiple Objects G code : G70 , G71 Function : G71 starts and G70 ends the smoothing of motion on the additional axis that is given in L and travels over mult
Configuring Single Additional Axes as Modulo Axes (PA/PB/…) Function: For the axes A, B, C, P, Q, U, V, and W, a modulo period can be specified by setting the words PA , PB , PC , etc. By default, PA
Using Variables Syntax $<Variablenname>$ Valid IEC base types for variables and expressions: INT , SINT , USINT , UINT , DINT , UDINT , BYTE , WORD , DWORD , REAL , and LREAL . Exceptions include the
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