Skip to contentSkip to conversation

Modbus TCP

Xenomai-core Marco Cavallini 2 participants 2 messages Nov 6, 2006

lore
Share & tools
lore
#0 lore raw

Hello,
I wonder if does exist any Modbus TCP or Modbus UDP project for real time (Xenomai or RTAI)

Any hint will be appreciated.

Thank you

Signature · 1 line
/marco
#1 lore raw
Quoted 3 lines · Marco Cavallini

Hello,
I wonder if does exist any Modbus TCP or Modbus UDP project for real time (Xenomai or RTAI)

I'm not aware of specific real-time Modbus implementations, I only heard of some Modbus library for Linux (libmodbus), and then there is also a Java version (jamod.sf.net).

If you want to use TCP, it will be as simple as switching to secondary mode in your Xenomai application and communicate over the Linux TCP/IP stack - it's non-RT anyway then. But when using UDP, libmodbus should (in theory) be applicable in combination with RTnet over the POSIX skin in primary mode (hard RT). You should just audit the time critical paths of libmodbus for RT-safeness. Please share your findings, they might be of common interest!

Jan