Discussion in "8051 Discussion Forum" started by    chirag5    Sep 24, 2007.
Mon Sep 24 2007, 11:29 am
#1
Hello!
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?
Please!
Mon Sep 24 2007, 12:12 pm
#2
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, 12:23 pm
#3
http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlModbus.html
just check the above link ,
if u have not ,
hope u can convert c++ codes to vb.net
Mon Sep 24 2007, 12:25 pm
#4
http://pvbrowser.de/pvbrowser/tar/pvb.tar.gz
u can also download vb codes frm here :-)
Mon Sep 24 2007, 12:45 pm
#5
well i prefer MSCOMM for VB communication with 8051 simple easy and fast to implement..
Mon Sep 24 2007, 01:01 pm
#6
yes serial communication using vb is very easy to implement :-|
Mon Sep 24 2007, 01:20 pm
#7
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, 09:09 pm
#8
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..
http://www.modbus.pl/
http://www.modbus.org/
http://www.automatedsolutions.com/

hope that will help you out
Tue Sep 25 2007, 07:43 am
#9
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, 07:47 am
#10
where can i get some info about the code to be burned into 8051?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am