Look here
http://excontrol.es/Arduino-Domotica-Foro/showthread.php?tid=430&highlight=Conmutadores+y+pulsadores+en+red+Modbus or
https://sites.google.com/site/jpmzometa/arduino-mbrt/arduino-modbus-master