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

Postby Lele » Sun Mar 01, 2015 9:37 am

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
XCore Legend
Posts: 1124
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Thu Mar 05, 2015 11:24 am

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

Postby Lele » Thu Mar 05, 2015 12:35 pm

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

Who is online

Users browsing this forum: No registered users and 0 guests