フィルターのクリア

OPC configuration block reports no OPC servers

7 ビュー (過去 30 日間)
impero vittorio eboli
impero vittorio eboli 2021 年 7 月 7 日
コメント済み: Alaa Abderrahim 2024 年 5 月 28 日
Hi,
I'm writing this post because I tried every possible option shown in the support. I was trying to estabilish a connection on my localhost between the program CODESYS and Simulink, wich is supposed to read some values from the server I created using CODESYS. When I try to configure a client by clicking "configure OPC clients" --> " add... " --> "select... " a warning is shown:
" Host 'localhost' reports no OPC servers "
I think this is very strange, because I succeded (using the command window) to connect to the same server previously mentioned and even read the variables I needed!
Is there any way to know what I should type inside the textbox to bypass the Simulink automatic local inspection?
Alternatively how can I solve the problem?
I tried to re-register OPC foundation core components and to configure properly DCOM. To be honest, I'm beginning to think that there's no solution :(
Thank you for your help!

回答 (1 件)

Yatharth
Yatharth 2024 年 5 月 6 日
Hi,
It's important to prior to MATLAB R2024a, MATLAB does not extend support for OPC UA blocks within Simulink. Consequently, the OPC Read block that is available in these versions is designed exclusively for connections to OPC DA servers. This is the underlying reason for the challenges you are facing in connecting to an OPC UA server.
Starting with R2024a, the Industrial Communication Toolbox has introduced support for OPC UA Servers in Simulink, using OPC UA Read and Write Blocks.
  1 件のコメント
Alaa Abderrahim
Alaa Abderrahim 2024 年 5 月 28 日
I am already using MATLAB R2024a and I still get the same problem

サインインしてコメントする。

カテゴリ

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!

Translated by