How to Use AI to Integrate EC-Master into Your Software

An AI coding agent can take a large part of the work off your hands when you integrate EC-Master into your application – provided it works with the right documentation and the right expertise. acontis provides both: the complete EC-Master documentation in PDF, HTML and Markdown, and a dedicated AI Skill for coding agents.
This article is for developers with little or no experience in AI-assisted coding. We walk you through the first steps – from installation to a first working integration. The approach works with all common coding agents. As an example, we use Claude Code as the coding agent and Microsoft Visual Studio Code as the development environment.
Why a coding agent needs context
A language model knows EtherCAT in general, but not reliably the functions, parameters and error codes of your EC-Master version. Without support, it may invent plausible-sounding function names or design mechanisms that EC-Master already provides.
Two things change that fundamentally:
- The documentation as the source of facts. The agent reads the manuals and the headers of your installed package before it writes code. Function names, call order and parameters thus come from the source, not from the model’s memory.
- The acontis AI Skill as working instructions. It deliberately contains no product facts. Instead, it holds the way of working and the rules that experienced EC-Master developers know: where to find which information, which sequence an application must follow and which classic mistakes to avoid.
The result: the agent works like a new colleague who reads the documentation first, then presents a plan, and only then starts coding.
The three ingredients
| Ingredient | What it is | Where to get it |
|---|---|---|
| EC-Master package | Libraries, headers (SDK/INC), demos (Examples) and manuals (Doc) of your version | Customer delivery or evaluation request |
| Documentation | Manuals in PDF, HTML and Markdown, freely available | developer.acontis.com/ec-master |
| acontis AI Skill | Working instructions for coding agents: approach, rules, guide to the documentation | Download (ZIP) |
You do not need to download the documentation yourself: the skill tells the agent where to find it – first in the package, otherwise online.
Which coding agent?
The acontis AI Skill works with all coding agents that support skills. It consists of plain Markdown in the open Agent Skills format (SKILL.md plus supporting files). Many popular coding agents read this format, including Tencent CodeBuddy, Alibaba Qoder, Qwen Code and OpenAI Codex. Each tool expects the skill folder in its own location:
| Coding agent | Skill folder in the project | Skill folder for all projects |
|---|---|---|
| Claude Code | .claude/skills/ | ~/.claude/skills/ |
| CodeBuddy | .codebuddy/skills/ | ~/.codebuddy/skills/ |
| Qoder | .qoder/skills/ | ~/.qoder/skills/ |
| Qwen Code | .qwen/skills/ | ~/.qwen/skills/ |
| Codex | .agents/skills/ | ~/.codex/skills/ |
The paths may change with new versions of the tools; their documentation is authoritative. The Markdown manuals are not tied to any tool either. In the following steps, we use Claude Code as an example. With other agents, mainly the installation and the skill folder differ; the approach stays the same.
Step 1: Set up the coding agent
Many coding agents run as an extension in a development environment such as Visual Studio Code, others as a standalone development environment or in the terminal. Choose a tool that supports skills and follow its installation guide.
As an example, we show how to set up Claude Code, the coding agent from Anthropic, in VS Code. There it runs as an extension with its own chat panel: you describe the task, the agent reads your project, proposes changes and shows them as a diff before they are applied.
Requirements for Claude Code:
- Visual Studio Code 1.98.0 or later
- an Anthropic account: a paid Claude subscription (Pro, Max, Team or Enterprise) or a Claude Console account; no API key is needed
To install the extension:
- In VS Code, open the Extensions view with
Ctrl+Shift+X(macOS:Cmd+Shift+X). - Search for “Claude Code” and click Install.
- Open any file and click the Spark icon in the editor toolbar. The Claude Code panel opens.
- Sign in with your Claude account.
Tip: In the Command Palette (Ctrl+Shift+P), Claude Code: Open Walkthrough starts a short guided tour of the basics. For installation details, see the Claude Code documentation for VS Code.
Step 2: Install the acontis AI Skill
A skill is a folder with a SKILL.md file and optional supporting files. The coding agent loads it automatically as soon as a task matches its description – for the acontis skill, whenever EC-Master, ENI files, EtherCAT link layers or the EC-Master API come up.
The acontis skill is called integrate-acontis-ethercat and consists of the main file and a folder of reference files:
integrate-acontis-ethercat/
├── SKILL.md
├── DISCLAIMER.md
└── references/
├── doc-map.md
├── ec-master-integration.md
├── platforms-and-link-layers.md
├── porting-guide.md
├── troubleshooting.md
└── … (EC-Simulator, EC-Monitor, EC-Motion, Wrapper, ROS2)
Copy the complete folder into the skill folder of your coding agent (see the table above). For Claude Code:
| Location | Applies to |
|---|---|
~/.claude/skills/integrate-acontis-ethercat/ (on Windows in your user folder) | all your projects |
.claude/skills/integrate-acontis-ethercat/ in the project folder | this project only, e.g. for the whole team via the repository |
Claude Code detects new skills without a restart. If the skills folder did not exist when the tool started, restart it once; the same applies to other agents. To test, simply ask the agent: “Which skills are available to you?”
Step 3: Prepare the project
The more the agent finds on disk by itself, the fewer questions it needs to ask. Prepare three things:
- Unpack the EC-Master package. Unpack all archives of your delivery (EC-Master and, if applicable, Class A, feature packs, EC-Simulator) into one common directory outside your repository. This directory is the
<InstallPath>the skill refers to. - Have the ENI file ready. You export the network configuration with EC-Engineer. If you do not have an ENI yet, that is no obstacle: the agent knows ways to get started.
- Open the project folder. Open the folder of your own application into which EC-Master is to be integrated in your development environment – in VS Code via File > Open Folder.
Important: the EC-Master headers, libraries and demo sources are proprietary. Do not put them into a public repository; instead, reference the <InstallPath> in the build through a path variable. The skill takes care of this as well.
Step 4: The first prompt
Describe your task in the chat panel of your coding agent the way you would explain it to a colleague: what should be built, where is the package, which constraints apply? An example:
Integrate EC-Master into my application.
The EC-Master package is in C:\acontis\EC-Master-V3.3.
The ENI file is config/machine_eni.xml.
Cycle time 1 ms, target system Linux x64.
Show me a plan first, before you write any code.
The agent then proceeds as the skill prescribes:
- It locates the package, checks the version and reads the relevant manual pages.
- It asks you the open questions in one short round, for example about the network card, the license or logging, each with a suggestion you can simply confirm.
- For every mechanism the solution needs, it checks whether EC-Master already provides it instead of reinventing it. In the plan, it names the manual pages, headers and examples it relies on.
- It uses the supplied demos as a reference for call order and API, but does not copy their structure. The code follows the architecture and style of your application.
More prompts to get started:
- “Explain the structure of EcMasterDemo and which parts I need for my application.”
- “My application already uses a different EtherCAT solution. Show me what a migration to EC-Master would look like.”
- “The state change to SAFEOP times out. Here is the log. What is the cause?”
Step 5: Review the plan, build, test
You remain the responsible developer at every step. The agent proposes, you decide.
- Read the plan. Check whether the plan fits your architecture. Ask questions or request changes before any code is written.
- Review the changes. Most coding agents show every file change as a diff. At first, have every change presented for approval instead of applying changes automatically.
- The demo first. Before your own code, the supplied demo runs with your ENI and your link layer. This separates environment problems (network card, driver, license, ENI) from code errors.
- Test without hardware. If EC-Simulator is in your package, the agent uses it to test the integration as software-in-the-loop – the unchanged application reaches OP without any EtherCAT network.
- On the real machine. The network is brought up step by step: link, bus scan, PREOP, SAFEOP, OP. The agent may only set outputs or enable drives after you have explicitly confirmed that this is safe.
At the end, the agent reports what was verified in simulation, what on hardware and what has not been verified at all.
Feedback on the skill: While working, the agent notes in the file acontis-skill-feedback.md in your project folder where the skill was wrong, incomplete or made things harder than necessary. The file belongs to you. If you like, send it to ecsupport@acontis.com to help improve the skill. License keys, customer names and source code do not belong in it; the agent takes care of that. If you do not want such a file, tell the agent.
Tips for getting started
- Start small. A first task like “Bring the application to OP with my ENI” is better than “Build the complete machine control”.
- Ask for the plan. A short sentence like “Show me a plan first” keeps the agent from coding in the wrong direction.
- Ask for sources. Have the agent name the manual page or header behind a statement. The skill requires this anyway.
- Provide logs. When errors occur, paste the complete log from the first error into the chat, not just the last line.
- Measure timing with built-in tools. Self-written jitter measurements easily produce wrong results. EC-Master comes with its own performance measurement. Have the agent use it and measure with the unmodified demo first.
- Protect license keys. Keys belong in the configuration or in environment variables, never in the source code or the repository.
- Work with Git. Commit before every larger task. That way you can trace every change the agent makes and undo it if needed.
If the documentation does not answer a question, the agent says so openly and refers you to acontis support at ecsupport@acontis.com.
Conclusion
With a coding agent such as Claude Code, the freely available EC-Master documentation and the acontis AI Skill, even AI newcomers quickly arrive at a clean EC-Master integration. The agent reads the documentation, follows the proven way of working and tests before it reports anything as done. You stay in control at all times.
Try it out: request an evaluation version, install the skill and give your agent its first task.
Links
- EC-Master documentation (PDF, HTML, Markdown)
- EtherCAT downloads and evaluation request
- acontis AI Skill: integrate-acontis-ethercat.zip
- Agent Skills format (specification)
- Example Claude Code: extension for VS Code and Skills
- acontis support: ecsupport@acontis.com
Disclaimer: acontis AI Skill for EtherCAT Integration
The acontis AI Skill (“Skill”) is provided by acontis technologies GmbH free of charge and “as is” to support developers when integrating acontis EtherCAT software with AI coding assistants. It contains no acontis software and grants no licence to any acontis product. Using acontis products such as EC-Master, EC-Simulator, EC-Monitor, EC-Motion or feature packs requires a valid licence from acontis.
AI-generated results
Code, configurations, explanations and other output produced by an AI assistant using this Skill are generated by third-party AI software, not by acontis. They can be incomplete, outdated or wrong. You are solely responsible for reviewing, testing and validating all output before using it in any product, and for complying with the licence terms of all software involved.
Official documentation is authoritative
The Skill is an orientation aid. The official acontis documentation and the installed product package of your version always take precedence.
Safety
EtherCAT applications control real machinery. Output generated with this Skill is not safety-certified and must not be used for safety functions. Before running any code on real hardware, carry out a risk assessment and make sure suitable protective measures are in place. Compliance with applicable safety standards and regulations is your responsibility.
Third-party tools and data
The Skill is used with third-party AI tools and development environments (e.g. Claude, Visual Studio Code). Their terms of use and privacy policies apply; acontis has no influence on them. Do not share confidential data, licence keys or proprietary source code with such tools unless permitted by your organisation.
Liability
acontis is liable without limitation for intent and gross negligence, for injury to life, body or health, and under the German Product Liability Act. Otherwise, liability of acontis in connection with the Skill and its output is excluded to the extent permitted by law.
acontis may change, update or discontinue the Skill at any time without notice.
EtherCAT® is a registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. All other trademarks are the property of their respective owners.