北尔电子MODBUS TCP以太网IP网络

用户指南

1. 简介

本手册介绍了如何将控制器连接到驱动器,以及如何通过 WAGO 寻址进行通信。驱动器作为主站工作。设备寻址采用 WAGO 方式。有关控制器的信息,请参阅当前系统的手册。

2. 发行说明

Ver- sion 发布 描述
5.11 2025 年 XNUMX 月 增加了对新 HMI 平台的支持。
5.10 2017 年 XNUMX 月 增加了对新 HMI 平台的支持。
5.09 2016 年 XNUMX 月 增加了对新 HMI 平台的支持。修正了使用索引时的问题。
5.08 2015 年 XNUMX 月 MX 的范围从 0..1274 增加到 0..3327。已修复重新连接问题。
5.07 2012 年 XNUMX 月 纠正同时读取许多 IX 或 QX 设备时的性能问题。
5.06 2011 年 XNUMX 月 增加了对某些 HMI 型号的 unicode 字符串支持。
5.05 2010 年 XNUMX 月 支持新的 HMI 模型。
5.04 2010 年 XNUMX 月 纠正使用某些 HMI 型号时的启动问题。
5.03 2009年XNUMX月XNUMX日 Fixed reading of MX-devices.
Changed analog input/output modules setting to analog input/out- put words.
5.02 2009 年 XNUMX 月 修复了模拟设备的字符串交换。
在站点属性中添加模拟输入/输出模块列,以便在 HMI 中获得与控制器配置程序相同的寻址。
5.01 2008年XNUMX月XNUMX日 Added controller clock support. Changed default port number. Added support for new HMI models.
通过新设备 SQX、SMX 和 SIX 增加了对单线圈动作的支持。
为标准 Modbus 通信添加了设备 W 和 B。
5.00 2007 年 XNUMX 月 初始版本。

 

3. 免责声明

请注意,自本文档创建以来,控制器协议或硬件可能发生了更改,这可能会影响此驱动程序的功能。因此,请务必测试并验证应用程序的功能。为了适应控制器协议和硬件的发展,驱动程序会不断更新。因此,请务必确保在应用程序中使用最新的驱动程序。

4. 限制

此驱动程序使用 WAGO 寻址。这意味着,如果您的旧项目使用了其他寻址方式,则必须进行地址转换。

5. 连接控制器

5.1. 以太网

5.1.1. 以太网连接

联系

Connection in a network is made according to Ethernet standards.
To extend the network a switch may be used.

笔记
When connecting to the controller, all included symbols are uploaded. Depending on the number of symbols, there could be a delay before the values are shown in the

人机界面。

有关控制器中的设置、电缆规格以及将控制器连接到 HMI 的更多信息,请参阅当前控制器的手册。

连接到控制器 

6. 设置

6.1. 一般规定

范围 默认值 描述
Default station 0 默认控制器的站地址。
Clock register (MW) 0 控制器中存储时钟数据的寄存器地址。

 

6.2. 高级

范围 De- fault value 描述
Enable uni- code 错误的 Enables read/write of unicode characters to the controller. Note that each character in a unicoded string will use two bytes of the memory in the controller.
字节顺序 英特尔 Sets the byte order of the unicode character.
暂停 400 The number of milliseconds of silence on the port before the next retry is sent.
笔记
Certain functions use the HMI as a gateway for pass- ing on communication. These functions, including Transparent mode, Routing, Passthrough mode, Modem, and Tunneling, might need a higher time- out value.
重试 3 Number of retries before a communication error is detected.
Offline sta- tion retry time 10 How long to wait after a communication error before trying to re- store communication.
隐藏通信错误 错误的 Hides the error message that is displayed on communication prob- lem.
命令行选项 Special commands that can be passed to the driver. Available com- mands are described in the chapter Commands below.

 

6.2.1. 命令

此驱动程序没有可用的命令。

6.3. 车站

范围 默认值 描述
车站 0 The reference number used in the devices.
Maximum number of stations that can be configured: 20 Value range: [0-255]
IP 地址 192.168.1.1 The IP address of the connected station.
港口 502 The port number of the connected station.
值范围:[0-65535]
模拟输入 0 The number of analog input words used in the connected station.
值范围:[0-65535]
模拟输出 0 The number of analog output words used in the connected station.
值范围:[0-65535]

 

设置每个站中的模拟字数以匹配控制器中的寻址。
控制器按模拟模块和数字模块的顺序对地址进行排序。
为了在 HMI 中获得与控制器软件相同的寻址,必须为每个站配置模拟字的数量。

例如amp乐: Set the analog output to 2 will make the digital devices to start at QX2.0 and the analog devices will be QW0-QW1.

笔记
尝试读取/写入低于数字设备区域限制的地址可能会导致不良行为。

7. 寻址

驱动程序可以在控制器中处理以下数据类型。

7.1. 数字信号

姓名 地址 读 / 写 类型
物理输出 QX0.0 – QX31.15 * 读 / 写 数字的
物理输入 IX0.0 – IX31.15 * 只读 数字的
易失性 PLC 输出变量 QX256.0 – QX511.15 只读 数字的
易失性 PLC 输入变量 IX256.0 – IX511.15 读 / 写 数字的
残留记忆 MX0.0 – MX3327.15 读 / 写 数字的

