Skip to content

Major post update #39

Open
JustinSGray wants to merge 24 commits intotoolpath:mainfrom
ugliecarnie:main
Open

Major post update #39
JustinSGray wants to merge 24 commits intotoolpath:mainfrom
ugliecarnie:main

Conversation

@JustinSGray
Copy link
Contributor

No description provided.

- Post properties table renamed and reordered
- G30 option added to safePositionMethod()
- Tool change position added to writeToolBlock() and machine simulation details updated to allow simulation of tool change connection moves
minor UI changes to syil_lnc_toolpath.cps
Added manual tool change logic to onSection() to support unloading the tool from the ATC umbrella and installing a second manual tool. 
  - Extra logic to shut down coolant early to maximise drip-out time
  - Extra info passed from fusion into comments to help the operator confirm the right tool, holder and stick out is being loaded into the spindle. 

Added a first pass at tool brake control  - needs testing and uses the stock syil provided macor M106

Removed unrequired variables from writeToolBlock()
…r Revision 44168

General updates
- swapped many messages and alarms to lowercase for added readability at the control
- a few minor variable number changes to allow new updates in other macros
- all G28 Z0 calls for G53 G90 G00 Z0

CALIBRATEPROBEBLOCK
- switch for spindle orientation called from ProbeConfig
- removed inch mode call as not required (block calibrate)

CALIBRATEPROBERING
- argument A removed and the expected DIAMETER of the artifact is now provided by the PROBECONFIG macro
- offset conversion moved to ProbingConfig

PROBECONFIG
- Added metric and freedom unit option pulls data from @10 used by many of the stock Syil tool change macros to assess machine settings
- added ring gauge size in this macro so only one file needs to be updated
- work offset conversion from G54.xx format and checks moved into this macro. Offsets P01-09 require a leading zero to be used to address issues around using values P10 - P99
- WCS above #137 are protected from update

CALIBRATETOOLSET, TOOLSET
- switch to swap between metric or freedom units
- minor changes to load all variables before starting prep blocks

CALIBRATEZ
-few minor layout changes

CHECKPOSITIONALTOLERANCE
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks
- user message used to inform out of tolerance error at control for faster troubleshooting. Rounding is applied to these values before an alarm is called to stop the program and force a reset

COMPZEROPOINT
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks

COMPZEROPOINT, FINDCOR
- work offsets sent to probe config for conversion and checks

PROBEBORE, PROBECIRCULARBOSS, PROBEBORE
- added a rounding option to the inspection report
- inspection report is displayed in units the machine is set to

PROBERECTANGULARBOSS
- added a rounding option to the inspection report
- the report is displayed in units the machine is set to
- The spindle reorientated back to 0 degrees after probing

PROBEINSIDECORNER, PROBEOUTSIDECORNER
- switch for spindle orientation called from ProbeConfig
- G00 call on exit to return to rapid as can not be called from post

PROBEX, PROBEY
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks
- spindle orientation added to ensure the probe is always touching the same surface and matches other cycles
- G00 call on exit to return to rapid as can not be called from post

PROBEZ
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks
- G00 call on exit to return to rapid as can not be called from post

PROBEXSLOT ,PROBEXWEB, PROBEYSLOT, PROBEYWEB
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks
- user message used to inform overside error at control for faster troubleshooting. Rounding is applied to these values before an alarm is called to stop the program and force a reset
- round applied to the inspection report

PROBEXYANGLE
- switch for spindle orientation called from ProbeConfig
- work offsets sent to probe config for conversion and checks

PROTECTEDMOVE, SAFESPIN
- switch for spindle orientation called from ProbeConfig
…est revsion of the standard LNC post (Revision: 44168)

Updated 28-3-25 :
  Enable inspection reporting check box added to probing operation post properties tab
    - when checked it will add a Q1 value to that probing arguments
  HSHP smoothing settings added to milling operation post properties tab
    - logic yet to be added to make this work
  Removed precisionLevel option that is not available to LNC6800
  Probe inside corner function updated to match rev 42831 post

Updated 21-3-25:
  probing output reworked to match the previous post version
    - initial position moves masked with protected calls for safety in writeInitialPositioning()
    - var macroCall moved to above onSection() to be available for initalPosition()
    - probeOutputWorkOffset variable and code pulled from old post and placed below subprogramEnd()
    - probing cycles updated to output required arguments for macros and match (rev. 42831)
    - probing-xy-inner-corner information pulled from FANUC Rev. 42831
    - forceXYZ() removed from most cycles to avoid a double call
    - var probeOutputWorkOffset in setProbeAngle() commented out but may still be required

Updated 17-3-25:
  added missing variables :
    - probeOutputWorkOffset - ln. 346
      ***unsure of the best location
    - probeWorkOffsetCode - function writeProbeCycle(cycle, x, y, z, P, F)
  added logic to:
    - spin on the probe at the start of any block of probing operations
    - spin off the probe at the end of any block of probing operations
    - force the closing section of an optional operation(s) to ensure any probe off, manual tool changes or tool break detection cycles are run.
    - force any tool changes or work offsets that may have been skipped at the start of the first not optional section
      *** may need to add workplanes to the above list
  Added a Added a post properties option for spinning the probe on/off and selecting the corresponding M codes.
  Removed "Attention- Property 'Safe Retracts' is set to 'Clearance Height" warning.

Updated 17-3-25:
  updated from LNC "Syntec" rev 44145 to 44168 (latest) standard post and headder updated

