MATLAB Answers

Simulink with Modbus TCP in the Realtime Machine

10 views (last 30 days)
Marlon Trujillo
Marlon Trujillo on 26 May 2020
Answered: Diego Kuratli on 7 Jun 2020 at 21:56
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.....

  0 Comments

Sign in to comment.

Answers (2)

Sai Sri Pathuri
Sai Sri Pathuri on 29 May 2020
Edited: Sai Sri Pathuri on 29 May 2020
As a workaround, you may use a MATLAB Function block and use modbus object inside it.

  1 Comment

Marlon Trujillo
Marlon Trujillo on 1 Jun 2020
Matlab functions should not be use it. We need to use interpreted ones. But this is not the answer for the real time topic.

Sign in to comment.


Diego Kuratli
Diego Kuratli on 7 Jun 2020 at 21:56
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.

  0 Comments

Sign in to comment.


Translated by