필터 지우기
필터 지우기

OPC configuration error: cannot get server list. Operation returned"Null Pointer"

조회 수: 23 (최근 30일)
lai
lai 2014년 4월 22일
댓글: Luis Gualpa 2017년 8월 18일
Matlab version 2012a. I opened a simulink model on my new windows 7 X64 computer. When I configurate the 'OPC configuration' block, the ERROR "IOPCCommon: class not registered" occurred. The OPC server was created by "CoDeSys OPC configurator"(CoDeSys is the programming software for ABB PLC). The OPC client test software "SOClient.exe" succed in connecting to the OPC server and so does one Chinese upper computer software "KingView". The Simulink model functions well on my old computer, with Windows 7 X32, Matlab 2012a. Then I try to creat a new model and add a new OPC server, an ERROR "can not get server list.Operation returned 'Null Pointer'" occurred.
Can someone tell me how to solve it? Thanks a lot.

답변 (2개)

Muhammad
Muhammad 2014년 11월 25일
I received the same error while trying to communicate MATLAB with WAGO PLC using KepServer. I have solved this problem by first initializing the OPC toolBox.
You have to write the following command in the workspace.
opcregister
After that, my problem is solved and server created on my laptop was picked up by OPC Configuration function block

Michal Zielinski
Michal Zielinski 2015년 11월 8일
Hi, I have the same error (OPC Configuration Error). Command opcregister didn't help (opcreset, opcregister('repair') also) Could anybode help me?
thx

카테고리

Help CenterFile Exchange에서 Unified Architecture에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by