GCode
>
By following the steps above, a new M code can be added. In step 1, left-click on the GCode branch with the mouse, then click the Add M-Code button in step 2 to open the "Enter new M-Code" window. In step 3, add the desired M code into this window. For example, by typing M8 and clicking the OK button in step 4, M8 is added under the GCode sub-branches.
GCode \ AlarmMCodesWhen an alarm occurs, this variable is checked, and if any M codes are recorded in this variable, those M codes are executed.
- Note that to save an M code, simply type the relevant M code and then click the Set button.
- Note that the M code must be defined under the GCode sub-branch.
- To enter multiple M codes, just separate the M codes with commas. For example, type M8,M5 and then click the Set button.
GCode \ AxesThis sub-branch is used to specify which ToolPath axes should be considered within the GCode. For example, if the ToolPath includes XYZ axes, by entering XY in this variable, only the X and Y axes are taken into account in the GCode.
- By default, the software fully matches the axes read from the GCode with those present in the ToolPath.
GCode \ ConvertFormatWhen converting DXF to GCode, you can define how many decimal places will be displayed in the GCode. For example, if you write 0.0000 in the relevant box, four decimal places will be considered for all numbers from the DXF. If the number has more than four decimals, only four will be taken into account. If fewer or none, zeros will be appended to match four decimals.
- Note that the number of zeros before the comma defines the number of decimal places. For example, writing 0.00 means two decimal places are used.
- If you use
#
for defining decimal places, it behaves differently:
- For example, ###.0 allows up to three decimals if they exist in the DXF.
- If not, the number is shown as-is without appending decimals.
GCode \ DownMCodesWhen opening a GCode and if tangent is active, this M code is used for the downward movement of the Z axis.
- Just write the M code and click Set.
- The M code must be defined under the GCode sub-branch.
- If a jack is used for the Z-axis movement, this command is used.
- For multiple M codes, separate them with commas. Example: M78,M77 then click Set.
GCode \ EmergencyMCodesIf one or more M codes are defined here, they will run during an Emergency state.
- Simply type the M code and click Set.
- Must be defined under the GCode sub-branch.
- Multiple M codes can be entered with commas. Example: M8,M5, then click Set.
GCode \ HoldMCodesIf one or more M codes are defined here, they will execute when the Hold function is triggered.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- For multiple M codes, separate with commas. Example: M78,M77, then click Set.
GCode \ HomingMCodesIf one or more M codes are defined here, they will execute when the Home function is triggered.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- For multiple M codes, separate with commas. Example: M8,M7, then click Set.
GCode \ InitializeMCodesIf one or more M codes are defined here, they will execute when the program is started.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- For multiple M codes, separate with commas. Example: M8,M7, then click Set.
GCode \ MultiFileEnabledThe MultiFileEnabled variable is defined as True or False.
If set to True, multiple files can be opened simultaneously. Once files are selected, they are opened sequentially. When one finishes, the next opens automatically. You only need to click the Run button for each.
GCode \ MultiReferenceThe MultiReference variable is also defined as True or False.
If False and no reference is defined inside the GCode, the one in the software is used. If False and a reference exists in the GCode, it overrides the software’s reference. If True, references can change within the GCode. For example, part of the code may use G54 and another part G59. The system moves to the correct reference point during execution.
GCode \ PriorityThe Priority variable is used when ShortCut (from the General branch) is True or when using the RunFromHere command to start the program from a specific line.
- If ShortCut is False, the system moves to the reference or part-zero and runs from the beginning.
- If True, the system skips directly to the first cut line and starts from there, applying the required tool/spindle/M-code state from the Priority sequence. You can prioritize the execution order of M, T, P, and S codes.
- With RunFromHere, the system considers the required tool/spindle/M-code at that line. The order is also defined in Priority.
GCode \ ResetMCodesIf defined, M codes here are executed when Reset functions are used.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- Separate multiple M codes with commas. Example: M10,M11, then click Set.
GCode \ SaveExtensionHere, you define the file extension for saving GCode.
- The list includes useful extensions. You can add or change them. Just left-click an existing one, type the new extension, then click Set.
GCode \ ShowLineNumberThis variable is True or False.
If False, line numbers will not show in the GCode viewer. If True, line numbers will be displayed.
GCode \ StopMCodesM codes defined here are executed when the Stop function is triggered.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- Separate with commas. Example: M10,M11, then click Set.
GCode \ ToolChangerMCodesM codes defined here are executed during tool change operations.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- Separate with commas. Example: M10,M11, then click Set.
GCode \ UpMCodesWhen opening GCode, and if tangent is active, this M code is used for Z-axis upward motion.
- Type the M code and click Set.
- Must be defined under the GCode sub-branch.
- Use if a jack is used for Z-axis.
- Example for multiple codes: M78,M77, then click Set.
Updated 4 days ago