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 revisionBoth sides next revision
mycnc:global_variables_description [2017/09/05 20:46] skirillovmycnc:global_variables_description [2020/03/26 13:41] ivan
Line 1: Line 1:
 ===== Global Variables Description ===== ===== Global Variables Description =====
  
 +A global variable is a variable which is used by the myCNC application to store some information about a particular process, flag or setting. A full list of global variables is available [[mycnc:global_variables|here]].
  
 +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.
 +
 +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. 
 +
 +The syntax then is the following:
 +
 +<code><value name="motion-acceleration-z" min="1" max="20000" step="50">1000</value></code>
 +
 +where:
 +  * **name** is the variable name
 +  * **min** and **max** represent the bounds of the range
 +  * **step** represents the step value for when the variable value is increased or decreased (useful for on-screen buttons)
 +  * in this example, **1000** represents the current value of the aforementioned variable
 +
 +
 +==== List of global variables ====
 === 5521 === === 5521 ===
 Writing "1" to register #5521 turn off Hardware Limit Sensors control temporarily. For example, it can be used if Home sensor is used as limit sensor as well. In this case Hardware Limits control should be disabled temporarily during Homing procedure to not abort Homing when LImit sensor triggered. At the end of Homing procedure Hardware Limits control should be enabled again, however it will be made automatically after procedure running finished. Writing "1" to register #5521 turn off Hardware Limit Sensors control temporarily. For example, it can be used if Home sensor is used as limit sensor as well. In this case Hardware Limits control should be disabled temporarily during Homing procedure to not abort Homing when LImit sensor triggered. At the end of Homing procedure Hardware Limits control should be enabled again, however it will be made automatically after procedure running finished.
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