Simulink with Modbus TCP in the Realtime Machine

조회 수: 34 (최근 30일)
Marlon Trujillo
Marlon Trujillo 2020년 5월 26일
답변: Diego Kuratli 2022년 6월 10일
I saw that there is no Modbus block in Simlunk, and checked the blocks of the Simulink Real Time and could not find it either. How we can create a model that uses modbus to comunicate to the controller if there is no Modbus compatibility in Simulink? The instrument toolbox only can use MATLAB and not Simulink, which I did not know when I bought it.....

채택된 답변

Diego Kuratli
Diego Kuratli 2022년 6월 10일
Modbus TCP support for Simulink Real-Time is provided by Speedgoat:

추가 답변 (3개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 5월 29일
편집: Sai Sri Pathuri 2020년 5월 29일
As a workaround, you may use a MATLAB Function block and use modbus object inside it.

Diego Kuratli
Diego Kuratli 2020년 6월 7일
Modbut TCP support for Simulink Real-Time requires a dedicated I/O module from Speedgoat, see:
The regular Ethernet ports on the target machine can be used for UDP/IP, TCP/IP, PTP, and EtherCAT Master only.

Fernando Liozzi
Fernando Liozzi 2020년 7월 7일
Hi, I need Simulink Modbus blocks for code generator,that is, generate code to implement modbus in microcontrollers, using simulink code generation., is this possible?
Thanks.
  댓글 수: 3
Fernando Liozzi
Fernando Liozzi 2020년 9월 10일
Thank you very much for answering. I have already managed to port freemodbus 1.6 to all my microcontrollers, PIC18, dsPICs, Cortex M3 / M4.
Regards.
Fernando.
Bartosz Soltowski
Bartosz Soltowski 2021년 8월 30일
Hi Fernando,
I want to generate Simulink model for Cortex M3 microcontroller which will provide communication using Modbus protocol. Could you please give me some indication how did you do it? Did you use Modbus Explorer at all?
Thanks,
Bartosz

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

카테고리

Help CenterFile Exchange에서 Development Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by