Skip to content

Iv3 debug#1150

Merged
PTKu merged 5 commits into
devfrom
iv3-debug
May 20, 2026
Merged

Iv3 debug#1150
PTKu merged 5 commits into
devfrom
iv3-debug

Conversation

@kuh0005
Copy link
Copy Markdown
Collaborator

@kuh0005 kuh0005 commented May 20, 2026

This pull request enhances the logic and robustness of the program switching process in the Axo_IV3 component for Keyence Vision systems. The changes focus on handling interrupted program changes, improving state management, and providing clearer diagnostics through new error codes and messages.

Improvements to program switching logic:

  • Added a new internal variable _ProgChangeInterrupted to track if a program change was interrupted, allowing the system to handle incomplete switching scenarios more reliably. [1] [2]
  • Refined the state machine in ChangeProgramTask to better handle edge cases, such as resetting the program number and program switching request when interrupted, and ensuring proper transitions based on device responses. [1] [2]

Diagnostics and error handling:

  • Introduced new error codes (514, 515) and corresponding messages to provide more granular feedback when waiting for specific signals (BUSY reset and program number match) during the program switching process. [1] [2]
  • Extended the valid range for restore-triggered progress values, improving the reliability of the restore mechanism during task execution.

Minor changes:

  • Fixed a minor whitespace issue in the using directives in Axo_IV3.cs.

These updates make the program switching process more robust, easier to troubleshoot, and better aligned with the expected device behavior.

@kuh0005 kuh0005 requested review from LukasKytka, PTKu and TomKovac May 20, 2026 05:30
@PTKu PTKu merged commit 7d3f40b into dev May 20, 2026
3 checks passed
@PTKu PTKu deleted the iv3-debug branch May 20, 2026 09:57
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