필터 지우기
필터 지우기

Publish Procedure Failed - Simulink code generation with TwinCAT.tlc Target file

조회 수: 34 (최근 30일)
fodor
fodor 2016년 3월 30일
편집: Tuncay ÖLÇER 2018년 8월 29일
I would like to develop an application in Matlab/Simulink which will be integrated in TwinCAT by TcCOM modules (code generation with TwinCAT.tlc target file).
I have some problems in the PUBLISH PROCEDURE!!!
First of all, I have to mention that I passed through all the steps mentioned in the TwiCAT – Simulink Handbook (see on page 9: https://download.beckhoff.com/download/document/automation/twincat3/TwinCAT_3_Matlab_Simulink_EN.pdf ). The next steps are accomplished:
- Matlab R2015b is installed;
- TwinCAT 3 is installed and embedded in Visual Studio 2013;
- Microsoft Windows Driver Kit is installed (WinDDK 7600.16385.1)
- Twincat 3 Target for Matlab/Simulink (TE1400) is installed and embedded in Matlab;
- The necessary licenses are activated;
The application is very basic, it has an INPUT and an OUTPUT block, a SUM and a CONSTANT block.
The Simulink model have been configured as:
- Solver: Fixed Step solver (ode3) with 0.005 fixed-step size;
- Code Generation: TwinCAT.tlc System target file;
- Code Generation -> Tc Build: Publish Module CHECKED
When I try to Build Model, Simulink returns the next error message:
‘Publish Procedure Failed – MGFcn:43’
and in the .txt file the next error is written: 'error MSB3231: Unable to remove directory'. See the .txt attached.
If I leave the Publish Module UNCHECKED, Simulink generates C++ code without errors. But, I need to have TcCOM modules.
I hope that I delivered all the necessary information.
  댓글 수: 2
Shamila Devi
Shamila Devi 2016년 9월 17일
i got the same problem...any suggestion regarding this error?
Yousef Hamed
Yousef Hamed 2017년 8월 16일
i got the same problem...any suggestion regarding this error?

댓글을 달려면 로그인하십시오.

답변 (2개)

D Frey
D Frey 2017년 4월 9일
I got another error message which i could solve. I'm not sure, if your error is generated by this problem but I think you will have to do this later anyway.
I had to make a certificate for "Signing Certificate for x64 Windows Loader". There is help in the handbook of Beckhoff for doing this (infosys.beckhoff.com -> TwinCat 3 -> TE1000 XAE -> C/C++ -> Preparation - just once! -> x64: driver signing)
I could then Import the TcCOM module in TwinCat. But now TwinCat sends me errors:
Error 14 09.04.2017 17:33:07 219 ms | 'TwinCAT System' (10000): Error starting MotorsteuerungSimulation server. Win32 Error: 577 (Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be mali...
Error 18 09.04.2017 17:33:07 300 ms | 'TwinCAT System' (10000): Error stopping MotorsteuerungSimulation server! Win32 Error: 1062 (The service has not been started. ).
Error 19 09.04.2017 17:33:07 318 ms | 'TwinCAT System' (10000): Error stopping TCRTIME server! Win32 Error: 1062 (The service has not been started. ).
Hope there is anyone that can help me.

Tuncay  ÖLÇER
Tuncay ÖLÇER 2018년 8월 29일
편집: Tuncay ÖLÇER 2018년 8월 29일
If you get this error, you can solve it by repeating the steps for signing of the Test Certificate for Beckhoff TWINCAT. To do this follow the steps described here in the link: Beckhoff Test Signing Certificate Even you will need to repeat this process again if you change you windows password or administrator settings.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by