Author |
Message |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Wed Jun 23, 2010 11:25 pm Subject: modbus |
modbus master board connected to the modbus slave board. |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2010 11:29 pm Subject: modbus |
I am using
c:\program files\picc\examples\ex_modbus_master.c
and in that file I included modbus.c also.
And it is working fine with RS232 interface. Problem arises only when it changed to rs485 ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2010 4:32 am Subject: modbus |
Thanks for your advice.
I referred the schematic diagram. And I checked rs485 communication without modbus. The transmission and reception was working perfect. But when changed to modbus and then con ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Sat Jun 19, 2010 5:26 am Subject: modbus implementation |
hi Humberto,
Thanks for your advice.
Now I changed my connection.
One more doubt what should be the hardware connection for DE and RE pin of Max485?As per code
#define MODBUS_SERIAL_ENABLE_PIN 1 ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Thu Jun 17, 2010 2:06 am Subject: Modbus implementation |
hi Humberto,
Thanks for your reply.
I tried RS485 communication with out modbus.
And my master able to transmit data successively.
Then I switched to modbus. And at that time also it sending some ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2010 12:07 am Subject: modbus implementation using rs485 |
hi humberto,
Thanks for your cooperation.
Actually my code was working perfectly with rs232 interface.
But now I want to change it to rs485.
So I did only 1 modification in my code like this
#d ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 5:51 am Subject: Modbus implementation |
I tried with the modifications you given.
#define USE_WITH_PC 1
#include <16f877a.h>
#device *=16
#device ADC=10 //For 10 bit ADC
#fuses HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTE ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 1:43 am Subject: Modbus implementation |
In my code I am using like this:
#ifndef USE_WITH_PC
#use rs232(baud=57600, xmit=PIN_C6, rcv=PIN_C7, stream=PC, errors)
#define MODBUS_SERIAL_INT_SOURCE MODBUS_INT_EXT
#define MODBUS_SER ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2010 1:24 am Subject: modbus implementation using rs485 |
Hi
In my Max485 connection I shortened RE and DE pin and it connected to PIN B5 of the pic16f877a, where RE is the receiver output enable and DE is the driver output enable. And in order to use Ma ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Sat Jun 12, 2010 5:53 am Subject: Problems when implementing modbus with rs485.... |
hi all
I successively done modbus implementation. But unfortunately the same code is not working when I am using max485 instead of max232. Can anybody help me?? Thanks in advance. |
Topic: Some unexpected action with timer |
anupama619
Replies: 2
Views: 3503
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 2:09 am Subject: Some unexpected action with timer |
Hi all ,
I am in a great confusion.
Can anybody help me??
In my project I am using timer 0.
So I wrote a sample program for checking the timer 0 interrupt.
But my timer isr executing continuou ... |
Topic: Increase the execution speed for PIC16f877a |
anupama619
Replies: 5
Views: 6521
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2010 7:32 am Subject: Increase the execution speed for PIC16f877a |
Hey all,
I am using PIC16F877A and a crystal of value 20MHz. I want to increase the execution speed. Can I use a crystal greater than 20MHz ? |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Sat Nov 07, 2009 5:14 am Subject: modbus implementation help |
Thanks for your reply...
Now I am using 20Mhz crystal and it is working.... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Mon Nov 02, 2009 5:26 am Subject: modbus implementation problem |
sir,
Now my project is over. But the modbus communication speed is not sufficient for my application. I tried with a baud rate of 19,200.But unfortunately it also not sufficient. A baud rate greater ... |
Topic: Modbus implementation |
anupama619
Replies: 86
Views: 110605
|
Forum: General CCS C Discussion Posted: Mon Oct 26, 2009 4:05 am Subject: modbus implementation help |
Sir,
Thanks for your reply.
I changed the code by using #separate. Now it is working. |
|