本地启动opc服务器​,通过代码可正常读写​数据,但simuli​nk的opc模块找不​到该服务器

1 回表示 (過去 30 日間)
liang sen
liang sen 2024 年 3 月 12 日
回答済み: R 2024 年 3 月 19 日
本地有一个OPC服务器用于测试通讯,matlab作为客户端。通过如下代码可以正常调用:
但在simulink的opc配置中,无法通过IP地址找到该服务器:

回答 (1 件)

R
R 2024 年 3 月 19 日
Hi Liang,
There are different commands for connecting an OPC Server and an OPC UA Server, namely 'opcserverinfo' and 'opcuaserverinfo'. The OPC Data Access Explorer is not available for OPC UA Servers; in this case, you have to manage the access programatically.
A detailed explanation of the same can be found in the following documentation:

カテゴリ

Help Center および File ExchangeServer Connection and Browsing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!