AI prompts
Put the skill into the AI's skills directory
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://profinet.darra.xyz/skills/darra-pns/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-pns/SKILL.md under the user home directory, and Codex writes .codex/skills/darra-pns/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://profinet.darra.xyz/skills/darra-pns/SKILL.md and https://profinet.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-pns; do not change the file contents.
Read state and diagnostics with the local Web API and give the assessment conclusions
First read https://profinet.darra.xyz/ai-prompts.txt and https://profinet.darra.xyz/skills/darra-pns/SKILL.md; the field names and the order come from those two files. If you cannot read them, stop and do not fill anything in from memory.
Run one evaluation with the Darra Profinet Slave local Web API, all against 127.0.0.1:18840
1. GET /api/status — Connected / State / WaitReason / ErrorCode.
2. GET /api/diag — frames sent and received, RT cyclic frames, dropped and invalid frames, watchdog timeout count, cycle counter, missed ticks, maximum jitter in µs.
3. GET /api/io — process area in hex together with IOPS / IOCS. inputHex is the Q side (device to controller), outputHex is the I side (controller to device); the JSON field names follow the GSDML direction and are the opposite of the SDK's I / Q. IOPS 0x80 is GOOD, 0x00 is BAD.
4. Use POST /api/start and POST /api/stop only when the device has to be started or stopped; read the other endpoints, do not write them.
Give the conclusions in this order — whether cyclic data exchange has started, whether this cycle's data is usable, whether frames were dropped or the watchdog timed out, and whether the cycle counter and the jitter look right against the configured values.
The cycle length is configured in the configuration tool and on the controller side, minimum 1 ms. /api/diag gives counters and jitter, not the cycle length; do not turn them into a measured cycle length.
Unique connection — only one realtime session is allowed at a time, and a second instance is always refused. To check that, start a second instance with the language SDK, look at the return value, and release it; do not hold a session during the evaluation.
Paste the evaluation back as text. There is no one-click export of an evaluation report.
Read I and write Q; a write to I is always refused, and do not copy I back into Q.
From configuration to running — export the GSDML, connect to the IO Controller, read I and write Q
First read https://profinet.darra.xyz/ai-prompts.txt and https://profinet.darra.xyz/skills/darra-pns/SKILL.md and write from those; do not fill in interfaces from memory.
If the product is not installed yet, stop and tell me; do not download and run the installer yourself. If it is installed, take this project from configuration to running with Darra Profinet Slave, using the configuration tool and its exports for everything, and do not hand-write a description file.
(project requirements, for example station name, process data length, the values to exchange)
1. Confirm that the service DarraPnSService is running and that the configuration tool opens.
2. On the configuration tool's device page, set the station name, input and output length, send clock and NIC binding. That page labels input and output in the GSDML direction.
3. Export the GSDML from the top bar, and export the runtime configuration for the service DarraPnSService to load. Both are needed; exporting only one leaves the two sides out of step.
4. From the top bar, also export an example in your language (C / C++ / C# / Java / Python / Rust can all be exported) and write the program from it.
5. On the TIA side — Options -> Manage general station description files, add that GSDML, drag Darra Profinet Slave from the hardware catalog into the network, assign the device name, IP and IO Controller, then compile and download. The device name must match the station name in the configuration tool character for character.
6. After the service is started, open a realtime session — parameterless new / Connect(), no IP, no port, and no HTTP for process data.
7. Diagnose before reading or writing — Connected -> State / ErrorCode / ErrorMessage -> IoStatus (IOPS / IOCS). Do not treat I / Q as valid while IoStatus is not GOOD, and a successful Start does not mean connected.
8. Read I (controller to device) and write Q (device to controller); a written Q goes out on the next cycle. Writing I returns NotSupported.
9. Finish with Stop(), which only stops data exchange, then Dispose() / close() / Close() / PnSServiceClose(), which is what releases the unique connection; without it the next instance cannot start.