Modbus RTU client

XCore Project reviews, ideas, videos and proposals.
User avatar
Lele
Active Member
Posts: 52
Joined: Mon Oct 31, 2011 4:08 pm

Modbus RTU client

Post by Lele »

Version: 2
Status: Complete
License: BSD
Download: /files/project_builds/app_ModbusRtuClient.zip

Here it is an implementation of modbus rtu slave protocol.
All basic functions implemented:
1) read coils; 2) read input; 3) read holding register; 4) read input register; 5) write single coil; 6) write single register; 7) read status; 15) write multiple coil; 16) write mulltiple register.
Direction port provided for the RS485 converter.
Also a buffered rx/tx uart interface with configurable speed , n.of bata bits, parity, stop bits. 
User avatar
infiniteimprobability
Verified
XCore Legend
Posts: 1145
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

Nice - thanks for sharing. What did you use to test it?
 
Engineer at XMOS
User avatar
Lele
Active Member
Posts: 52
Joined: Mon Oct 31, 2011 4:08 pm

Post by Lele »

Tested with Modscan and Radzio.
Please downolad latest version because I fixed a bug in the uart timing.