Inserting Free Drive Units Free drive units are not permanently coupled with other devices in the device tree. They are inserted in the device tree below SoftMotion General Drive Pool . :
Drive Control 'Drive_PosControl' With the Drive_PosControl drive control, you can let the position control of an axis of CODESYS continue to run. The requirement is a device that is controlled by the
Preprocessing G-Code : G40 , G41 , G42 , G43 , G50 , G51 , G52 , G60 , G61 , G70 , G71 Function : The commands activate preprocessing modules, such as SMC_SmoothPath , SMC_RoundPath , SMC_AvoidLoop ,
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
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