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
mycnc:global_variables [2019/12/30 11:55] ivanmycnc:global_variables [2024/03/20 12:01] (current) ivan
Line 1: Line 1:
 +======Global Variables======
 +
 +^ Related articles ^ 
 +| [[plc:plc|PLC]] |
 +| [[mycnc:global_variables_description|Global Variables Description]] |
 +
 +-----
 +
 ^ Variable Name ^ Variable Address ^ Comments ^ ^ Variable Name ^ Variable Address ^ Comments ^
 +| GVARIABLE_USER_SPACE_START | 3500 | Custom user variables (also can use global variables below #2000). Read more in [[mycnc:global_variables_description|Global Variables Description]] |
 +| GVARIABLE_USER_SPACE_END | 3900 |  |
 |GVAR_MODAL_G0_G3 |4001 | Modal state of G00, G01, G02, G03 - motion | |GVAR_MODAL_G0_G3 |4001 | Modal state of G00, G01, G02, G03 - motion |
 |GVAR_MODAL2_G17_G19 | 4002 | Modal state of G17, G18, G19 - plane selection | |GVAR_MODAL2_G17_G19 | 4002 | Modal state of G17, G18, G19 - plane selection |
Line 22: Line 32:
 |GVAR_G38_PROBE_RESULT | 5070 | Stores the result of the probe coming into contact with a surface | |GVAR_G38_PROBE_RESULT | 5070 | Stores the result of the probe coming into contact with a surface |
 ^    ^  ^ ^    ^  ^
-|GVAR_OFFSET_G28 | 5161 | Machine coordinates for G28 Home Position \\ 5161 - G28 X Position \\ 5162 - G28 Y Position \\ 5163 - G28 Z Position \\ 5164 - G28 A Position \\ 5165 - G28 B Position \\ 5166 - G28 C Position \\ 5167 - G28 U Position \\ 5168 - G28 V Position \\ 5169 - G28 W Position |+| GVAR_SPEED_CURRENT_XYZ | 5110 | Current XYZ speed |  
 +| GVAR_SPEED_CURRENT_ABC | 5111 | Current ABC speed | 
 +| GVAR_OFFSET_G28 | 5161 | Machine coordinates for G28 Home Position \\ 5161 - G28 X Position \\ 5162 - G28 Y Position \\ 5163 - G28 Z Position \\ 5164 - G28 A Position \\ 5165 - G28 B Position \\ 5166 - G28 C Position \\ 5167 - G28 U Position \\ 5168 - G28 V Position \\ 5169 - G28 W Position |
 |GVAR_OFFSET_G30 | 5181 | Machine coordinates for G30 Home Position \\ 5181 - G30 X Position \\ 5182 - G30 Y Position \\ 5183 - G30 Z Position \\ 5184 - G30 A Position \\ 5185 - G30 B Position \\ 5186 - G30 C Position \\ 5187 - G30 U Position \\ 5188 - G30 V Position \\ 5189 - G30 W Position | |GVAR_OFFSET_G30 | 5181 | Machine coordinates for G30 Home Position \\ 5181 - G30 X Position \\ 5182 - G30 Y Position \\ 5183 - G30 Z Position \\ 5184 - G30 A Position \\ 5185 - G30 B Position \\ 5186 - G30 C Position \\ 5187 - G30 U Position \\ 5188 - G30 V Position \\ 5189 - G30 W Position |
 |<del>GVAR_OFFSET_G92</del> | 5211 | |<del>GVAR_OFFSET_G92</del> | 5211 |
Line 69: Line 81:
 | GVAR_JOG_STEP_FLOAT | 5523 | Obsolete global variable to set a float value for the jog step using the on-screen buttons. Has since been replaced, only used on old profile versions. | | GVAR_JOG_STEP_FLOAT | 5523 | Obsolete global variable to set a float value for the jog step using the on-screen buttons. Has since been replaced, only used on old profile versions. |
 | GVAR_SPINDLE_SPEED | 5524 | Register represents given Spindle Speed. It's equal to "Default Spindle Speed" by default. If G-code program "S"-code with new spindle speed settings executed, the value will be changed accordingly. | | GVAR_SPINDLE_SPEED | 5524 | Register represents given Spindle Speed. It's equal to "Default Spindle Speed" by default. If G-code program "S"-code with new spindle speed settings executed, the value will be changed accordingly. |
-| [[mycnc:global_variables_description#5525|GVAR_SOFT_LIMITS_IGNORE]] | [[mycnc:global_variables_description#5525|5525]] | Writing "1" to this register will turn off Software Limits control temporarily. |+| [[mycnc:global_variables_description#5525|GVAR_SOFT_LIMITS_IGNORE]] | [[mycnc:global_variables_description#5525|5525]] | Writing "1" to this register will turn off Software Limits control temporarily. Writing a value larger than 2 will initialize a timer (timer will begin after the macro is complete). |
 | GVAR_M30_SCHEDULED_REWIND | 5526 | The scheduled rewind allows the user to move back to the beginning of the program after the program run has completed. After moving back to the beginning, this variable is set to 0, so the M30 command needs to be added to the file every time the rewind is required (not on by default) | | GVAR_M30_SCHEDULED_REWIND | 5526 | The scheduled rewind allows the user to move back to the beginning of the program after the program run has completed. After moving back to the beginning, this variable is set to 0, so the M30 command needs to be added to the file every time the rewind is required (not on by default) |
 | GVAR_SHOW_NCMESSAGE | 5527 | Reserved for future development to be able to display a line of text from the G-code file | | GVAR_SHOW_NCMESSAGE | 5527 | Reserved for future development to be able to display a line of text from the G-code file |
Line 75: Line 87:
 | GVAR_SHOCK_SENSOR_IGNORE | 5529 | Ignores shock sensor data (useful when utilizing the sensors for procedures other than shock information gathering) | | GVAR_SHOCK_SENSOR_IGNORE | 5529 | Ignores shock sensor data (useful when utilizing the sensors for procedures other than shock information gathering) |
 | GVAR_STEP_PER_UNIT | 5530 | (+6) Specifies the steps per unit value |  | GVAR_STEP_PER_UNIT | 5530 | (+6) Specifies the steps per unit value | 
 +| GVAR_SET_PLC_MOVE_VERSION | 5539 | A new version of g0moveA, calculated entirely inside the controller, saving the pause time that would otherwise be present for the command to be processed software-side |
 | <del>GVAR_PARKING1</del> | 5541 | (+8) Registers are obsolete since another address space is reserved to ge up to 20 parking coordinates |  | <del>GVAR_PARKING1</del> | 5541 | (+8) Registers are obsolete since another address space is reserved to ge up to 20 parking coordinates | 
 | <del>GVAR_PARKING2</del> | 5551 | (+8) Registers are obsolete since another address space is reserved to ge up to 20 parking coordinates  | | <del>GVAR_PARKING2</del> | 5551 | (+8) Registers are obsolete since another address space is reserved to ge up to 20 parking coordinates  |
Line 109: Line 122:
 | 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 | 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_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 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_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. Example: [[mycnc:height_mapping|3D Height Mapping]] |
 | 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 126: Line 139:
 | GVAR_TOOLCHANGER_POSITION | 6101 | Specifies the tool changer position on the machine (+8 axes) | | GVAR_TOOLCHANGER_POSITION | 6101 | Specifies the tool changer position on the machine (+8 axes) |
 | GVAR_TOOLCHANGER_NEXT_POSITION | 6111 | +6 | | GVAR_TOOLCHANGER_NEXT_POSITION | 6111 | +6 |
 +| GVAR_TOOLPOT_01_TIME | 6120 | Current work time, in s, for tool pot 1 (+10 for every subsequent pot) | 
 | GVAR_TOOLPOT_1_POSITION | 6121 | +6. Registers 6121-6271 specify the positions for the tool pots | | GVAR_TOOLPOT_1_POSITION | 6121 | +6. Registers 6121-6271 specify the positions for the tool pots |
 | GVAR_TOOLPOT_2_POSITION | 6131 | +6 | | GVAR_TOOLPOT_2_POSITION | 6131 | +6 |
Line 188: Line 202:
 | GVAR_PLASMA_PROCESS_CURRENT | 7156 | The value for plasma current is stored in this register | | GVAR_PLASMA_PROCESS_CURRENT | 7156 | The value for plasma current is stored in this register |
 | GVAR_ALIGN_CHECK | 7170 | Reserved for future development regarding the gantry alignment procedure | | GVAR_ALIGN_CHECK | 7170 | Reserved for future development regarding the gantry alignment procedure |
-| GVAR_HW_INPUTS0 | 7180 | Stores the input value in 32 bit increments. In this way, Input0 is 0-31, Input1 is 32-63, etc |+| GVAR_HW_INPUTS0 | 7180 | Stores the input value in 32 bit increments. In this way, Input0 is 31-0, Input1 is 63-32, etc. More here: [[mycnc:global_variables:7180-7187|Global variables for hardware I/O (#7180-7187)]] |
 | GVAR_HW_INPUTS1 | 7181 |  | | GVAR_HW_INPUTS1 | 7181 |  |
 | GVAR_HW_INPUTS2 | 7182 | | | GVAR_HW_INPUTS2 | 7182 | |
 | GVAR_HW_INPUTS3 | 7183 | | | GVAR_HW_INPUTS3 | 7183 | |
-| GVAR_HW_OUTPUTS0 | 7184 | Stores the output value (can be both read and written to) |+| GVAR_HW_OUTPUTS0 | 7184 | Stores the output value (can be both read and written to) similar to input values 7180-7183. more here: [[mycnc:global_variables:7180-7187|Global variables for hardware I/O (#7180-7187)]] |
 | GVAR_HW_OUTPUTS1 | 7185 | Stores the output value (can be both read and written to)  | | GVAR_HW_OUTPUTS1 | 7185 | Stores the output value (can be both read and written to)  |
 | GVAR_HW_OUTPUTS2 | 7186 | Stores the output value (can be both read and written to)  | | GVAR_HW_OUTPUTS2 | 7186 | Stores the output value (can be both read and written to)  |
Line 257: Line 271:
 | GVAR_JOG_STEP_1_0 | 7385 | the value is "1" if Current Jog Step Size is "1.0", \\ otherwize is "0" (integer) | | GVAR_JOG_STEP_1_0 | 7385 | the value is "1" if Current Jog Step Size is "1.0", \\ otherwize is "0" (integer) |
 | GVAR_JOG_STEP_10 | 7386 | the value is "1" if Current Jog Step Size is "10", \\ otherwize is "0" (integer) | | GVAR_JOG_STEP_10 | 7386 | the value is "1" if Current Jog Step Size is "10", \\ otherwize is "0" (integer) |
 +| GVAR_JOG_SHIFT_STATE | 7388 | Writing "1" to simulate a Shift key press in order to change the overspeed (using the overspeed value from Panel/Pendant > Hotkeys > Jog Overspeed) |
 +| GVAR_JOG_CTRL_STATE | 7389 | Writing "1" to simulate a Control key press in order to change the overspeed |
 | GVAR_SYSTEM_CONFIGURED | 7390 | Specifies that homing has been performed for all axes and that the system is configured and ready to use | | GVAR_SYSTEM_CONFIGURED | 7390 | Specifies that homing has been performed for all axes and that the system is configured and ready to use |
 | GVAR_HOMING_X_RESET | 7391 | The register value is used as a flag that Homing X needed. \\ The value is automatically set to "1" is \\ - CNC control software just loaded \\ - Emergency button pressed \\ - X Servo Driver not ready event received \\ \\ The register can be used for either [[plc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm|Mandatory Homing Handler]] procedure or just to display information about possible X position lost    | | GVAR_HOMING_X_RESET | 7391 | The register value is used as a flag that Homing X needed. \\ The value is automatically set to "1" is \\ - CNC control software just loaded \\ - Emergency button pressed \\ - X Servo Driver not ready event received \\ \\ The register can be used for either [[plc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm|Mandatory Homing Handler]] procedure or just to display information about possible X position lost    |
Line 305: Line 321:
 | GVAR_SHOW2D_AXISA_RADIUS | 7540 | Used on certain tube-cutting machine setups to unfold the a-axis for easier visualization. The radius of the tube is set in this register. This should only be used if the user does not want the 4-axis visualization | | GVAR_SHOW2D_AXISA_RADIUS | 7540 | Used on certain tube-cutting machine setups to unfold the a-axis for easier visualization. The radius of the tube is set in this register. This should only be used if the user does not want the 4-axis visualization |
 | GVAR_ASSIGN_TOOL_OFFSET_X | 7515 | This register specifies the x-axis tool offset | | GVAR_ASSIGN_TOOL_OFFSET_X | 7515 | This register specifies the x-axis tool offset |
-| GVAR_ASSIGN_TOOL_OFFSET_Z | 7517 | This register specifies the z-axis tool offset|+| GVAR_ASSIGN_TOOL_OFFSET_Z | [[mycnc:global_variables:5023#tool_offset_7517|7517]] | This register specifies the z-axis tool offset|
 | GVAR_LATHE_TOOL_LENGTH_CORRECTION_X | 7511 | Specifies the x-axis tool length correction for lathes | | GVAR_LATHE_TOOL_LENGTH_CORRECTION_X | 7511 | Specifies the x-axis tool length correction for lathes |
 | GVAR_LATHE_TOOL_LENGTH_CORRECTION_Z | 7513 | Specifies the y-axis tool length correction for lathes | | GVAR_LATHE_TOOL_LENGTH_CORRECTION_Z | 7513 | Specifies the y-axis tool length correction for lathes |
Line 354: Line 370:
 | GVAR_CUTPROCESS_TIME_SOFT_OXY_START | 7604 | Cutchart - time value for the oxyfuel cutting start | | GVAR_CUTPROCESS_TIME_SOFT_OXY_START | 7604 | Cutchart - time value for the oxyfuel cutting start |
 | GVAR_CUTPROCESS_CUTSPEED | 7605 | Specifies the cutting speed | | GVAR_CUTPROCESS_CUTSPEED | 7605 | Specifies the cutting speed |
 +| GVAR_CUTPROCESS_CUTSPEED_LOW | 7606 | Low cutting speed for arcs/holes |
 +| GVAR_CUTPROCESS_FLAG_SLOWSPEED | 7607 |  | 
 +| GVAR_CUTPROCESS_MARKSPEED | 7608 |  | 
 +| GVAR_CUTPROCESS_CUTSPEED_LOW_P  | 7609 | Low cutting speed (arc cutting) as % of regular speed on arcs/holes |
 ^ Oxy Fuel cutting, Automatic Gas Console ^^^ ^ Oxy Fuel cutting, Automatic Gas Console ^^^
 | GVAR_CUTPROCESS_AGC_IGNITION_FUEL | 7610 | Automatic gas console ignition fuel variable | | GVAR_CUTPROCESS_AGC_IGNITION_FUEL | 7610 | Automatic gas console ignition fuel variable |
Line 412: Line 432:
 | GVAR_CUTPROCESS_TECHNOLOGY | 7686 | Denotes the technology for the cutting process.  | | GVAR_CUTPROCESS_TECHNOLOGY | 7686 | Denotes the technology for the cutting process.  |
 | GVAR_CUTPROCESS_REVISION | 7687 | The cutchart version used (reserved for Hypertherm machines) | | GVAR_CUTPROCESS_REVISION | 7687 | The cutchart version used (reserved for Hypertherm machines) |
 +| GVAR_CUTCHART_FEEDRATE_PRIORITY | 7696 | Indicates feedrate priority between cutcharts and F-codes in the program. More info here: [[mycnc:speed_priority|Speed Priority]] |
 +| GVAR_BUTTON_START_COUNTER | 8010 |  | 
 +| GVAR_BUTTON_STOP_COUNTER | 8011 |  | 
 +| GVAR_BUTTON_SIMULATE_STATE | 8012 |  | 
 +| GVAR_JOB_FILENAME | 8020 |  | 
 +| SVAR_JOB_FILENAME | 8020 |  | 
 +| GVAR_CURRENT_TOOL_PROGRESS | 8025 |  | 
 +| GVAR_HCONTROL_PLUS | 8030 | Height Control for AxisPlus | 
 +| GVAR_HCONTROL_PLUS_CHANNEL | 8031 |  | 
 +| GVAR_HCONTROL_PLUS_ACCEL | 8032 |  | 
 +| GVAR_HCONTROL_PLUS_KP_MINUS | 8033 | PID settings | 
 +| GVAR_HCONTROL_PLUS_MAXCTL | 8034 |  | 
 +| GVAR_HCONTROL_PLUS_KP_PLUS | 8035 |  | 
 +| GVAR_HCONTROL_PLUS_KI_MINUS | 8036 |  | 
 +| GVAR_HCONTROL_PLUS_KI_PLUS | 8037 |  | 
 +| GVAR_HCONTROL_PLUS_CTL | 8039 |  | 
 +| GVAR_HCONTROL_PLUS_REF | 8040 |  | 
 +| GVAR_HCONTROL_PLUS_2REF | 8041 |  | 
 +| GVAR_PLC_IGNITION_HEIGHT | 8042 | PLC Ignition Height | 
 +| GVAR_PLC_FHS_OFFSET | 8043 | PLC Floating Head Switch Offset |
 +| GVAR_PLC_IHC_SPEED | 8044 |   |
 +| GVAR_PLC_IHC_SLOW_SPEED_PERCENT | 8045 | Sensing speed low |
 +| GVAR_PLC_IHC_SLOW_DISTANCE | 8046 | Distance sensing speed low |
 +| GVAR_PLC_PIERCE_DELAY | 8047 | PLC delay instead of OR after "Arc ON" | 
 +| GVAR_PLC_IHC_STAGE | 8048 | IHC Stage | 
 +| GVAR_AXPLUS_JOGSPEED| 8060 |  | 
 ^ Timers ^^^ ^ Timers ^^^
 | GVAR_TIMER0_ENABLED | 8100 | Writing "0" to this register will disable Timer0, \\ writing "1" will enable Timer0 | | GVAR_TIMER0_ENABLED | 8100 | Writing "0" to this register will disable Timer0, \\ writing "1" will enable Timer0 |
Line 429: Line 475:
 | GVAR_TIMER3_PULSE | 8114 | A value written to this register specifies the Timer 3 Pulse width in milliseconds | | GVAR_TIMER3_PULSE | 8114 | A value written to this register specifies the Timer 3 Pulse width in milliseconds |
 | GVAR_TIMER3_PAUSE | 8115 | A value written to this register specifies the Timer 3 Pause in milliseconds | | GVAR_TIMER3_PAUSE | 8115 | A value written to this register specifies the Timer 3 Pause in milliseconds |
 +| | 8119 | A value for setting up the PWM frequency to control modulation | 
 | GVAR_GENERATOR_FRQ_RATIO | 8132 | Ratio for the step-dir coolant control to convert the step motor values into the software units. Set experimentally. | | GVAR_GENERATOR_FRQ_RATIO | 8132 | Ratio for the step-dir coolant control to convert the step motor values into the software units. Set experimentally. |
 | GVAR_GENERATOR_FRQ | 8133 | Rate, in ml/hour, for the step-dir coolant control | | GVAR_GENERATOR_FRQ | 8133 | Rate, in ml/hour, for the step-dir coolant control |
Line 438: Line 485:
 | GVAR_CURRENT_XWORK_POSITION | 8231 | (+8) Stores the current work position for the 8 axes | | GVAR_CURRENT_XWORK_POSITION | 8231 | (+8) Stores the current work position for the 8 axes |
 | GVAR_CURRENT_XMACHINE_CORRECTION | 8241 | (+8) Stores the current machine correction for the 8 axes| | GVAR_CURRENT_XMACHINE_CORRECTION | 8241 | (+8) Stores the current machine correction for the 8 axes|
 +^ PLC Move (Positioning/Jog) ^^^
 +| GVAR_G0PLUS_SPEED | 8330 | Set motion speed for AxisPlus PLC move commands in pulses/sec  |
 +| GVAR_G0PLUS_TIME | 8331 | Set motion acceleration time for AxisPlus PLC move commands in milliseconds (0.001 sec)  |
 +| GVAR_G0PLUS_STATE | 8332 | If reading this register returns a zero, this indicates that the AxisPlus is not active/moving. state_plus_idle=0, state_plus_g0=1, state_plus_pendant=2, state_plus_jog=3 |
 +| GVAR_AXPLUS_JOG | 8340 | [[mycnc:axis_plus|Independent Axis ("AxisPlus")]] Jog command. |
 +| GVAR_AXPLUS_MSPEED | 8341 | Set Jog speed for AxisPlus PLC move commands  |
 +| GVAR_AXPLUS_MACCEL | 8342 | Set Jog acceleration for AxisPlus PLC move commands  |
 +^ Laser Cutting ^^^
 +| GVAR_LASER_CUT_SPEED | 8411 |
 +| GVAR_LASER_CUT_DYN_POWER1 | 8412 |
 +| GVAR_LASER_CUT_DYN_POWER2 | 8413 |
 +| GVAR_LASER_CUT_DYN_FREQ1 | 8414 |
 +| GVAR_LASER_CUT_DYN_FREQ2 | 8415 |
 +| GVAR_LASER_CUT_ON_DELAY | 8416 |
 +| GVAR_LASER_CUT_OFF_DELAY | 8417 |
 +| GVAR_LASER_CUT_SPEED_Y | 8418 |
 +| GVAR_LASER_CUT_HEIGHT | 8421 |
 +| GVAR_LASER_CUT_POWER | 8422 |
 +| GVAR_LASER_CUT_FREQ | 8423 |
 +| GVAR_LASER_CUT_DUTY | 8424 |
 +| GVAR_LASER_CUT_GAS_TYPE | 8425 |
 +| GVAR_LASER_CUT_GAS_PRESSURE | 8426 |
 +| GVAR_LASER_CUT_HEIGHT_Y | 8427 |
 +| GVAR_LASER_PIERCE1_HEIGHT | 8431 |
 +| GVAR_LASER_PIERCE1_POWER | 8432 |
 +| GVAR_LASER_PIERCE1_FREQ | 8433 |
 +| GVAR_LASER_PIERCE1_DUTY | 8434 |
 +| GVAR_LASER_PIERCE1_GAS_TYPE | 8435 |
 +| GVAR_LASER_PIERCE1_GAS_PRESSURE | 8436 |
 +| GVAR_LASER_PIERCE1_TIME | 8437 |
 +| GVAR_LASER_PIERCE1_SOFT_PIERCE | 8438 |
 +| GVAR_LASER_PIERCE2_HEIGHT | 8441 |
 +| GVAR_LASER_PIERCE2_POWER | 8442 |
 +| GVAR_LASER_PIERCE2_FREQ | 8443 |
 +| GVAR_LASER_PIERCE2_DUTY | 8444 |
 +| GVAR_LASER_PIERCE2_GAS_TYPE | 8445 |
 +| GVAR_LASER_PIERCE2_GAS_PRESSURE | 8446 |
 +| GVAR_LASER_PIERCE2_TIME | 8447 |
 +| GVAR_LASER_PIERCE2_SOFT_PIERCE | 8448 |
 +| GVAR_LASER_PIERCE3_HEIGHT | 8451 |
 +| GVAR_LASER_PIERCE3_POWER | 8452 |
 +| GVAR_LASER_PIERCE3_FREQ | 8453 |
 +| GVAR_LASER_PIERCE3_DUTY | 8454 |
 +| GVAR_LASER_PIERCE3_GAS_TYPE | 8455 |
 +| GVAR_LASER_PIERCE3_GAS_PRESSURE | 8456 |
 +| GVAR_LASER_PIERCE3_TIME | 8457 |
 +| GVAR_LASER_PIERCE3_SOFT_PIERCE | 8458 |
 +| GVAR_LASER_PRESET_SELECT  | 8470 | Load a set of parameters for the corresponding preset number |
 +| GVAR_LASER_PRESET_SAVE | 8471 | Save the current parameters as a cutting preset for the specified number  |
 +| GVAR_LASER_PRESET_TAB | 8472 |
 +| GVAR_LASER_PRESET_RAMP | 8473 |
 +| GVAR_LASER_CURRENT_PWM | 8490 |
 +| GVAR_FOCUS_STEP_PER_UNIT | 8491 | Step per unit value for the independent Focus axis |
 +| GVAR_FOCUS_G0_SPEED | 8492 | Focus axis - G0 speed | 
 +| GVAR_FOCUS_G0_TIME | 8493 | [[mycnc:axis_plus|AxisPlus]] | 
 +| GVAR_FOCUS_MSPEED | 8494 |  | 
 +| GVAR_FOCUS_MTIME | 8495 |  |
 +| GVAR_FOCUS_SOFTMINUS | 8496 |  |
 +| GVAR_FOCUS_SOFTPLUS | 8497 |  |
 +| GVAR_FOCUS_JOG | 8498 |  |
 +| GVAR_FOCUS_G0_STATE | 8499 |  |
 +| GVAR_FOCUS_SET_ZERO | 8502 | Set zero for the focus axis |
 +| GVAR_FOCUS_SET_MAX_POS | 8503 | Set maximum position for the focus axis |
 +| GVAR_FOCUS_SET_MIN_POS | 8504 | Set minimum position for the focus axis | 
 +| GVAR_FOCUS_HARDLIMITS | 8505 | Set hardware limit port number for focus axis | 
 +| GVAR_AXPLUS_STEP_PER_UNIT | 8511 | [[mycnc:axis_plus|AxisPlus]] |
 +| GVAR_AXPLUS_POSITION | 8514 | [[mycnc:axis_plus|AxisPlus]] |
 +| GVAR_FOCUS_POSITION | 8515 | [[mycnc:axis_plus|AxisPlus]] |
 +| GVAR_AXPLUS_LIFT | 8516 |  |
 +| GVAR_FOCUS_LIFT | 8517 |  |
 +| GVAR_AXPLUS_STOP | 8518 |  |
 +| GVAR_FOCUS_STOP | 8519 |  |
 +| GVAR_AXPLUS_SET_ZERO | 8522 | Writing 999999 to this register will reset the soft limits. Otherwise this allows to set a coordinate to a given value (in units of 1000 >1.000). Article: [[mycnc:axis_plus|AxisPlus]]. For common applications, see also: [[mycnc:laser_cutting|Laser Cutting]] |
 +| GVAR_AXPLUS_SET_MAX_POS | 8523 | If the value of this register is equal to zero, then current position is taken as the maximum position for the axis |
 +| GVAR_AXPLUS_SET_MIN_POS | 8524 | If the value of this register is equal to zero, then current position is taken as the minimum position for the axis |
 +| GVAR_AXPLUS_HARDLIMITS | 8525 |  |
 +| GVAR_AXPLUS_MPOSITION | 8526 |
 +| GVAR_FOCUS_MPOSITION | 8527 |
 +| GVAR_GET_PIERCE1_TIME | 8541 |
 +| GVAR_GET_PIERCE2_TIME | 8542 |
 +| GVAR_GET_PIERCE3_TIME | 8543 |
 +| GVAR_GET_LASER_CUTHEIGHT | 8548 |
 +| GVAR_GET_AXPLUS_HCREF | 8549 |
 +| GVAR_LASER_BEAM_CENTER_TIME | 8550 |
 +| GVAR_LASER_RESET_FLAG | 8558 | Clear the specified bits in the flags register |
 +| GVAR_LASER_SET_FLAG | 8559 |
 +| GVAR_LASER_PULSE | 8560 |
 +| GVAR_LASER_HC_SENSOR | 8565 |
 +| GVAR_LASER_HC_SENS_MIN | 8566 |
 +| GVAR_LASER_HC_SENS_MAX | 8567 |
 +| GVAR_G0PLC_SPEED | 8630 | Set motion speed for PLC move commands in pulses/sec  |
 +| GVAR_G0PLC_TIME | 8631 | Set motion acceleration time for PLC move commands in milliseconds (0.001 sec)  |
 +| GVAR_G0PLC_SPEED_UNITS | 8632 | Set motion speed for PLC move commands in units/min  |
 +| GVAR_PLC_JOGSPEED_UNITS | 8634 | Set motion speed for jog in units/min |
 +| GVAR_PLC_JOG | 8635 |   
 ^ Encoders ^^^ ^ Encoders ^^^
 | GVAR_ET5_ENCODER | 9000  | (+16) Registers represent Encoder values. Writing to this registers does not affect anything. Selected channel Current Encoder value will be returned when reading these registers. \\ Reading these registers from the controller Hardware PLC will return actual Encoder value. \\ Encoder values in the software are updated about every 128ms. This delay should be counted when using Encoder values from the Software PLC. \\ 9000 - Encoder #0 value \\ 9001 - Encoder #1 value \\ 9002 - Encoder #2 value \\ 9003 - Encoder #3 value \\ 9004 - Encoder #4 value \\ 9005 - Encoder #5 value \\ 9006 - Encoder #6 value \\ 9007 - Encoder #7 value | | GVAR_ET5_ENCODER | 9000  | (+16) Registers represent Encoder values. Writing to this registers does not affect anything. Selected channel Current Encoder value will be returned when reading these registers. \\ Reading these registers from the controller Hardware PLC will return actual Encoder value. \\ Encoder values in the software are updated about every 128ms. This delay should be counted when using Encoder values from the Software PLC. \\ 9000 - Encoder #0 value \\ 9001 - Encoder #1 value \\ 9002 - Encoder #2 value \\ 9003 - Encoder #3 value \\ 9004 - Encoder #4 value \\ 9005 - Encoder #5 value \\ 9006 - Encoder #6 value \\ 9007 - Encoder #7 value |
Line 447: Line 589:
 |    | 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) | |    | 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) | |    | 9216 | +16. Reserved to display the encoder position on an infinite scale WITH the current encoder dimension (to indicate the current encoder position) |
 +| GVAR_SENSORS_ERROR | 9299 | Indicates whether any alarm has been triggered (by writing 0 or 1 into the global variable) |
 +| GVAR_SENSOR0_ERROR | 9300 | +63. Indicates whether a particular alarm sensor has been triggered. The following alarm numbers are currently available: \\ XPlus - 0 \\ XMinus - 1 \\ YPlus - 2 \\ YMinus - 3 \\ ZPlus - 4 \\ ZMinus - 5 \\ Shock - 6 \\ XNotReady - 7 \\ X2NotReady - 8 \\ YNotReady - 9 \\ ZNotReady - 10 \\ ANotReady - 11 \\ BNotReady - 12 \\ CNotReady - 13 \\ Coolant - 14  \\ Air - 15 \\ Oxygen - 16 \\ Emergency - 17 \\ Emergency2 - 18 \\ Gas - 19 \\ MyCNC_NotPresent - 20 \\ SafetySwitch - 21 \\ MotorShort - 22 \\ Spindle - 23 \\ Y2NotReady - 24 \\ APlus - 25 \\ AMinus - 26 \\ BPlus - 27 \\ BMinus - 28 \\ CPlus - 29 \\ CMinus - 30 \\ ServoAlarm - 31 \\ MyHead_NotPresent - 32 \\ ServoErrorX - 33 \\ ServoErrorY - 34 \\ ServoErrorZ - 35 \\ ServoErrorA - 36 \\ ServoErrorB - 37 \\ ServoErrorC - 38 \\ ServoErrorPlus - 39 |
 +| GVAR_SELECTED_TOOL_ID | 9630 | Experimental - Current tool ID | 
 +| GVAR_SELECTED_TOOL_NAME | 9631 | Current tool name | 
 +| GVAR_SELECTED_TOOL_MATERIAL | 9632 | Experimental |
 +| GVAR_SELECTED_TOOL_DIAMETER | 9633 | Experimental |
 +| GVAR_SELECTED_TOOL_PROGRESS | 9635 | Experimental |
 +| GVAR_SELECTED_TOOL_WORK_TIME | 9636 | Experimental - tool work time (from ATC pots config dialog) |
 +| GVAR_SELECTED_TOOL_NUMBER | 9637 | Experimental - current tool # |
 +| GVAR_SELECTED_TOOL_POT | 9638 | Experimental |
 +| GVAR_SET_MPOSITION | 9701 | +20. Writing to this global variable from PLC sets machine position for the coordinates X,Y,Z,etc. |
 +| GVAR_SET_WPOSITION | 9721 | +20. Writing to this global variable from PLC sets the work (program) position for the coordinates X,Y,Z,etc. |
 +| GVAR_ARC_SLOW_CONTROL | 9790 | Controls the enabling/disabling the slow speed functionality for arcs/holes | 
 +| GVAR_ARC_SLOW_DIAMETER | 9791 | Max diameter for the arc/hole to be used for the slow speed |
 +|  | 9795 | Independent axis - THC low speed percentage |
 +|  | 9796 | Independent axis - THC OFF arc radius |
 +|  | 9797 | Independent axis - THC max speed |
 +|  | 20000 | +100. Debug information will be displayed in the log when a value is written to one of these variables. More info here: [[mycnc:global_variables:20000-20100|Debug messages]] |
 | 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 |
Line 469: Line 629:
 | GVAR_MODBUS_READ_INPUTS | 60039 | **Read multiple coils**. This will request the address of the first coil to read and the number of coils to read. The Modbus device will respond with the number of bytes to follow and the coil input values  | | GVAR_MODBUS_READ_INPUTS | 60039 | **Read multiple coils**. This will request the address of the first coil to read and the number of coils to read. The Modbus device will respond with the number of bytes to follow and the coil input values  |
 | GVAR_MODBUS_INPUT_REGS0 | 60060 | Input register 0 (+31) | | GVAR_MODBUS_INPUT_REGS0 | 60060 | Input register 0 (+31) |
 +^ Other ^^^ 
 +| GVAR_EXT_SHOW_WIDGET | [[mycnc:global_variables_description#64200|64200]] | Show a widget by writing an ID number (specified in the XML files as id="NUMBER") into this global variable |
 +| GVAR_EXT_HIDE_WIDGET | 64201 | Hide a widget by writing an ID number (specified in the XML files as id="NUMBER") into this global variable |
 +^ Software PLC exclusive variables ^^^
 +| GVAR_EXT_REFRESH_NC | 100001 | Refresh nc program | 
 +| GVAR_EXT_PLAYER_PLAY | 100002 | Play | 
 +| GVAR_EXT_RESET_NC | 100003 | Reset nc program | 
 +| GVAR_EXT_RUN_CODE | 100010 | Run G-code (for example, gvarset(100010,55); will switch system to G55) | 
 +| GVAR_EXT_PENDANT_MOVEX | 100020 | Move X axis by specified distance | 
 +| GVAR_EXT_PENDANT_MOVEY | 100021 |  | 
 +| GVAR_EXT_PENDANT_MOVEZ | 100022 |  | 
 +| GVAR_EXT_PENDANT_MOVEA | 100023 |  | 
 +| GVAR_EXT_PENDANT_MOVEB | 100024 |  | 
 +| GVAR_EXT_PENDANT_MOVEC | 100025 |  | 
 +| GVAR_EXT_PENDANT_MOVEU | 100026 |  | 
 +| GVAR_EXT_PENDANT_MOVEV | 100027 |  | 
 +| GVAR_EXT_DIRECT_PLC | 100040 | Run a Hardware PLC from Software PLC | 
 +| GVAR_EXT_DIRECT_PLC_PARAM | 100041 | Allows to send a Param variable to the Hardware PLC |
 +| GVAR_EXT_SET_MACHINE_X | 100050 | Set machine coordinate from Software PLC | 
 +| GVAR_EXT_SET_MACHINE_Y | 100051 |  | 
 +| GVAR_EXT_SET_MACHINE_Z | 100052 |  | 
 +| GVAR_EXT_SET_MACHINE_A | 100053 |  | 
 +| GVAR_EXT_SET_MACHINE_B | 100054 |  | 
 +| GVAR_EXT_SET_MACHINE_C | 100055 |  | 
 +| GVAR_EXT_SET_MACHINE_U | 100056 |  | 
 +| GVAR_EXT_SET_MACHINE_V | 100057 |  | 
  
 [[mycnc::global_variables_description|Global Variables Description]] [[mycnc::global_variables_description|Global Variables Description]]
  
mycnc/global_variables.1577724923.txt.gz · Last modified: 2019/12/30 11:55 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki