>Hi piclisters, > >I have a project where i intend to implement Modbus protocol. >The PIC device will be the slave. >Has anyone already implemented this and is there code already available as >it would save hacking it from scratch. > >Any help would be appreciated. > >Regards > >Duncan Sinclair Hi Duncan, I am using Modbus on the 16C77 and 16C74, my code is very application oriented, I don't implement all the various function codes, I just implemented the ones I needed, specifically ReadHoldingRegister and WriteHoldingRegister. My code is written in HiTech C. If you are **REALLY** desperate I can email you a copy. I suggest that you take a look at http://members.tripod.com/~mbserver/index.htm There is a free windows modbus master that might help. Also http://www.modbus.org has lots of usefull stuff. Regards, Ray Ray Gardiner ray@dsp.com.au