stlehmann / pyads

Python wrapper for TwinCAT ADS
MIT License
252 stars 93 forks source link

Failed to open port on AMS router #316

Closed summerxiahuang closed 2 years ago

summerxiahuang commented 2 years ago

My PLC works fine with TwinCat. However, when I follow the tutorial of pyads: plc.open(), I always get the the RuntimeError: Failed to open port on AMS router. I already checked the AmsNetId, ip address.

Thank you for you suggestion!

chrisbeardy commented 2 years ago

Have you followed the instructions for creating a route? https://pyads.readthedocs.io/en/latest/documentation/routing.html

chrisbeardy commented 2 years ago

If you are running pyads on the same windows pc as TwinCat is running on then please follow my advice in #315

chrisbeardy commented 2 years ago

@stlehmann @Summerxiaxia623 can this be closed?

summerxiahuang commented 2 years ago

Yes, you can close this. Thanks!Sent from my T-Mobile 4G LTE Device -------- 原始信息 --------发件人: chrisbeardy @.> 日期: 2022/5/31 上午4:45 (GMT-05:00) 收件人: stlehmann/pyads @.> 抄送: Summerxiaxia623 @.>, Mention @.> 主题: Re: [stlehmann/pyads] Failed to open port on AMS router (Issue #316) @stlehmann @Summerxiaxia623 can this be closed?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>