User Tools

Site Tools


mycnc:global_variables

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 [2019/09/19 15:10] ivanmycnc:global_variables [2019/10/25 08:48] ivan
Line 1: Line 1:
 ^ Variable Name ^ Variable Address ^ Comments ^ ^ Variable Name ^ Variable Address ^ Comments ^
-|GVAR_MODAL_G0_G3 |4001 | Modal state of G00, G01, G02, G03, G33, G34 +|GVAR_MODAL_G0_G3 |4001 | Modal state of G00, G01, G02, G03 - motion 
-|GVAR_MODAL_G96_G97 | 4002 | Modal state of G96G97 +|GVAR_MODAL2_G17_G19 | 4002 | Modal state of G17, G18G19 - plane selection 
-|GVAR_MODAL_G68_G69 4004 | Modal state of G68G69 +|GVAR_MODAL3_G90_G91 4003 | Modal state of G90G91 - distance mode 
-|GVAR_MODAL_G98_G99 | 4005 | Modal state of G98G99 +|GVAR_MODAL5_G93_G94 | 4005 | Modal state of G93G94 - spindle speed mode 
-|GVAR_MODAL_G20_G21 | 4006 | Modal state of G20, G21 | +|GVAR_MODAL_G20_G21 | 4006 | Modal state of G20, G21 - units 
-|GVAR_MODAL_G40_G42 | 4007 | Modal state of G40, G41, G42 | +|GVAR_MODAL_G40_G42 | 4007 | Modal state of G40, G41, G42 - cutter diameter 
-|GVAR_MODAL_G25_G26 | 4008 | Modal state of G25G26 |+|GVAR_MODAL8_G43_G49 | 4008 | Modal state of G4349 - tool length offset |
 |GVAR_MODAL_G22_G23 | 4009 | Modal state of G22, G23 | |GVAR_MODAL_G22_G23 | 4009 | Modal state of G22, G23 |
-|GVAR_MODAL_G80_G89 | 4010 | Modal state of G80 G89 +|GVAR_MODAL10_G98_G99 | 4010 | Modal state of G98, G99 return mode in canned cycles 
-|GVAR_MODAL_G66_G67 | 4012 | Modal state of G66G67 |+|GVAR_MODAL12_G54_G59 | 4012 | Modal state of G54G55, G56, G57, G58, G59, G59.1, G59.2, G59.3 - coordinate system selection |
 |GVAR_MODAL_G54_G59 | 4014 | Modal state of G54-G59 | |GVAR_MODAL_G54_G59 | 4014 | Modal state of G54-G59 |
 |GVAR_MODAL_G17_G19 | 4016 | Modal state of G17-G19 | |GVAR_MODAL_G17_G19 | 4016 | Modal state of G17-G19 |
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 "1" into this register will make the program run in single blocks (single lines). In this mode, the program runs through a single next line of code before stopping again. Useful for safety evaluations when running through the entire program can be dangerous. | | GVAR_MODE_SINGLE_BLOCK | 5720 | Writing "1" into this register will make the program run in single blocks (single lines). In this mode, the program runs through a single next line of code before stopping again. Useful for safety evaluations when running through the entire program can be dangerous. |
-| 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 5731-5736 as well (5731 - X, 5732 - Y, 5733 - Z, 5734 - A, 5735 - B, 5736 - C) |  +| GVAR_POSITION_LOG_DATA | 5730 | Height map logging. 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 5731-5736 as well (5731 - X, 5732 - Y, 5733 - Z, 5734 - A, 5735 - B, 5736 - C) |  
-| 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 data will be stored in a log file with a given filename and time stamp |+| 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 and save the data which will be stored in a log file with a given filename and time stamp. Writing "100" into this global variable will load the data from the log file. |
 | 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:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm|here]].| | 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:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm|here]].|
 +|    | 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/negatives depending on where the encoder handle is spun) |
 +|    | 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/03/20 12:01 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki