Discussion in "8051 Discussion Forum" started by    chirag5    Sep 24, 2007.
Mon Sep 24 2007, 05:59 AM
Can u please tell me how to control 8051 microcontroller using VB6 or VB 2005. I want to communicate with 8051 using a graphical interface on a PC. The protocol i am using is MODBUS protocol.
I want to send a message to 8051 from the PC and then 8051 should transmit some data, which is already in its memory bank back to the PC.
Can u tell me where can i get any stuff regarding this. Or Can u help me?
Mon Sep 24 2007, 06:42 AM
chirag5 ,
i could certainly help u if u were using serial com port(RS232) for communication ....,
now since u r using MODBUS i beleive u should use a bitbanging code for modbus..
wait for my next post i'll send u a ref link
Mon Sep 24 2007, 06:53 AM
just check the above link ,
if u have not ,
hope u can convert c++ codes to vb.net
Mon Sep 24 2007, 06:55 AM
u can also download vb codes frm here :-)
Mon Sep 24 2007, 07:15 AM
well i prefer MSCOMM for VB communication with 8051 simple easy and fast to implement..
Mon Sep 24 2007, 07:31 AM
yes serial communication using vb is very easy to implement :-|
Mon Sep 24 2007, 07:50 AM
well yes but u dont use simple mscom port (serial) directly for
industry standard projects..
u have to use modbus if u want to implement somekind of tcp/ip
or other network protocol....
reason => it is faster if u want to send large blocks(chunk) of data.. :-)
Mon Sep 24 2007, 03:39 PM
yeah i know.. also it can be used for long distances.. RS485 is really good did you try googleing? you will surely get stuff..
instead of searching MODBUS, search for RS485 for alternative results...

well here are some reference links which can help you..

hope that will help you out
Tue Sep 25 2007, 02:13 AM
I am using RS485 as physical layer. If i directly connect the RS485 from the com port to 8051 and then transfer some messsage from the PC and Scan the ports of 8051 for serial recieving. Will it work?
Tue Sep 25 2007, 02:17 AM
where can i get some info about the code to be burned into 8051?

Get Social


Powered by e107 Forum System


No messages yet.



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 163, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123