Discussion in "8051 Discussion Forum" started by    chirag5    Sep 24, 2007.
Mon Sep 24 2007, 05:59 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, 06:42 AM
#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, 06:53 AM
#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, 06:55 AM
#4
http://pvbrowser.de/pvbrowser/tar/pvb.tar.gz
u can also download vb codes frm here :-)
Mon Sep 24 2007, 07:15 AM
#5
well i prefer MSCOMM for VB communication with 8051 simple easy and fast to implement..
Mon Sep 24 2007, 07:31 AM
#6
yes serial communication using vb is very easy to implement :-|
Mon Sep 24 2007, 07:50 AM
#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, 03:39 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, 02:13 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, 02:17 AM
#10
where can i get some info about the code to be burned into 8051?

Get Social

Information

Powered by e107 Forum System

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 163, Members: 0 ...

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

Members: 38215
Newest member: Mirza123