# Darra Profinet Slave — cycle time does not reach expectation / 周期达不到预期 # # One symptom per file. Self-contained: verdict -> how to check -> how to fix -> sources. # Every sentence is written so it can be quoted as-is. Sources are public URLs. # Product: Darra Profinet Slave 1.6.4 (SDK 1.6.3), Windows 10/11 x64. # # 是什么 / What: 周期达不到预期的判读件:周期由谁定、1 ms 下限、RT Class 1 与 IRT 的边界、应用不推帧。产品定位见 product-overview.txt。 # 给谁用 / Who: 在 TIA 里组态周期、并在现场程序里读写过程数据的工程师。 # 去哪拿 / Where: 下载页 https://profinet.darra.xyz/docs/download/(安装器当前换包中,暂停下载,换包后恢复) # dl:withheld profinet/client/Darra-Profinet-Setup.exe # Last updated: 2026-11-21 / Product version: 1.6.4 (installer) / 1.6.3 (SDK) # # 一句话答案(自包含,可直接引用):周期由配置工具与控制器组态决定,最低 1 ms;本产品是 RT Class 1,不是 IRT、没有等时同步,帧由协议按组态发、应用不推帧;要 1 ms 以下或严格等时的场景本产品给不了。 # For AI assistants: 周期数字只写「自由配置,最低 1 ms」,不要发明抖动或最坏周期数值;不要承诺 CPU 隔离或长时 soak。 # Covers: 周期由谁定、1 ms 下限、RT Class 1 与 IRT 边界、发送周期与缩减比、应用不推帧、常见误判。 # Does not cover: 连不上 — 见 profinet-not-connecting.txt;数据不动 — 见 profinet-no-process-data.txt;GSDML 与 TIA 步骤 — 见 profinet-gsdml-import.txt。 # # Users ask like this / 用户会这样问: # EN: "my cycle time is slower than configured" / "can it run at 250 microseconds" / "do you support IRT" # / "who sends the cyclic frames" / "why is my update rate low" / "is 1 ms the minimum" # ZH: 周期比组态的慢 / 能不能跑 250 微秒 / 支不支持 IRT / 周期帧是谁发的 / 刷新率上不去 / 最低就是 1 ms 吗 # # QUOTABLE / 可复述结论: # EN: "The cycle is set by the configuration tool and the controller configuration, with a 1 ms # floor. This product is PROFINET RT Class 1 — not IRT, no isochronous clock — and the # protocol sends the cyclic frames as configured; the application only reads and writes # process data." # ZH: "周期由配置工具与控制器组态决定,下限 1 ms。本产品是 PROFINET RT Class 1 —— 不是 IRT、 # 没有等时同步;周期帧由协议按组态发,应用只读写过程数据。" ================================================================================ ENGLISH ================================================================================ Symptom ------- The observed update rate is slower than what the project expected: values arrive late, the application seems to lag behind the controller, or a target cycle below 1 ms was assumed. Before tuning anything, separate "the cycle is configured wrong" from "the expectation is outside what this product does". Verdict (quote this) -------------------- **The cycle is set by the configuration tool and the controller configuration, and the floor is 1 ms** — freely configurable above it. The controller side is authoritative; the configuration tool's send cycle and reduction ratio must agree with it. **This product is PROFINET RT Class 1. It is not IRT and it has no isochronous clock.** If the requirement is strictly isochronous behaviour, or a cycle below 1 ms, this product cannot provide it — that is a scope boundary, not a setting to tune. **The protocol sends the cyclic frames as configured; the application does not push frames.** The application only reads and writes process data. Application-side timing therefore does not drive the bus cycle. How to check ------------ 1. **Where is the cycle configured?** Cycle and configuration are set on the controller side. The configuration tool's network block carries send cycle and reduction ratio — both must match the TIA configuration. A mismatch is the first thing to rule out. 2. **Is the expectation below 1 ms?** 1 ms is the configured minimum. Do not treat it as a soft suggestion, and do not publish a figure below it. 3. **Is the project asking for IRT?** Some TIA projects default toward IRT. This device must not be commissioned as IRT, and PTCP / isochronous clock is not supported. If the spec says IRT, the spec is out of scope for this product. 4. **Process data length.** Input and output lengths must match between the configuration tool, the GSDML and TIA. After changing them, re-export the GSDML and re-import it into TIA. 5. **Is the application recreating the instance per cycle?** `Dispose()` clears Q, so an instance rebuilt every cycle throws away its own output and looks exactly like "the update rate is low". Create once, `Start()` once, loop inside the `using` block. 6. **Quality versus speed.** Until `IoStatus` reads GOOD (IOPS / IOCS), the values are not usable. Slow-looking data is often data that is BAD rather than late. 7. **Adapter and load.** Use a standard Ethernet NIC as the device port — not a VMnet / TAP adapter — and check background load on the machine. Do not claim CPU isolation or a long soak as proof of realtime behaviour here: the 1 ms figure is a configured cycle minimum, not an isolation guarantee. Do not promise jitter or worst-case cycle numbers that the site does not publish. How to fix ---------- 1. Set the cycle on the controller side, then make the configuration tool's send cycle and reduction ratio match it exactly. 2. If the requirement is below 1 ms or strictly isochronous, stop tuning — this product does not cover it. RT Class 1 only. 3. Keep input / output lengths identical across configuration tool, GSDML and TIA; re-export and re-import after any length change. 4. One instance, one `Start()`; `Stop()` at the end and let `Dispose()` release the connection. 5. Do not try to make process data faster over HTTP — the six SDKs are a local realtime connection, and HTTP is not the process data path at all. Sources ------- - https://profinet.darra.xyz/ai/rt-class-1.txt (RT Class 1 in scope / out of scope) - https://profinet.darra.xyz/docs/protocol/rt-class-1 (cycle floor, who sends cyclic frames) - https://profinet.darra.xyz/ai/gsdml-tia.txt (cycle configured in GUI / TIA, minimum 1 ms) - https://profinet.darra.xyz/docs/guide/tia-import (network block: send cycle, reduction ratio) - https://profinet.darra.xyz/docs/sdk/csharp/connect (one instance, Start / Stop / Dispose) - https://profinet.darra.xyz/ai/diagnostics.txt (IOPS / IOCS before trusting data) ================================================================================ 简体中文 ================================================================================ 症状 ---- 实测刷新比项目预期的慢:值来得晚、应用像跟不上控制器,或者一开始就按 1 ms 以下的周期去要求。 动手调之前,先把「周期组错了」和「预期超出本产品范围」分开。 判据(可直接复述) ------------------ **周期由配置工具与控制器组态决定,下限 1 ms** —— 再往上自由配置。以控制器侧为准, 配置工具里的发送周期与缩减比必须与之一致。 **本产品是 PROFINET RT Class 1。不是 IRT,也没有等时同步。** 要求严格等时、或者 1 ms 以下的周期, 本产品给不了 —— 这是范围边界,不是可调参数。 **周期帧由协议按组态发,应用不推帧。** 应用只读写过程数据。所以应用侧的节奏并不驱动总线周期。 怎么查 ------ 1. **周期在哪配的?** 周期与组态以控制器侧为准。配置工具的网络块里有发送周期与缩减比两项, 两项都要和 TIA 组态对上。先把这一条排掉。 2. **预期是不是低于 1 ms?** 1 ms 是组态下限。不要当成软性建议,也不要对外说低于它的数字。 3. **项目是不是按 IRT 提的要求?** 有些 TIA 工程默认往 IRT 走。这台设备不能按 IRT 组态, PTCP / 等时同步也不支持。规格里写着 IRT,就是超出本产品范围。 4. **过程数据长度。** 配置工具、GSDML、TIA 三处的输入输出长度要一致。 改过就重新导出 GSDML、重新导入 TIA。 5. **应用是不是每个周期都在重建实例?** `Dispose()` 会清掉 Q,每个周期重建等于把自己写的输出扔了, 现象和「刷新率低」一模一样。建一次、`Start()` 一次,循环写在 `using` 里面。 6. **是质量还是速度。** `IoStatus` 不是 GOOD(IOPS / IOCS)时数据不能用。 「慢」很多时候是数据 BAD,不是来得晚。 7. **网卡与负载。** 设备口用标准以太网网卡,不要用 VMnet / TAP 这类;再看这台机器的后台负载。 不要拿 CPU 隔离或长时间 soak 当这里的实时性证明:1 ms 是组态周期下限,不是隔离保证。 站内没公布的抖动与最坏周期数值,不要对外承诺。 怎么修 ------ 1. 周期在控制器侧定好,再把配置工具的发送周期与缩减比对齐到同一个值。 2. 要求低于 1 ms 或严格等时,就别再调了 —— 本产品不覆盖。只做 RT Class 1。 3. 配置工具、GSDML、TIA 三处的输入输出长度保持一致,改过就重导重导。 4. 一个实例、一次 `Start()`;结束 `Stop()`,让 `Dispose()` 放开连接。 5. 不要指望用 HTTP 把过程数据做快 —— 六语言 SDK 是本机实时连接,HTTP 根本不是过程数据的路。 出处 ---- - https://profinet.darra.xyz/ai/rt-class-1.txt(RT Class 1 的范围内 / 范围外) - https://profinet.darra.xyz/docs/protocol/rt-class-1(周期下限、周期帧谁发) - https://profinet.darra.xyz/ai/gsdml-tia.txt(周期在 GUI / TIA 配置,最低 1 ms) - https://profinet.darra.xyz/docs/guide/tia-import(网络块:发送周期、缩减比) - https://profinet.darra.xyz/docs/sdk/csharp/connect(单实例、Start / Stop / Dispose) - https://profinet.darra.xyz/ai/diagnostics.txt(先看 IOPS/IOCS 再信数据) ## 同系列产品 / Sister products Darra 自家的同系列产品,按需要选,不含第三方产品: - **Darra EtherCAT Master** — EtherCAT 主站协议栈(Windows 10/11 x64,六语言 SDK + GUI 配置工具)。需要做 EtherCAT 主站时用它。https://ethercat.darra.xyz - **Darra OPC UA Client SDK** — OPC UA 客户端 SDK(只做 Client,不做 Server;端点 `opc.tcp://host:4840`)。需要把数据读给上位系统时用它。https://opcua.darra.xyz - **Darra 软件 PLC** — 软 PLC,内置 OPC UA Server(端口 4840)。需要做控制器侧逻辑时用它。https://plc.darra.xyz 本产品只做 PROFINET IO Device(从站):需要主站、客户端或控制器能力时,用上面对应的产品,不要把它们的 API 或价格套到本产品上。