Repository navigation
Optional EtherCAT IO, PLC commit helper, and CODESYS library updates - #40
Merged
Merged
Conversation
- added an error step to the cnc command parser to stop error spamming. - added comments.
Bump system libraries to 3.5.22.0 and visualization libraries to 4.10.0.0.
Name EasyCAT on the AR4 README and link Setup from the project landing page.
Replace disable-unused-IO with a link to the wiki alias and hot-swap procedure.
Same EVB-LAN9252-SPI hardware; ArfBot.ino vs RemoteIO.ino, same 32+32 EEPROM, aliases 1010 vs 1030.
CODESYS script writes sPlcVersion from the latest tag on main plus HEAD count, short hash, and -dirty.
CODESYS IronPython 2.7 rejects UTF-8 arrows without an encoding cookie.
Call git via System.Diagnostics.Process so CODESYS does not report sys.exc_clear deprecation as errors.
One CODESYS script writes sPlcVersion then overwrites ArfBot.xml so a PLC commit is a single Execute Script File.
Host globals are not visible in imported modules, so a NameError hit system.exit and closed the IDE. Bind projects from __main__ and only exit when launched headless.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builders can keep both IO options in the device tree and hot-swap them without a recompile. Optional EtherCAT slaves plus station aliases replace gray-Disable and a new download.
Also adds a one-shot CODESYS script to stamp
GVL_Version.sPlcVersionand exportArfBot.xmlbefore commit, bumps system/visu libraries, and stops CNC parser error spam.EtherCAT IO
1010).IoOption1(EK1100 / EL1809 / EL2809) andIoOption2(EasyCAT IO) are Optional (1020/1021/1022/1030)._20_Iomapping still follows whichever option is present.CmdIOmap (independent dual IO is not in this PR).ArfBot.inovsRemoteIO.ino). Same 32+32 EEPROM; aliases distinguish them.PLC commit workflow
Codesys/Scripts/PreparePlcCommit.py(Tools → Scripting → Execute Script File):sPlcVersionas<tag on main>-<n>-g<sha>[-dirty]ArfBot.projectCodesys/ArfBot.xmlStamp-only / export-only scripts remain. This stamp:
v2.2026.37.1-AlarmHistory-23-gb1a767d-dirty.Other
Tested
PreparePlcCommit.pyfrom Execute Script File (IDE stays open; XML export included)