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
SubProgramDirs : ARRAY[0..4 [...] 50 DYNCALL($SUBNAME$, 2, 4
Expressions Function : In version 4.4 [...] OR BOOL BOOL , BOOL 4
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