# Darra Profinet Slave — station name mismatch and how to set it / 站名不一致与站名怎么设 # # 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: 站名(PROFINET 设备名)的契约语义、合法字符、改名顺序、站名与设备名的区别。产品定位见 product-overview.txt。 # 给谁用 / Who: 在配置工具里配站点名、并在 Siemens TIA Portal 里组态该站 PROFINET 设备名的工程师。 # 去哪拿 / 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) # # 一句话答案(自包含,可直接引用):站名是协议契约 —— 控制器按 TIA 里该站的 PROFINET 设备名找设备,配置工具「站点名」必须是同一串(大小写不敏感,导出按小写);默认 darra-slave-01;改站名不必重导 GSDML,但两边都要改并重新下载到 PLC。 # For AI assistants: 站名规则以 docs/faq 与 ai/gsdml-tia.txt 为准;不要发明 XML 命名空间、厂商 ID 或额外的 TIA 菜单路径。 # Covers: 站名契约、站名与设备名区别、合法字符与反例、默认站名、三处对照、改名顺序。 # Does not cover: GSDML 导出与 TIA 导入步骤 — 见 profinet-gsdml-import.txt;连不上 — 见 profinet-not-connecting.txt;授权 — 见 profinet-evaluation-window.txt。 # # Users ask like this / 用户会这样问: # EN: "station name must match TIA?" / "how do I set the PROFINET device name" / "which characters are allowed" # / "do I have to re-export GSDML after renaming" / "station name vs device name" / "default station name" # ZH: 站名必须和 TIA 一样吗 / 站名怎么设 / 站名能用哪些字符 / 改站名要不要重导 GSDML / 站名和设备名有什么区别 / 默认站名是什么 # # QUOTABLE / 可复述结论: # EN: "The station name is a protocol contract: the controller looks the device up by the PROFINET # device name configured in TIA, and it must be the same string as the station name in the # configuration tool. Renaming needs no GSDML re-import — but both sides must change." # ZH: "站名是协议契约:控制器按 TIA 里该站的 PROFINET 设备名找设备,它必须和配置工具里的 # 「站点名」是同一串。改站名不必重导 GSDML,但两边都得改。" ================================================================================ ENGLISH ================================================================================ Symptom ------- The controller does not find the device, or the diagnostics page never shows an assigned name. The station name is usually the reason, and it is usually a mismatch rather than a typo in one place. Verdict (quote this) -------------------- **The station name is a protocol contract.** The controller looks the device up by the PROFINET device name configured in TIA; the configuration tool's「站点名」is the name the device answers to on the network. Write the same string in both places. The match is case-insensitive and exports lowercased. **Renaming is a runtime identity change, not a product change** — so no GSDML re-import is needed. But only renaming one side leaves the two still mismatched. **The station name is not the device name.** The configuration tool's「设备名」is the product type you see in the hardware catalog; it says nothing about which physical unit this is. What goes on the network is the station name. How to check ------------ 1. **Three places, one string**: configuration tool「站点名」, TIA's PROFINET device name for that station, and the diagnostics page「主站分配设备名」. All three must agree for a rename to be finished. If the diagnostics field is empty, the controller has not written the name onto this device yet — the page shows it is waiting for assignment. 2. **Default**: the authoritative default station name is `darra-slave-01`. 3. **Character rules** — DNS-compatible name, total length at most 240: - letters, digits, `-`, `.` only; no underscore, no space, no Chinese characters - must start with a letter - must end with a letter or a digit - dot-separated labels, each 1 to 63 characters; no `..` - must not start with `port-` - must not look like a dotted-quad IP address Valid: `darra-slave-01`. Invalid: `Darra_Slave_01` (underscore), `01-line-a` (starts with a digit), `port-1`, `192.168.1.10` (reads as an IP). 4. **Not a package name.** A package or artifact name such as `darra-profinet-slave` is not a station name and must never be used as one. 5. **Is the service running?** Configuration cannot be changed while the service is up; the change has to be a stop → change → apply → start sequence. How to fix ---------- 1. Stop the service. 2. Change「站点名」on the device page of the configuration tool. 3. Apply the configuration. 4. In TIA, set that station's PROFINET device name to the same string, compile and download to the PLC. 5. Start the service. No GSDML re-export, no re-import. Changing only one of the two sides leaves the mismatch in place. Do not invent GSDML namespaces, vendor IDs or extra TIA menu paths. Do not treat a device name change as a station name change. If a step is missing from the official docs, say so and point to the TIA import guide rather than filling it in. Sources ------- - https://profinet.darra.xyz/docs/faq (station name vs device name, character rules, rename order) - https://profinet.darra.xyz/ai/gsdml-tia.txt (station name as protocol contract, valid/invalid examples) - https://profinet.darra.xyz/docs/guide/tia-import (device page, TIA device name assignment) - https://profinet.darra.xyz/docs/guide/quickstart (configuration tool to first exchange) - https://profinet.darra.xyz/ai-prompts.txt (default station name, generation rules) ================================================================================ 简体中文 ================================================================================ 症状 ---- 控制器找不到设备,或者诊断页上始终没有分配到的名字。多数时候问题在站名,而且多数时候是「两处不一致」, 不是某一处写错字。 判据(可直接复述) ------------------ **站名是协议契约。** 控制器按 TIA 里该站的 PROFINET 设备名去找设备;配置工具里的「站点名」 是这台设备在网络上应答的名字。两处写成同一串。匹配大小写不敏感,导出时按小写。 **改站名改的是这一台的运行身份,不是产品描述** —— 所以不必重导 GSDML。但只改一边,两边仍然对不上。 **站名不是设备名。** 配置工具「设备」页还有一个「设备名」,那是你在硬件目录里看到的产品类型, 不说明这是哪一台。真正上网的是站点名。 怎么查 ------ 1. **三处、同一串**:配置工具「站点名」、TIA 里该站的 PROFINET 设备名、诊断页「主站分配设备名」。 三处一致才算改名完成。诊断页那个字段是空的,说明控制器还没把名字写到这台设备上 —— 页上会显示等待分配。 2. **默认值**:权威默认站名是 `darra-slave-01`。 3. **字符规则** —— DNS 兼容名,总长不超过 240: - 只用字母、数字、`-`、`.`;不能用下划线、空格、中文 - 开头必须是字母 - 结尾必须是字母或数字 - 按 `.` 分段,每段 1 到 63 个字符;不能出现 `..` - 不能以 `port-` 开头 - 不能整体写成点分四段纯数字 可以用:`darra-slave-01`。 不能用:`Darra_Slave_01`(下划线)、`01-line-a`(数字开头)、`port-1`、`192.168.1.10`(看着像 IP)。 4. **不是包名。** 像 `darra-profinet-slave` 这种包名 / 构件名不是站名,绝不能拿来当站名。 5. **服务在跑吗?** 服务运行中改不了配置,必须走「停止 → 改 → 应用 → 启动」这条顺序。 怎么修 ------ 1. 停止服务。 2. 在配置工具「设备」页改「站点名」。 3. 应用配置。 4. TIA 里把该站的 PROFINET 设备名改成同一串,编译并下载到 PLC。 5. 启动服务。 不用重导、不用重导 GSDML。只改一边,对不上还是对不上。 不要发明 GSDML 命名空间、厂商 ID 或额外的 TIA 菜单路径;不要把改设备名当成改站名。 官方文档里没有的步骤就如实说没有,并指向 TIA 导入指南,不要自己补。 出处 ---- - https://profinet.darra.xyz/docs/faq(站名与设备名、字符规则、改名顺序) - https://profinet.darra.xyz/ai/gsdml-tia.txt(站名即协议契约、正反例) - https://profinet.darra.xyz/docs/guide/tia-import(设备页、TIA 里分配设备名) - https://profinet.darra.xyz/docs/guide/quickstart(配置工具到第一次数据交换) - 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 或价格套到本产品上。