User Tools

Site Tools


mycnc:global_variables_description

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:global_variables_description [2020/03/26 13:41] ivanmycnc:global_variables_description [2021/10/19 16:09] ivan
Line 4: Line 4:
  
 The values stored in these global variables are defined in the myCNC profile that is being used, within the cnc-variables.xml file. This file contains a list of CNC and global variables that the program utilizes, as well as their values and minimum/maximum possible values. The values stored in these global variables are defined in the myCNC profile that is being used, within the cnc-variables.xml file. This file contains a list of CNC and global variables that the program utilizes, as well as their values and minimum/maximum possible values.
 +
 +The myCNC program auto-updates the cnc-variables.xml file when the program is closed, to save the current state of the global variables.
 +
 +//**NOTE**: Only the files that are already in the ''cnc-variables'' list are updated. When writing a variable (via the ''gvarset'' command, for example) from the Software PLC, the variable is added to the global variables list. If the variable is simply being read, or used to display some value changes on the screen, it will not be added to ''cnc-variables.xml'' file and the value will be lost on program restart - this is highly relevant for custom gvariables (#3500-3900).//
  
 These min/max values are useful to set up once during the machine setup to provide realistic bounds for the range of a certain global variable.  These min/max values are useful to set up once during the machine setup to provide realistic bounds for the range of a certain global variable. 
Line 17: Line 21:
   * in this example, **1000** represents the current value of the aforementioned variable   * in this example, **1000** represents the current value of the aforementioned variable
  
 +{{youtube>M4oQrq4BXkw?large}}
  
 ==== List of global variables ==== ==== List of global variables ====
Line 31: Line 36:
 <code>G10 L80 P5525 Q0 (Write 0 to #5525)</code> <code>G10 L80 P5525 Q0 (Write 0 to #5525)</code>
  
 +Writing a value larger than 2 will initialize a timer after the macro containing Global Variable #5525, delaying the subsequent turning on of Software Limits control. This is useful in situations where a prolonged procedure requires a longer time within which the Software Limits are turned off than the macro containing P5525 Q1 itself.
 +
 +Example of code: 
 +
 +<code>G10 L80 P5525 Q15 (15 sec timer)</code>
  
 ===  60010 === ===  60010 ===
mycnc/global_variables_description.txt · Last modified: 2022/08/04 10:58 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki