 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
Teknorob Junior

Joined: 18 Nov 2025 Posts: 17
|
Posted: 03/02/2026 12:34 Post subject: KUKA KRL for VS Code |
|
|
KUKA KRL for VS Code v1.9.+: From a Syntax Highlighter to a Full Industrial Engineering Toolkit
Hello fellow roboticists and automation engineers!
A couple of months ago, I introduced the first version of the KUKA KRL Extension for VS Code. Back then, it was mostly a comfortable code editor with custom themes, basic linting, and snippets to replace Notepad++ and OrangeEdit.
Since then, based on real commissioning feedback from automotive lines and industrial cells, the project has undergone a massive architectural overhaul. In v1.9.+, it is no longer just an editor it is a full-fledged offline engineering and diagnostic environment for KUKA KSS 8.38.7 and iiQWorks.
Here is what was added and why it completely changes day-to-day workflow with KUKA robots:
--------------------------------------------------
1. Live StrΔveziu ZIP Backup Mount & 2-Way Auto-Sync
No more extracting 50 MB archives into temporary folders and repacking them manually.
- Open .zip directly as a workspace: Simply open any Robot_Archive.zip or KRCDiag_*.zip. The extension mounts it into VS Code with your project tree and auto-opens Cell.src.
- Transparent In-Memory Patching (<80 ms): Whenever you hit Ctrl+S, changes are transparently patched directly back into the original .zip archive on disk without file locks or full repacking.
- Archive Explorer (Zero-Unpack): Instant virtual in-memory inspection of files via krc-archive:// protocol.
- 6D Coordinate Delta Math: Compare two backup archives side-by-side to see coordinate drift (ΔX, ΔY, ΔZ, ΔA, ΔB, ΔC in mm and degrees) between teaches.
--------------------------------------------------
2. KRL Safe Auto-Repair Engine (QuickFix & Fix-All)
Deterministic one-click fixes (Ctrl+. lightbulb or Fix All) for programming hazards before loading to the robot:
- Missing BRAKE before RESUME: Injects mandatory BRAKE deceleration before RESUME inside collision and sensor interrupt routines.
- Uncommitted Payload Dynamic Data: Automatically inserts BAS(#PAYLOAD, nTool) commit calls after multi-attribute $LOAD assignments.
- BOM & Non-ASCII Purge: Strips invisible UTF-8 BOM markers and non-standard typographical characters that crash the KSS compiler.
- Loop & FOLD Recovery: Fixes dangerous FOR ... STEP 0 infinite interpreter loops and re-synchronizes broken ;FOLD / ;ENDFOLD boundaries.
- Safety Rollback & Monaco Diff Review: Preview exact red/green line diffs before accepting changes. If any AST regression is detected, the transaction is automatically rolled back.
--------------------------------------------------
3. 16+ Industrial Static Safety Gates & KSS Compiler Parity
The background scanner continuously audits your workspace against official KUKA specifications:
- Status (S) & Turn (T) Validator: Checks 6-axis Turn bitmasks (0..63) and Status (0..7). Automatically enforces Status S = 2 ('B010') on 4-axis palletizer robots (KR 300 PA, KR 470 PA, etc.) to prevent singular configuration faults.
- Vorlaufstopp (Advance Run Breaker) Detection: Flags subprogram calls and I/O reads breaking the continuous advance pointer between C_DIS / C_PTP approximation points.
- SUBMIT Interpreter Rules: Strictly forbids robot motion commands (PTP, LIN, CIRC) inside sps.sub and verifies ROBOT_STOP() usage.
- Manipulator Dynamics & Overload Check: Cross-checks $config.dat LOAD_DATA against nominal arm payload from $TRAFONAME.
- Hardware I/O Range Checks: Validates hardware limits for $IN/$OUT [1..4096/8192], $FLAG [1..1024], $TIMER [1..64], and $CYCFLAG.
- SRC <-> DAT Integrity: Matches KUKA compiler error catalog parity (KSS01412, KSS01413, KSS01422, KSS01425) for unlinked module headers and missing point declarations.
--------------------------------------------------
4. 6D Kinematics & Trajectory Engineering
Full 4x4 Homogeneous Transformation Matrix math right inside the IDE:
- Trajectory & Point Mirroring: Mirror paths across X, Y, or Z Cartesian planes with automatic recalculation of Turn bitmasks (T XOR 32, 40, 48) so robot wrists don't unwind 360°.
- 6D Batch Point Shift: Shift selected coordinates via Tool Offset (P : ΔF), Base Offset (ΔF : P), or Cartesian Delta vectors with live Monaco Diff preview.
- Trajectory Reversal: Inverts motion path backwards with intelligent auxiliary/target point swapping for CIRC / SCIRC arcs.
- Tool & Base Coordinate Inspector: Scans TOOL_DATA, BASE_DATA, and LOAD_DATA with one-click export to CSV spreadsheets.
--------------------------------------------------
5. Modern KRL & Fleet Tools
- Official KUKA.Sim 4.10 System Variables: Autocomplete and full typing for over 950 system variables ($POS_ACT, $AXIS_ACT, $TORQMON, etc.) with German physical units and array dimensions.
- iiQKA Spline Modernizer: Wrap legacy motions into modern SPLINE blocks with automated $TORQMON collision guard frames.
- KRCDiag Inspector: Inspect native controller diagnostic packages and parse KrcLog.evt / KrcLogS.evt logs directly inside VS Code.
- Interactive Control Center: Direct one-click access to 70+ utilities, calculators, and diagnostic switches.
--------------------------------------------------
How to Install or Update
1. Open VS Code.
2. Press Ctrl+P.
3. Paste: | Code: | | ext install LiskinLabs.kuka-krl-extension |
Or search for KUKA KRL Extension in the Extensions tab.
Useful Links:
Documentation Portal: [url]https://liskinlabs.github.io/kuka-krl-extension/[/url]
Visual Studio Marketplace: [url]https://marketplace.visualstudio.com/items?itemName=LiskinLabs.kuka-krl-extension[/url]
Open VSX Registry: [url]https://open-vsx.org/extension/LiskinLabs/kuka-krl-extension[/url]
Public Showcase & Issue Tracker: [url]https://github.com/LiskinLabs/kuka-krl-extension[/url]
--------------------------------------------------
If you have tricky robot backups, exotic KFD tech packages, or edge cases that trigger false positives please let me know here or open an issue on GitHub. Let's make KRL programming reliable and fast together!
Last edited by Teknorob on 10/10/2026 20:54; edited 2 times in total |
|
| Back to top |
|
 |
fotamecus Member

Joined: 06 Nov 2017 Posts: 157
|
Posted: 03/02/2026 22:20 Post subject: |
|
|
| Nice! I will try it in next days. |
|
| Back to top |
|
 |
Teknorob Junior

Joined: 18 Nov 2025 Posts: 17
|
Posted: 10/10/2026 21:49 Post subject: Re: KUKA KRL for VS Code |
|
|
A quick note on updates & feedback (plus 100% discount for community members)
Just wanted to add a few words on how this project evolves.
I actively develop and update this extension primarily for my own daily needs whenever I'm on-site commissioning KUKA cells and hit a real-world bottleneck, a tricky kinematic edge case, or an annoying manual routine, I turn it into an automated feature or linter rule in the next release.
Because of that, feedback from practicing engineers is what shapes the roadmap most:
- If you have ideas for features or improvements that would speed up your workflow;
- If you've found any bugs, false positives, or exotic KRL syntax that isn't parsed cleanly;
- Or if there's a specific repetitive task you wish was automated in 1-click
Please don't hesitate to reply here in the thread or send me a PM. I'm always open to discussing real production requirements and implementing them.
100% Discount for Forum Members:
Since I really want active feedback and battle-testing from this community, I can share a 100% OFF promo code for the Pro tier.
If you want to test the full industrial feature set (Live ZIP mounting, 6D trajectory mirroring, and Auto-Repair engine) in your projects, just drop a reply below or shoot me a PM, and I will send you the promo code!
Cheers! |
|
| Back to top |
|
 |
fotamecus Member

Joined: 06 Nov 2017 Posts: 157
|
Posted: 13/10/2026 20:56 Post subject: |
|
|
Great!
I would like to get a promo code. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|