mycnc:global_variables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:global_variables [2019/09/19 15:10] – ivan | mycnc:global_variables [2019/10/15 11:15] – ivan | ||
---|---|---|---|
Line 108: | Line 108: | ||
| GVAR_LATHE_GEARS | 5715 | Gear ratios can be used on lathe machines. In order to allow for constant surface speed while changing gears, the gear ratio is used. This global variable stores the value of the gear ratio to be used to calculate CSS | | | GVAR_LATHE_GEARS | 5715 | Gear ratios can be used on lathe machines. In order to allow for constant surface speed while changing gears, the gear ratio is used. This global variable stores the value of the gear ratio to be used to calculate CSS | | ||
| GVAR_MODE_SINGLE_BLOCK | 5720 | Writing " | | GVAR_MODE_SINGLE_BLOCK | 5720 | Writing " | ||
- | | GVAR_POSITION_LOG_DATA | 5730 | If Logging is stopped, writing to this register does not have an effect. If the Logging is started, writing any value to this register will add current position to the Log data array. Beside of storing into the Log Array, the Log position is stored into Global Variables | + | | GVAR_POSITION_LOG_DATA | 5730 | Height map logging. |
- | | GVAR_POSITION_LOG_CMD | 5740 | Begin/Eng Height Map Log. Writing “1” to this register will start logging. Writing “0” to this register will stop logging. All the collected | + | | GVAR_POSITION_LOG_CMD | 5740 | Begin/Eng Height Map Log. Writing “1” to this register will start logging. Writing “0” to this register will stop logging |
| GVAR_POSITION_STORED | 5900 | This register stores the flag (0 or 1) for whether the current position has been saved in flash memory. This is done every few seconds after the movement has been stopped in order to conserve the number of write operations onto flash memory. The variable flag visualization can be seen in the Diagnostics window in the bottom-right corner next to the stop button (grey for not saved - 0, red for saved - 1) | | | GVAR_POSITION_STORED | 5900 | This register stores the flag (0 or 1) for whether the current position has been saved in flash memory. This is done every few seconds after the movement has been stopped in order to conserve the number of write operations onto flash memory. The variable flag visualization can be seen in the Diagnostics window in the bottom-right corner next to the stop button (grey for not saved - 0, red for saved - 1) | | ||
| GVAR_CURRENT_MOTION_CODE | 6060 | Specifies the current motion code (useful to wait until motion has finished, for example). | | | GVAR_CURRENT_MOTION_CODE | 6060 | Specifies the current motion code (useful to wait until motion has finished, for example). | | ||
Line 445: | Line 445: | ||
| GVAR_ENCODER_Z_EVENT | 9070 | Stores info on the wheel of the encoder passing the zero mark (the zero position)| | | GVAR_ENCODER_Z_EVENT | 9070 | Stores info on the wheel of the encoder passing the zero mark (the zero position)| | ||
| GVAR_POPUP_MESSAGE | 9100 | +16. Allows to assign popup messages with either 0 for OFF or 1 for ON (for example, 9103,1 to bring up message #3). Popup messages examples can be seen [[plc: | | GVAR_POPUP_MESSAGE | 9100 | +16. Allows to assign popup messages with either 0 for OFF or 1 for ON (for example, 9103,1 to bring up message #3). Popup messages examples can be seen [[plc: | ||
+ | | | 9200 | +16. Reserved to display the encoder position on an infinite scale (no value turnover on every full encoder turn, instead the value will keep climbing indefinitely into the positives/ | ||
+ | | | 9216 | +16. Reserved to display the encoder position on an infinite scale WITH the current encoder dimension (to indicate the current encoder position) | | ||
| GVAR_SERVO_PID_ON | 60000 | Denotes that the servo PID is ON | | | GVAR_SERVO_PID_ON | 60000 | Denotes that the servo PID is ON | | ||
| GVAR_SERVO_PID_OFF | 60001 | Denotes that the servo PID is OFF | | | GVAR_SERVO_PID_OFF | 60001 | Denotes that the servo PID is OFF | |
mycnc/global_variables.txt · Last modified: 2024/05/13 15:45 by ivan