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

可调谐

可计算