Author |
Message |
Topic: modbus tcp/ip implementation |
aroonkriss
Replies: 7
Views: 12943
|
Forum: General CCS C Discussion Posted: Sat Nov 30, 2013 12:13 am Subject: modbus tcp/ip implementation |
Hi,
Everything is working fine now. I am using alternate pins of uart1 of dspic30f3013 (pin no: 11 and 12). i got the correct responses but when i changed the connection back to the main uart1 pin ... |
Topic: modbus tcp/ip implementation |
aroonkriss
Replies: 7
Views: 12943
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 9:54 pm Subject: modbus tcp/ip implementation |
Hi,
Thank you for your reply. i had already developed modbus rtu through serial communication(through COM port). It was successfully tested. Now the requirement from client side has been changed so ... |
Topic: modbus tcp/ip implementation |
aroonkriss
Replies: 7
Views: 12943
|
Forum: General CCS C Discussion Posted: Thu Nov 28, 2013 2:36 am Subject: modbus tcp/ip implementation |
HI,
Thank you very much for your inputs. i had already tried with RTU reply format but without CRC. Still gateway gives the error code '7' -negative acknowledgement. I am not setting this error cod ... |
Topic: modbus tcp/ip implementation |
aroonkriss
Replies: 7
Views: 12943
|
Forum: General CCS C Discussion Posted: Tue Nov 26, 2013 11:50 pm Subject: modbus tcp/ip implementation |
Hi,
i have debugged the code, my code is putting "slave address,func code, byte count and data" to UART1 one by one using fputc(data,UART1);. i tried to watch u1txreg of the pic, but i sho ... |
Topic: modbus tcp/ip implementation |
aroonkriss
Replies: 7
Views: 12943
|
Forum: General CCS C Discussion Posted: Sun Nov 24, 2013 10:10 pm Subject: modbus tcp/ip implementation |
HI,
I am implementing modbus tcp/ip protocol through a serial gateway TSXETG100 (Schneider Electric) in 4 wire connection. I have added the MBAP header to the modbus query and response with referen ... |
Topic: How to set an external oscillator |
aroonkriss
Replies: 1
Views: 10480
|
Forum: General CCS C Discussion Posted: Mon Oct 21, 2013 11:37 pm Subject: How to set an external oscillator |
Hi,
I am using dspic30f3013 with ccs compiler. I need to set an ext. oscillator. I have connected a 20MHz crystal as required in the application.
I have used the following command for oscillator s ... |
Topic: setup_timer2 function of dsPIC30f3013 |
aroonkriss
Replies: 1
Views: 6147
|
Forum: General CCS C Discussion Posted: Sat Jan 12, 2013 2:16 am Subject: setup_timer2 function of dsPIC30f3013 |
Hi,
I need to set up a 3.5 character silent space between message frames for modbus protocol. I am using dspic30f3013. 20MHz clock.
baud rate=9600
each character is 16 bit wide
I calculated ... |
Topic: SFR bit setting |
aroonkriss
Replies: 2
Views: 5644
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2012 11:13 pm Subject: SFR bit setting |
I used the following code and it worked.
#word U1MODE=0x20C
#word U2MODE=0x216
#bit ALTIO = U1MODE.10
#bit U2EN = U2MODE.15
#bit U1EN = U1MODE.15
But I wish to know what was my mis ... |
Topic: SFR bit setting |
aroonkriss
Replies: 2
Views: 5644
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2012 9:49 pm Subject: SFR bit setting |
Hi all,
I need to set individual bits in SFRs. I tried the following code but it didn't work.
#byte U1MODE=getenv("SFR:U1MODE")
#byte U2MODE=getenv("SFR:U2MOD ... |
Topic: Header file p30f3013.h error |
aroonkriss
Replies: 6
Views: 13944
|
Forum: General CCS C Discussion Posted: Fri Dec 28, 2012 10:44 pm Subject: Header file p30f3013.h error |
Hi...
Thank you all for your reply yep that was my mistake. Just a 'fall before the rise'.
Actually I was using the header file C:\Program Files\PICC\Devices\30F3013.h, then I had a prob ... |
Topic: Header file p30f3013.h error |
aroonkriss
Replies: 6
Views: 13944
|
Forum: General CCS C Discussion Posted: Fri Dec 28, 2012 2:28 am Subject: Header file p30f3013.h error |
Hi All,
Anyone knows the answer. It might be simple for you as you have done lot of projects. This is my first project with PIC. No one to guide me. So i can approach only you guys. So please respo ... |
Topic: Header file p30f3013.h error |
aroonkriss
Replies: 6
Views: 13944
|
Forum: General CCS C Discussion Posted: Fri Dec 28, 2012 1:32 am Subject: Header file p30f3013.h error |
Hi
i am using a code for communicating with the UART1 of dsPIC30f3013. For that i have included the header file C:\Program Files\Microchip\MPLAB C30\support\dsPIC30F\h\p30f3013.h
as #include & ... |
Topic: UART1 is not responding - dsPIC30f3013 |
aroonkriss
Replies: 1
Views: 4261
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2012 12:21 am Subject: UART1 is not responding - dsPIC30f3013 |
Hi,
I am using the following piece of code for uart1 communication, sending the command 'G' through MAX233 to UART1. max233 is working fine. But uart1 is not responding. I checked it with uart2 wh ... |
Topic: modbus protocol |
aroonkriss
Replies: 8
Views: 7877
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2012 4:45 am Subject: modbus protocol |
Thank you very much (RF Developer) sir, that was helpful. I got the idea. Thanks a lot. |
Topic: modbus protocol |
aroonkriss
Replies: 8
Views: 7877
|
Forum: General CCS C Discussion Posted: Wed Dec 05, 2012 11:41 pm Subject: modbus protocol- register mapping |
Hi,
Shall I program eeprom for storing the registers data so that I can query with the particular address where I have stored the data ? Or any other method to map particular address to holding re ... |
|