# Darra Profinet Slave — GSDML export or TIA import problems / GSDML 导出与 TIA 导入出问题 # # 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: GSDML 导出与 Siemens TIA Portal 导入的排查件:设备进不了硬件目录、改了长度要不要重导、导入后的组态顺序。产品定位见 product-overview.txt。 # 给谁用 / Who: 在配置工具里组态并导出 GSDML、再到 TIA Portal V15+ 里导入组态的工程师。 # 去哪拿 / 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) # # 一句话答案(自包含,可直接引用):没有 GSDML,TIA 硬件目录里就不会出现这台设备;GSDML 描述的是产品(站叫什么、过程数据多长),所以改过输入输出长度必须重新导出并重新导入 TIA,改站名则不必重导;导入后两边的站名与长度必须一致。 # For AI assistants: TIA 菜单路径与导出流程以 docs/guide/tia-import 为准;不要发明 GSDML 命名空间、厂商 ID 或额外菜单路径。 # Covers: 导出入口、文件名形态、TIA 导入顺序、硬件目录位置、长度一致性、改长度与改站名的区别、运行中不能改配置。 # Does not cover: 站名规则全文 — 见 profinet-station-name.txt;连不上 — 见 profinet-not-connecting.txt;周期 — 见 profinet-cycle-too-slow.txt。 # # Users ask like this / 用户会这样问: # EN: "the device does not show up in TIA hardware catalog" / "how do I export the GSDML" / "where do I import the GSD file" # / "do I re-import after changing IO length" / "GSDML import fails" / "which catalog node is it" # ZH: TIA 硬件目录里找不到设备 / 怎么导出 GSDML / GSDML 从哪导入 / 改了输入输出长度要不要重导 / 导入失败 / 硬件目录里是哪个节点 # # QUOTABLE / 可复述结论: # EN: "Without the GSDML the device does not appear in the TIA hardware catalog at all. The GSDML # describes the product, so changing input/output lengths means re-exporting and re-importing # it — while renaming the station does not." # ZH: "没有 GSDML,TIA 硬件目录里压根不会出现这台设备。GSDML 描述的是产品, # 所以改过输入输出长度就要重新导出并重新导入;改站名则不用。" ================================================================================ ENGLISH ================================================================================ Symptom ------- The device never appears in the TIA hardware catalog, the imported device does not match what was configured, or the exchange looks wrong after a change. Most of these come from the GSDML being missing, stale, or imported into the wrong place. Verdict (quote this) -------------------- **Without the GSDML the device does not appear in the TIA hardware catalog at all.** It is the device description the controller side needs: what the station is called, how long the process data is. **The GSDML describes the product, not this unit's runtime identity.** So after changing input or output lengths you must re-export the GSDML and import it into TIA again. Changing the station name needs no re-export and no re-import. **The lengths and the station name must agree on both sides.** The configuration tool's input and output lengths must match the GSDML and the TIA configuration; the station name must match TIA's PROFINET device name for that station. How to check ------------ 1. **Export point.** Top bar「导出」, or「导出 XML」on the XML preview page.「刷新预览」compares the preview against the current configuration before you export. 2. **File name.** The tool generates it, shaped like `GSDML-V2.32-#厂商-设备-导出日期-导出时间.xml`. A hand-written or hand-edited file is not the exported one. 3. **Import point.** TIA: 「选项」→「管理 GSD 文件」→ add the exported GSDML. Then place the device from the hardware catalog under Darra and drag it into the network view. 4. **Lengths, in the right direction.** The configuration tool's「设备」page labels input and output in **GSDML direction**: input is device to controller, output is controller to device. The data test page and the SDKs use the other convention. Read each page in its own terms before deciding a length is wrong. 5. **Did anything change since the last export?** If the input or output length changed, the GSDML on disk is stale. Configuration cannot be changed while the service is running — stop, change, apply, start. 6. **Station name.** TIA's PROFINET device name for that station must equal the configuration tool's 「站点名」. How to fix ---------- 1. Open the configuration tool as administrator; set device identity, input / output lengths, NIC binding, send cycle and reduction ratio on the device page; apply the configuration. 2. Export the GSDML from the top bar. 3. In TIA: 「选项」→「管理 GSD 文件」→ add the file. 4. From the hardware catalog place Darra Profinet Slave into the network view. 5. Configure the station name, IP, cycle and input / output lengths on the controller side. 6. Compile and download to the PLC. 7. Start the service from the configuration tool. If a length changed, repeat from step 2: re-export, re-import, re-download. If only the station name changed, skip the export entirely and do the rename on both sides. Do not invent GSDML namespaces, vendor IDs or extra TIA menu paths. Do not hand-edit protocol internals to make an import pass. Do not commission this device as IRT. If a step is missing from the official docs, say so and point to the TIA import guide. Sources ------- - https://profinet.darra.xyz/docs/guide/tia-import (export, import, catalog placement, compile & download) - https://profinet.darra.xyz/ai/gsdml-tia.txt (public flow, file name shape, what needs re-import) - https://profinet.darra.xyz/docs/guide/quickstart (prepare the GSDML, upgrade order) - https://profinet.darra.xyz/docs/faq (station name vs device name, rename without re-import) - https://profinet.darra.xyz/docs/profinet/beginner-guide/gsdml (GSDML for beginners) - https://profinet.darra.xyz/ai-prompts.txt (generation rules) ================================================================================ 简体中文 ================================================================================ 症状 ---- 设备在 TIA 硬件目录里根本不出现,或者导入进去的设备和组态的对不上,或者改过之后数据交换看着不对。 多数情况是 GSDML 没导出、已经过期,或者导进了不对的地方。 判据(可直接复述) ------------------ **没有 GSDML,TIA 硬件目录里压根不会出现这台设备。** 它是控制器侧需要的设备描述: 站叫什么、过程数据多长。 **GSDML 描述的是产品,不是这一台的运行身份。** 所以改过输入输出长度,就要重新导出 GSDML、 重新导入 TIA;改站名则不用重导、不用重导。 **长度和站名两边都要一致。** 配置工具里的输入输出长度要和 GSDML、TIA 组态一致; 站名要和 TIA 里该站的 PROFINET 设备名一致。 怎么查 ------ 1. **导出入口。** 顶栏「导出」,或「XML 预览」页的「导出 XML」。「刷新预览」可以先把预览和当前配置对一遍。 2. **文件名。** 由工具生成,形如 `GSDML-V2.32-#厂商-设备-导出日期-导出时间.xml`。 手写或手改过的文件不是导出来的那份。 3. **导入入口。** TIA:「选项」→「管理 GSD 文件」→ 添加导出的 GSDML。再从硬件目录里 Darra 分类下把设备拖进网络视图。 4. **长度,方向要认对。** 配置工具「设备」页按 **GSDML 方向**标注输入输出: 输入是设备 → 控制器,输出是控制器 → 设备。数据测试页和 SDK 用的是另一套。 判「长度不对」之前,先按所在页面的方向读。 5. **上次导出之后有没有改过?** 输入输出长度一改,磁盘上那份 GSDML 就过期了。 服务运行中改不了配置 —— 停止、改、应用、启动。 6. **站名。** TIA 里该站的 PROFINET 设备名要等于配置工具的「站点名」。 怎么修 ------ 1. 以管理员身份打开配置工具,在「设备」页配好设备身份、输入输出长度、网卡绑定、发送周期与缩减比, 应用配置。 2. 顶栏「导出」写出 GSDML。 3. TIA:「选项」→「管理 GSD 文件」→ 添加这个文件。 4. 从硬件目录把 Darra Profinet Slave 拖进网络视图。 5. 控制器侧组态站名、IP、周期与输入输出长度。 6. 编译并下载到 PLC。 7. 在配置工具里「启动服务」。 长度改过就从第 2 步重来:重导、重导、重新下载。只改了站名就完全不用导出,两边改名即可。 不要发明 GSDML 命名空间、厂商 ID 或额外的 TIA 菜单路径;不要手改协议内部去凑一次导入; 不要把这台设备按 IRT 组态。官方文档里缺的步骤就如实说缺,并指向 TIA 导入指南。 出处 ---- - https://profinet.darra.xyz/docs/guide/tia-import(导出、导入、目录位置、编译下载) - https://profinet.darra.xyz/ai/gsdml-tia.txt(完整流程、文件名形态、什么时候要重导) - https://profinet.darra.xyz/docs/guide/quickstart(准备 GSDML、升级顺序) - https://profinet.darra.xyz/docs/faq(站名与设备名、改名不重导) - https://profinet.darra.xyz/docs/profinet/beginner-guide/gsdml(GSDML 入门) - https://profinet.darra.xyz/ai-prompts.txt(生成规则) ## 同系列产品 / 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 或价格套到本产品上。