Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend M6 remap to allow return to orig. position #2706

Open
wants to merge 3 commits into
base: 2.9
Choose a base branch
from

Commits on Oct 22, 2023

  1. Extend M6 remap to allow return to orig. position

    Made a switch in the Versa_toolsetter section that give the option to direct the return point to either:
    Option 1 (Default if no option specified): Gmoccapy default already released with QtDragon:
    Only returns to the Change_Position z height, as programmed at:
    configs > sim > gmoccapy > macros > change.ngc
    Option 2: AxisDefault
    Return to the XYZ tool change position, as programmed at:
    configs > sim > axis > remap > manual-toolchanges-with-tool-length- switch > nc_subroutines > Manual_change.ngc
    Option 3: New QtDragon option:
    Return the tip of the current changed tool to the XYZ position of the tip of the old tool, moving to Tool Change Z first, then Original XY, then down to new offset Z.
    Also moved some error checking earlier.
    Changes made to documentation:
    All changes are limited to the “Auto Tool Measurement” section. (Currently, LinuxCNC#14) except for
    1. fixing one typo,
    2 adding a [[sub:touch-plate]] tag to the Touch plate section so that the Auto Tool section can redirect readers there.
    3. Increase the Table of Contents Levels depth to 4 (default is 2)
    In the “Auto Tool Measurement” Section 14, I made the following changes:
    Created a section at the beginning called “Overview” (new 14.1)
    In this section I explain that this procedure intends to use two probes.  be done with one or two sensors. The one sensor only method requires the Tool Switch and is described as One Sensor Workflow. The two sensor method makes use of an additional spindle probe, also called a Renishaw probe.
    It directs people with repeatable tool holders to the Touch Plate section. It directs those with automatic tool changers to axamine the axis remap code rack-toolchange.
    It then splits the documentation into “Work Flow Overview” which includes most of the documentation above the QtDragon_HD screen intact. This becomes section 14.2
    In this section, I moved pre-requisites earlier (ie, instead of warning near the end to have Use Tool sensor selected, include this along with other pre-requisites under the Important heading near the top.
    In the “sequence of events” section I added the extra possibilities of this ngc code modification:
    The INI setting [RETURN_OPTION] can elicit additional behavior after the return to the [TOOL_CHANGE] Z position:
        • If INI’s [RETURN_OPTION] = 1: (or if it is undefined), no further action. This is the default behavior of the GMOCCAPY M6 remap procedure
        • If INI’s [RETURN_OPTION] = 2: Continue with a Rapid Move to the X and Y position defined in INI’s [TOOL_CHANGE] X and Y settings. This is the default behavior of the AXIS gui’s M6 remap procedure.
        • If INI’s [RETURN_OPTION] = 3: Rapid Move to the original X and Y position at the moment the tool-change started, then Rapid Move down to the now offset Z position at the moment the tool-change started. This effectively moves the tool head back to the position just prior to the tool change. This is new behavior exclusive to QtDragon as of 4th quarter 2023.
    Added another section following that one called “Workflow Example” (new section 14.2)
    Renamed the next section to be clear it only applies to the QtDragon_hd interface (was 14.1, now 14.4)
    All the following sections automatically increased in numbering.
    Added the RETURN_OPTION explanations to what is now section 14.6.3 “The Tool Sensor Section”
    Corrected “TOOLCHANGE” in section 14.6.3 to be “CHANGE_POSITION”
    VectorHasting committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    b2634c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Update per discussions

    This update makes the following changes, per comments on 2/17/2024
    1. Changes the stock remap to unconditionally return the machine to the position it was in when the remap was called. (This gets rid of a previous iteration that added a 'return_option' variable to the .ini file.)
    2. Changes to documentation to reflect this change.
    
    In full disclosure: This change will now also have the effect of largely reversing PR # 2562, because this version goes back to using G38.2. I do that because in practice G38.3 (the main change in PR 2562) does not allow the QtDragon implementation to display probing errors to the user. This this version will restore that functionality. This code does, however, retain the order of additional error-checking that was changed in PR # 2562.
    
    These changes will also hopefully pass error checking because they are based on an updated fetch of 2.9.
    VectorHasting committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    8caa075 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    391f8cd View commit details
    Browse the repository at this point in the history