Updated 16-3-25:
  Added clearance height flag for less Z retraction when working on the 4th
    full Z retract issued before:
        any automatic tool changes
        any changes of WCS
        tool break control cycle
        swapping a manual tool into the spindle
        swapping a manual tool out of the spindle
        after any optional sections to avoid the risk of a skipped full Z retract
      Z retract ignored:
        4th axis indexing between operations that are the same WCS and the same tool
    -writeRetract(Z) commented out in two places effects need confirming are not dangerous:
      1) function setWorkPlane(abc) {
      //writeRetract(Z); // ln 1649
      2) function positionABC(abc, force)
      //writeRetract(Z); // ln 2880
  - moved pre "operation-comment" code from start of onSection() into the end of onSectionEnd() for more predicable manual NC injection
  - Force tool change position logic added
  - Manual tool change position option and logic added
  - methodXY and methodZ set to G53 and on tool change updated as currently the most reliable option for me
  - Machine connection moves logic added
  - Tool table layout adjusted and below holder stick out information added
  - small minor changes made to formatting to aid in reliability
  - overall clean up to previous updates made to stock post
  - DebugByCarnie global variable switch created

Updated 8-3-25:
  Added retract to clearance height option
    retract.methodXY set to G53 for more predictable simulation connection moves
    full retract called when changing WCS, tool change (manual and automatic) and before break detection cycles
    machine simulation moves for clearance height changed for work coordinates**
      ** Current issue when simulating moves to different WCS issuing the wrong WCS initial position however Gcode output looks safe with a full z retract called.  
  - small change to manual tool removal message

Updated 7-3-25:
  Added manual tool change logic to onSection() to support unloading the tool in the ATC umbrella and installing a manual tool.
      extra logic to shut down coolant early to maximise drip-out time
      extra info passed from fusion into comments to help the operator confirm the right tool, holder and stick out is being loaded into the spindle.
  - Added a first pass at tool break control  - needs testing and uses the stock Syil provided macro M106
  - Removed unrequired variables from writeToolBlock()

Updated 4-3-25:
  Minor UI changes to syil_lnc_toolpath.cps
  - Post properties table renamed and reordered
  - G30 option added to safePositionMethod()
  - Tool change position added to writeToolBlock() and machine simulation details updated to allow simulation of tool change connection moves
CALIBRATEPROBERING
- fixed an error in the way A arguments to PROBEXSLOT were called

PROBECONFIG
- changed storage offset into the range protected by the PROBECONFIG macro settings (96+)

TOOLSET, CALIBRATEZ, CALIBRATEPROBERING
- Minor whitespace or wording adjustment
Updates in this last batch of mods
First pass at an update to read me to account for changes I have made to the macros. 

A slight rearrangement of the order to walk a new user through the process of getting the probe working.
- Slight reordering to improve clarity for new users, making essential settings easier to find.
- Moved gauge lengths into common offsets.
- Added gauge block size for future use.

CALIBRATEPROBERING
- Added an override for the ring gauge A argument.

ProbingConfigHelper.NC
- Reordered prep list to align with a method found to be faster and more consistent.

Syil_LNC_RobotOblivion
- updated menu for the word results to avoid confusion with a saved or printed inspection report.
Second pass picking up a few small issues and adding a bit of colour and layout styling for ease of reading
Mcode version of the probing macros available.
Rebuild probing macros to swap any arguments to their axis letter.
a few small bug finds and fixes.

---------------------------------------------------

Syil_LNC_RobotOblivion.cps
- Logic to swap between string and number-based macro calls (line 56)
-  onSectionEnd() bug fix for programs that end in an optional strategy that was causing the post to fail
- Probing arguments updated to match the new naming conversion.

LOADTOOL
- waits added to make sure the controller holds for an OK to be pressed before moving on

PROBECONFIG
- moved -1 tool check above tool offsets as will stop a valid tool offset from being cleared if the macro is run with -1
- added gauge block XY size inputs
- added manual tool change location extended offset
- global variables changed to values not used by the stock Syil macros
- switch for turning off size tolerance alarms added

CALIBRATEZ
- Second confirmation message added to make sure the controller holds for an OK to stop an incorrect value being stored if OK is pressed before the master tool is fully gauged in on the top of the artifact.
- removed [ ] around a few variable numbers
- added missing # on / PROBE Z AT SLOW SPEED line

build_maker_macro.py
- Reorder the Mcode with numbering to aid in calling them without string names.
- added a reminder to open a workspace with the top-level folder set to "Macros for Controller"
- Added and ran to generate a macro_macro set of macros

README.md
- 3rd pass with updated arguments

ChangeLog.md
- updated with an overview of changes

The below macros were updated to move axis arguments to letters that match the axis being called:

CALIBRATEPROBEBLOCK
Arguments A and B swapped to X and Z

PROBEYWEB
Arguments B and C swapped to Y and Z
switch for turning off size tolerance alarms added

PROBEXWEB
Arguments B and C swapped to X and Z
switch for turning off size tolerance alarms added

PROBEBORE
Argument B swapped to D

PROBEX
Argument B swapped to X

PROBEXSLOT
Argument B swapped to X
switch for turning off size tolerance alarms added

PROBEY
Argument B swapped to Y

PROBEYSLOT
Argument B swapped to Y
switch for turning off size tolerance alarms added

PROBECIRCULARBOSS
Arguments B and C swapped to X and Z

PROBERECTANGULARBOSS
Arguments B, C and D swapped to X, Y and Z

PROBEPOCKET
Arguments B and C swapped to X and Y

PROBEZ
Argument B swapped to Z

TOOLSET
Arguments A and B swapped to D and A

PROBEOUTSIDECORNER
Arguments B, C and D swapped to C, D and E

PROBEINSIDECORNER
Arguments C and D swapped to D and E
fixed broken image in readme
bug fix in extended offset calc
bug fix in extened offset calc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments