- Optimize Your Model: If your model is complex, try simplifying it or optimizing the calculations and data exchanges.
- Check Your “PLC” Communication: Ensure that the communication between Simulink and your “Beckhoff PLC” is functioning optimally.
- Adjust Real-Time Synchronization Settings: Try tweaking the settings of your “Real-Time Synchronization” block.
Why simulink simulation stop takes so long?
조회 수: 8 (최근 30일)
이전 댓글 표시
I'm developing a Simulink Model that communicates with a Beckhoff PLC for SIL simulation.
To interface the PLC I'm currently use the Beckhoff package developed for Simulink, TE1410 (TE1410 | TwinCAT 3 Interface for MATLAB®/Simulink® | Beckhoff Worldwide). In partciluar, I'm using the "TC Symbol Interface" block. To manage the sample time of the Simulink simulation, it includes the "Real-Time Synconization" block.
The simulation starts and runs very well. No issues. The problem arises when I want to stop it.
The simulation stop takes at least 5 minutes but often I had to terminate matlab from the task manager.
Any advise? Some point that I'm missing?
I already started a thread with Beckhoff support service for additional information.
댓글 수: 0
답변 (1개)
UDAYA PEDDIRAJU
2023년 9월 29일
Hi Val,
I understand the problem, the delay in stopping the Simulink simulation could be due to the complexity of your model, the communication with the “PLC”, or the real-time synchronization settings. Here are some suggestions which could help in reducing the time taken during simulation:
additionally you can look at: Simulation stop time - MATLAB - MathWorks India
Best,
Uday
참고 항목
카테고리
Help Center 및 File Exchange에서 Target Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!