A problem with deploying a Simulink model to Bachmann M1 PLC
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi all,
I have a problem in deploying a Simulink model to the Bachmann M1 Controller using a custom target and external mode.
The SolutionCenter, M-PLC and TargetManager have already been installed on the PC, and the connection between PC and the PLC is okay. For Simulink, M-Target has been installed. "m1target.tlc" has been chosen as a custom target file description. External mode is enabled.
Now in the 'Hardware' tab, when clicking "M1 Download Settings", the following error appears:
Error: File: M1DownloadSettings.p Line 604 Column 0 Unable to find or import #at.bachmann.app.mtarget.ConfigGroup#. Imported names must end with '.*' or be fully qualified
A week ago, with a different user account on the same PC, I could click "Build for Monitoring" first, and after the build was successful, I could get to "M1 Download Settings" without any error. Now I try it with my own account, which supposedly has the same privileges as the other one, and this time when I try to "Build for monitoring", I meet the following error:
The call to m1target_make_rtw_hook, during the exit hook generated the following error:
Error: File: m1DownloadToTarget.m Line: 113 Column: 8
Unable to find or import 'at.bachmann.app.mtarget.ConfigGroup'. Imported names must end with '.*' or be fully qualified.
The build process will terminate as a result.
Caused by: Error: File: m1DownloadToTarget.m Line: 113 Column: 8
Unable to find or import 'at.bachmann.app.mtarget.ConfigGroup'. Imported names must end with '.*' or be fully qualified.
I have searched it on the internet but found only very few information about using Bachmann with Simulink. One thing that I tried was to use "restoredefaultpath; rehash toolboxcache" commands on the MATLAB command window. But after doing this, it cannot find "m1target.tlc".
I am using MATLAB R2021b on Windows 10.
Does anyone have an idea on what the problem might be?
And also I want to mention that the last time, when it worked in the different user account, the "Deploy" button was actually grayed out. I used "Build for Monitoring" followed by "Connect", and then it was immediately connected to the PLC and ran the code (without me pushing the "start"). However, the other buttons such as "Monitor & Tune", "Deploy", "Stop" were grayed out. Is it normal?
I would appreciate any help.
Best regards,
Kamal Baghirli
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!