Publish Procedure Failed - Simulink code generation with TwinCAT.tlc Target file
50 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
D Frey
el 9 de Abr. de 2017
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.
0 comentarios
Tuncay ÖLÇER
el 29 de Ag. de 2018
Editada: Tuncay ÖLÇER
el 29 de Ag. de 2018
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.
0 comentarios
Ver también
Categorías
Más información sobre Multicore Processor Targets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!