【问题标题】:ADSError: target machine not found Missing ADS routes (7)ADSError: target machine not found Missing ADS routes (7)
【发布时间】:2022-01-08 01:17:24
【问题描述】:

我有两台带有 TwinCAT3 的 Windows10 机器在公共 LAN 中。 使用 pyads 来读写 vars。

import pyads

plc = pyads.Connection('192.168.137.1.1.1', pyads.PORT_TC3PLC1)
plc.open()
plc.read_by_name('GVL.var1')

My ADS ID IP地址:192.168.137.1

在本地PC上读写。但是,如果尝试在第二台 PC(IP 192.168.137.123)上运行脚本,则会出现错误:ADSError: target machine not found Missing ADS routes (7)。 计算机从任一侧 ping。

如果 Windows 上没有安装 TwinCAT,我是否可以通过 ADS 连接到 PLC(使用 TwinCAT3)?

【问题讨论】:

    标签: python python-3.x plc twincat twincat-ads


    【解决方案1】:

    您在两台主机之间缺少一条 AMS 路由。您必须在 ADS 客户端和 ADS 服务器之间创建 AMS 路由。

    阅读documentation from PyAds 和documentation from Beckhoff。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 2015-06-07
      • 2012-07-10
      相关资源
      最近更新 更多