Engee 文档

Modbus TCP Setup

使用Modbus TCP协议配置与服务器(从设备)的连接。

类型: EngeeFunction

图书馆中的路径:

/Interfaces/Modbus/Modbus TCP Setup

资料描述

要使用该块,请安装/更新支持包。 设备

Modbus TCP Setup 它用于使用Modbus TCP协议建立与服务器(从设备)的连接。

港口

无。

参数

Параметры

# Server IP-address: — 连接的 IP 地址

Details
设备运行时必须指定 IP 地址。不支持 FQDN 主机名。
默认值

"127.0.0.1"

程序使用名称

m_host

可调谐

可计算

# Port: — 服务器端口

Details
默认值

502

程序使用名称

m_port

可调谐

可计算

# Response timeout, s: — 从属设备的响应超时(秒

Details
默认值

1

程序使用名称

m_response_time_sec

可调谐

可计算

# Response timeout, µs: — 从属设备的响应超时(微秒

Details
为每个唯一的服务器标识符指定超时值。
默认值

0

程序使用名称

m_response_time_mcs

可调谐

可计算

# Max reconnection attempts: — 模型初始化期间尝试重新连接服务器的次数

Details
默认值

1

程序使用名称

m_max_reconnect_attempts

可调谐

可计算