Skip to content

CNC SmoothPath, cone orbit, and Vision templates - #42

Merged
dalethomas81 merged 6 commits into
mainfrom
dev
Sep 20, 2026
Merged

dalethomas81 merged 6 commits into
mainfrom
dev

Conversation

@dalethomas81

Copy link
Copy Markdown
Owner

Summary

PLC CNC path preprocessing and an in-progress cone program, plus Vision template UX and cleaner CODESYS XML diffs. Stamped v2.2026.38.1-Cnc.

CNC / PLC

  • SMC_SmoothPath between SMC_NCInterpreter and SMC_CheckVelocities, with its own GEOINFO buffer (_SMC_GEOINFO_Smooth).
  • M500–M549 wait on flags and clear them (same pattern as input waits).
  • J6: IK seed dQ5_old and ControlAxisByPos set position are negated so the wrist follows the 6DOF trafo sign.
  • AvoidGaps off; gap velocity/accel/jerk lowered (lag faults were beating gap close at ~180°).
  • Interpreter eOriConv stays on the processor convention (ZYX). ADDAXES is commented — flipping the shared convention still feeds J4/J5/J6 as Euler and faults the group.
  • Codesys/_cnc/CNC_Cone.cnc: G91 cone orbit (WIP). Jog TCP on the apex, tool Z along the axis, then run.

Vision

  • Saved templates live under Vision (Capture / ROI / Templates). /vision/files redirects to /vision/templates.
  • Template names are name_WIDTHxHEIGHT.jpg (no spaces) so a 2000×2000 snip is not used on a 640×400 locate.
  • Vision page no longer captures on load; Capture Image no longer hits /captured_image twice.

Tooling

  • codesys-git-diff textconv: if InterfaceAsPlainText is present, drop the structured duplicate so GitHub Desktop does not show the same ST edit twice.

Template names cannot contain spaces and are saved as name_WIDTHxHEIGHT.jpg so a 2000x2000 snip is not used on a 640x400 locate. The Vision page no longer grabs a frame on load, and Capture Image no longer hits /captured_image twice.
Vision now has Capture, ROI, and Templates. The old /vision/files URL redirects to /vision/templates. Animator and Bluetooth stay as top-level apps.
When InterfaceAsPlainText is present, the textconv normalizer drops the
structured variable/inputVars/baseType copy and extra plaintext copies
so GitHub Desktop does not show the same edit twice.
Insert SMC_SmoothPath between the NC interpreter and CheckVelocities with its own GEOINFO buffer. M500-M515 wait on flags and clear them. Negate J6 IK seed and ControlAxisByPos set position. Disable AvoidGaps and lower gap dynamics. CNC_Cone.cnc is the in-progress G91 cone path. Restore UTF-8 in the PLCOpen export.
@dalethomas81
dalethomas81 merged commit c77812f into main Sep 20, 2026
1 check passed
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.

1 participant