* 起始和结束地址取决于为控制器配置的模拟字的数量。

笔记
剩余存储器数字设备采用先读后写的方法。这意味着,当修改某个位时,会读取整个字,修改该字中感兴趣的位,然后将整个字写回控制器。这存在一个潜在风险,即在此过程中控制器本身对这 16 位所做的任何更改都可能丢失。

在数字设备上使用前缀 S 将改为使用单线圈写入功能。这可确保写入操作时不会影响其他位。缺点是一次只能写入一位,因此在修改同一字中的多个位时可能会导致性能下降。

Examp例如:写入 MX12.3 位将写入 MX12.0 至 MX12.15 的所有位,但写入 SMX12.3 将仅写入 MX12.3 位。

7.2. 模拟信号

姓名 地址 读 / 写 类型
物理输出 QW0 – QW255 读 / 写 Analog 16-bit
物理输入 IW0 – IW255 只读 Analog 16-bit
易失性 PLC 输出变量 QW256 – QW511 只读 Analog 16-bit
易失性 PLC 输入变量 IW256 – IW511 读 / 写 Analog 16-bit
残留记忆 MW0 – MW4095 读 / 写 Analog 16-bit

 

7.3. 特殊寻址

姓名 地址 读 / 写 类型
线圈 B 读 / 写 数字的
保持寄存器 W 读 / 写 模拟

The special addresses B and W can be used if the Wago-controller is programmed to use standard Modbus communication (Intel data format).
The B-register is mapped to Modbus coil addresses (00000-) where B0 = 00000, B1 = 00001 etc. and the W-register is mapped to the holding registers (40000-) where W0 = 40000, W1 = 40001 etc.

Note that only Modbus slave station 0 can be used.

7.4. 站寻址

为了与默认站以外的站进行通信,站号作为设备的前缀。

Example
05:QX3.6 addresses Physical Output QX3.6 in station 5.
03:IX23.8 addresses Physical Input IX23.8 in station 3.
QW262 addresses PFC OUT variable QW262 in default station.

7.4.1. 广播电台
站号 0 保留用于广播,这意味着写入地址 0 将同时影响所有从站。由于只能写入站 0,因此引用站 0 的对象在输入值之前将为空。

7.5. 性能
下表显示了每个地址和操作类型每条消息的最大信号数。有关如何优化项目以获得最佳性能的信息,请参阅“高效通信”章节。

地址 浪费
MW/IW/QW/W 125 100 20
B/MX/SMX/IX/QX 125 1 20

 

8. 路由

该驱动程序不支持任何路由模式。

9.导入模块

该驱动程序不支持任何导入模块。

10.高效沟通

10.1. 信号打包
什么时候 tags 在驱动器和控制器之间传输,所有 tags 不会同时传输。而是将它们分成几条消息,每条消息包含 tags 在每条消息中。通过减少需要传输的消息数量,可以提高通信速度。 tags 每条消息取决于所使用的驱动程序。

笔记
每个对象的 ASCII 字符串和数组被打包成一条消息。

笔记
不同的轮询组将影响请求的生成方式。

10.2. 废弃物
为了使信息尽可能高效,两者之间的浪费 tag 必须考虑地址。浪费的是两个 tag 您可以拥有的地址,并将它们保存在同一条消息中。浪费的限制取决于所使用的驱动程序。

笔记
Waste 仅对基于数字的寻址有效,对基于名称的寻址无效。

笔记
只能在两个相似的数据类型之间计算浪费 tags,而不是不同数据类型之间 tags.

场景 1
When integer tags with address 4, 17, 45, 52 are used with waste limit of 20, this will end up creating two messages.
First message with address 4 and 17 (tag address difference is 13 <= 20).
Second message with address 45 and 52 (tag address difference is 7 <= 20).

Reason: Difference between 17 and 45 is more than the waste limit of 20, hence creating 2nd message.

场景 2
When integer tags with address 4, 17, 37, 52 are used with waste limit of 20, this will end up creating one message.
Reason: Difference between the consecutive tags 小于或等于浪费限制 20,因此创建一条消息。

结论
Scenario 2 is more efficient than scenario 1.

高效沟通

11。 故障排除

11.1. 错误消息

驱动程序显示的控制器错误消息的含义。

错误信息 描述
Bad Reply 驱动程序收到意外响应。请验证设备是否存在,以及其地址是否在所连接控制器的有效范围内。
通信错误 Communication fails. Check communication settings, cable and station num- ber.
非法电台 驱动程序正在尝试访问以太网站中未在站配置中定义的设备。

规格

  • 驱动程序版本:5.11
  • 日期:15 年 2025 月 XNUMX 日

故障排除

11.1. 错误消息

If you encounter error messages during communication, refer to the troubleshooting section of the manual for solutions.


常问问题

问:无法与控制器建立连接怎么办?

A: Check the Ethernet connection, ensure the controller is powered on, and verify the IP settings.

文件/资源

北尔电子MODBUS TCP以太网IP网络 [pdf] 用户指南
v.5.11,MODBUS TCP 以太网 IP 网络,MODBUS TCP,以太网 IP 网络,IP 网络,网络

参考

发表评论

您的电子邮件地址不会被公开。 必填字段已标记 *