Sonsivri

Electronics => Pic C Languages => Topic started by: luca_l on February 11, 2008, 10:16:50 22:16



Title: use Protocol::Modbus and ccs
Post by: luca_l on February 11, 2008, 10:16:50 22:16
I need some suggestions to use Protocol::Modbus  on pc as a master
and a pic programming with ccs  for slave.
any kind of help is welcome.

thank you very much
Luca

P.S. googling I also found  Java Modbus Library too.
      but now this is planed for a future  project.  ;D


Title: Re: use Protocol::Modbus and ccs
Post by: phu_thanh on February 12, 2008, 10:48:06 10:48
Hi luca_l

If you are familiar with Visual Basic 6. Then visit this website: http://www.modbus.pl/vb.htm
You can download the Modbus RTU Master project in VB6.
There also have a PIC modbus RTU slave project. However it is written and compiled with PICBASIC and HI_TECH C.

phuthanh




Title: Re: use Protocol::Modbus and ccs
Post by: baba on February 12, 2008, 02:43:16 14:43
Hi Luca
I already done a modbus slave using a PIC16f873 and using CSS.
The projects was a modbus IO, in order to received input logic signal and send out logic signal.

bye.
BABA
 


Title: Re: use Protocol::Modbus and ccs
Post by: bogdantk on February 13, 2008, 06:44:05 06:44
Hello Baba
Maybe you will post the project on the forum.
I think it will be interesting for a lot of people.
I look forward.


Title: Re: use Protocol::Modbus and ccs
Post by: Dembo on February 13, 2008, 09:42:38 09:42
Once I found this client/server package from FieldServer Technologies for MCC18. I havn't tried it yet, but looks useful for modbus.

http://rapidshare.de/files/38563892/modbuspw.zip.html

Also some info and utilities on their site:

http://www.fieldserver.com/techsupport/utility/utility.php

 


Title: Re: use Protocol::Modbus and ccs
Post by: titi on June 21, 2012, 07:55:44 19:55
Hi,

This is an implementation of Modbus Slave in MikroC with a P18F45K22.
From LibStock http://www.libstock.com/projects/view/355/modbus-slave (http://www.libstock.com/projects/view/355/modbus-slave)

Download File: http://www.libstock.com/projects/download/355/0/355_modbus_slave_v1.0.0.2.zip (http://www.libstock.com/projects/download/355/0/355_modbus_slave_v1.0.0.2.zip)

Best regards.


Title: Re: use Protocol::Modbus and ccs
Post by: centiane on January 07, 2013, 08:59:44 20:59
Hi, one question.
ModBus is same RS485?

In this case is posible comunication more than 100 meter.

Regards Moises.


Title: Re: use Protocol::Modbus and ccs
Post by: allegro on January 07, 2013, 10:22:50 22:22
Hi, one question.
ModBus is same RS485?

In this case is posible comunication more than 100 meter.

Regards Moises.

If I understood your question correctly.. The modbus protocol is used a lot over rs485 twisted pair communication. Modbus is not rs485. At the expense of lower baudrate you can communicate over a long distance (>100m).


Title: Re: use Protocol::Modbus and ccs
Post by: Ganymed on January 09, 2013, 02:15:41 14:15
RS485 is the physical layer (Layer 1).
Modbus is a protocol on data link layer (Layer 2).

Further informations you can find on http://www.modbus.org.
E.g. Modbus-Specification: http://www.modbus.org/docs/Modbus_over_serial_line_V1.pdf (http://www.modbus.org/docs/Modbus_over_serial_line_V1.pdf)


Title: Re: use Protocol::Modbus and ccs
Post by: centiane on January 09, 2013, 04:46:36 16:46
Ok thank you.
I use RS485 for comunnication PLC and INVERTER (omron).

Regards Centiane.