AI prompts
Before you start
Install the product on the target machine first; the installer is on the downloads page. Installing the driver goes through the official installer and is your step to take; every prompt below is handed to the AI so that it uses the software to evaluate, configure, export and run.
Microsoft's official soft real-time support covers the IoT Enterprise editions: Windows 10 IoT Enterprise 21H2 and later and Windows 11 IoT Enterprise. For the requirements, see Microsoft soft real-time.
Windows 10 Pro can install and run, but it is not one of the versions Microsoft officially supports for soft real-time.
The installer installs the runtime and the real-time driver, and may reserve a real-time core during installation. Installing does not mean soft real-time is active: whether it is actually enabled depends on the system version, the reserved core, the driver state and the runtime path; take the SDK status or the installation log as the reference.
Do not install it for testing on the machine you use for daily development: it replaces the driver and changes the real-time core reservation, which affects that machine's existing debugging environment.
Install the skill
Send the block below to the AI you are already using. If it can write files on this machine, it installs the skill and later loads it through the client's own skill mechanism; if it cannot, it reads the rules in for this run instead. Both cases share one prompt, so there is no second entry point. It works out which client it is on its own; you do not have to tell it which one you use.
First work out which client you are and whether you can write to the user home directory. Base that on your own process, configuration or system prompt; do not ask the user. Only write https://ethercat.darra.xyz/skills/darra-ethercat/SKILL.md verbatim once you are sure that your later turns will read a skills directory. The two locations below apply only after you have confirmed your identity: Claude Code writes .claude/skills/darra-ethercat/SKILL.md under the user home directory, and Codex writes .codex/skills/darra-ethercat/SKILL.md under the user home directory; create the directory if it does not exist. If you are some other AI, use only a skills directory that your own documentation names and that you will actually load. If you cannot find such a directory, do not invent a path, and do not write to .claude or .codex by guesswork. If you cannot write files (browser chat, no file system), do not pretend to install; instead read https://ethercat.darra.xyz/skills/darra-ethercat/SKILL.md and https://ethercat.darra.xyz/ai-prompts.txt and write the code for this round from them. After writing you must read the file back and confirm that it is non-empty and contains name: darra-ethercat; do not change the file contents.
Then write the master program from the information below; the default is the C# SDK (you can switch to Java / Python / C / C++ / Rust). If this round does not write code, delete the last two lines.
DENI: (fill in the path or send the file)
Slave and function: (for example Delta ASDA-A3, CSP position control)
Skill file: https://ethercat.darra.xyz/skills/darra-ethercat/SKILL.md
Rules file: https://ethercat.darra.xyz/ai-prompts.txt
Browser chats (web versions of ChatGPT / Claude / Gemini and the like) cannot write files on this machine; send the same prompt anyway: it skips writing the file, reads the two addresses above directly, and you can paste the DENI contents at the end as well.
There are 13 skills in total; the full list and what each one covers are on the AI skills page; the install prompt on this page installs only the top-level entry darra-ethercat, and the other 12 can be installed the same way.
Let the AI automate the evaluation
Evaluation means: scan the slaves, reach OP, read the state, measure the cycle, export the results. Have the AI drive the software with the command list from the skill instead of clicking anything.
The prerequisite is that Darra EtherCAT is installed on the target machine and that the Darra EtherCAT Master tool is running — these commands only work against a running tool. Commands, receipt format and the criterion for each step all come from https://ethercat.darra.xyz/skills/darra-ethercat-gui/SKILL.md; if that cannot be read, stop, do not fill in commands from memory.
Copy the block below to the AI.
Read https://ethercat.darra.xyz/skills/darra-ethercat-gui/SKILL.md first and run one evaluation with the command list in it. One command, one receipt; do not skip steps and do not invent commands or parameters.
1. query:session —— check that the tool is running.
2. query:nic-scan —— list the NICs, pick the one whose linkStatus is up and whose state is ready or unbound, and note its guid. When several buses coexist, select by guid; do not use recommended.
3. act:connect;nic=guid_from_step_2;start=OP —— build the master and reach OP. It answers accepted first; then poll query:session until busy.init and busy.stateTransition are both false, master.present is true, master.slaveCount is greater than 0, and master.state is OP.
4. query:slaves —— truth.verdict must be RealOp for every slave before it counts as really in OP. The snapshot lags right after entering OP, so retry 2 or 3 times before concluding.
5. query:master —— record the actual and expected values of wkc, plus cycle, jitter, rttUs and health.
6. Export the result: act:export-deni;path=local_absolute_path writes the DENI; act:export-code;dir=local_absolute_path;lang=csharp writes the code, and lang can be python, java, rust, c or cpp. For a spreadsheet report use Details in the window opened from Export → Template program.
7. act:disconnect —— close out; do not skip it. The master holds the NIC exclusively; without releasing it the next run gets NIC_OCCUPIED.
If no usable NIC turns up, act:connect answers NO_SLAVES, or any slave is not RealOp, stop and paste the receipt verbatim; do not force it with different parameters.
Give the conclusion in this order: whether the NIC is usable → whether the slave count is right → whether OP was really reached → the wkc and cycle/jitter readings → where the exported files are. Write "not readable" for anything you could not read; do not make up a number.
Let the AI complete a project
Install the product yourself (the installer is on the downloads page); the prompts below do not download or install anything. The driver can only be installed through the official installer, which replaces the real-time driver and may reserve a real-time core, and you decide when to restart. Once it is installed, the block below has the AI take one project from start to finish with the software: reach OP, export the DENI and the code, then run it and read the cycle numbers.
Copy the block below to the AI.
The target machine already has Darra EtherCAT installed and the Darra EtherCAT Master tool is open. Use it to finish this project, far enough to see the cycle numbers.
Read https://ethercat.darra.xyz/skills/darra-ethercat-gui/SKILL.md and https://ethercat.darra.xyz/ai-prompts.txt first; commands and interfaces come from those two. If they cannot be read, stop; do not fill in interfaces from memory.
1. Set up: query:nic-scan picks the NIC, act:connect;nic=guid_just_noted;start=OP builds the master and reaches OP; poll query:session until busy.init and busy.stateTransition are both false and master.state is OP.
2. Check: query:slaves shows whether truth.verdict of every slave is RealOp. If not, paste the AL status code and the receipt verbatim; do not force it by changing parameters. To change configuration use act:write, and take data.verified=true in the receipt as the criterion.
3. Export: act:export-deni;path=local_absolute_path writes the DENI, act:export-code;dir=local_absolute_path;lang=csharp writes the code. For a full project directory (source + configuration + SDK + run scripts) use Export → Template program in the UI, and in the Program code group pick the language and save.
4. Run: the cycle is already running once the master is in OP. Read the frequency, jitter, RTT and WKC indicators from the status bar and the values on the PDO page, and paste them back verbatim; to run it separately, use the project exported in step 3.
5. Close out: act:disconnect. The master holds the NIC exclusively; without releasing it the next run gets NIC_OCCUPIED.
If the software is not installed yet, stop and tell me; do not go and download the installer yourself.
Slave and function: (for example Delta ASDA-A3, CSP position control)
Wherever you stop, paste the receipt from that step verbatim; do not guess what comes next.
Done means: truth.verdict of every slave is RealOp, wkc.exact is true, cycle is not 0, and the DENI and code files really exist. Write "not readable" for anything you could not read; do not make up a number.