Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recommnedation for Simulink internal MODBUS interface design

Status
Not open for further replies.

riceman0

Mechanical
May 28, 2008
3
US
Hello there. We are designing a Simulink model that will run on an embedded target and talk MODBUS TCP to other
devices. I've been tasked with creating the MODBUS portions and others are writing logic that will sometimes want to
read and write (TBD) data to other devices.

I've managed to install MODBUS libraries and create a CMEX SFunction block which can call the library to set up coils
and registers and read and write to the network.

However, I'm more used to structured text programming than Simulink programming, and although I am used to setting up
useable comm interfaces for others in C or java, I'm not sure what the best way is to set up a flexible/convenient
communication interface within Simulink.

Does anyone have any ideas or examples on a good way to set up a comm interface within Simulink for general use? Me,
and my associate who is writing actual operational logic that will use my interface, would appreciate any thoughts.

Thanks VERY much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top