Communicating Trough A RS 232 Comport To A Modbus Protocol Controller?

Apr 19, 2010

I need to interface between a PC and a Microcontroller based Controller to transfer data between the PC and the Controller?

Ive got acces to the register numbers or names in the Microcontroller.


Have A Program Which Will Read Data From Comport When Ever There Is Data On Comport?

Dec 4, 2009

I have a program which will read data from comport when ever there is data on comport. I am using Comport.DataReceived event to do that.My program will receive data very frequently and it is working fine. The problem is, it will work for 3 to 4 days fine but after that my receive data will slow down. I am receiving data with high delay (about 10-15 min).There will be continuous data to my comport.

View 4 Replies View Related

Programmatically Moving Trough Rows In A Datagridview?

Jul 14, 2009

I have a button on the screen 'Next' which performs some activities, but at the end I want to move to the next row in a datagridview to show the user what record they have moved to. I expected this to be easy, using the following code:

Dim CurDGVIndx As Integer = DataGridViewPtList.CurrentRow.Index
DataGridViewPtList.Rows(CurDGVIndx + 1).Selected = True

BUT.... Yes the highlighted record is the next record using this, however the selection (where the little arrow indicator is) stays on the original row.  The selector needs to move too! 

View 4 Replies View Related

Access A Device With Modbus In VB Or C#

May 5, 2010

I'm trying to access a device with modbus in VB or C#. I've been searching all over for a simple way to do it. I know that It would be connecting through a TCP Connection, and I know the address of the device. I need to read the input on it (whether of not it's on), and to toggle the relay on it as well.

View 3 Replies View Related

Develop Modbus RTU Master Program

Jul 11, 2010

I want to develop Modbus RTU Master program ..

I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ...

I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of the bytes are changing the values on COM port so slave is not responding to my command ..


View 8 Replies View Related

Communications :: Develop Modbus RTU Master Program?

Jul 11, 2010

I want to develop Modbus RTU Master program ..I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ... and looking for kind guidance ..I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of them are changing the values on COM port so slave is not responding to my command ..

Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
Dim BYTE1 As Byte = 1
Dim BYTE2 As Byte = 6


View 1 Replies View Related

Driver To Interface With VB That Will Allow To Connect To More Than One Modbus/TCP Device?

Mar 8, 2012

I am developing a software that will monitor/poll serveral Modbus/TCP devices on a network.

I have managed to connect to one device using VB.Does anyone know of a driver or perhaps a 3rd party software I could use that will enable me to connect to more than one Modbus/TCP device?

View 2 Replies View Related

Modbus Data Frame, CR+LF HExadecimal Conversion?

Oct 18, 2010

i m working on an application which communicates with PLC machine using Modbus protocol. Now i m able to generate and communicate a modbus data frame with PLC the only problem that i m facing is that in all the data frames of modbus the last ascii characters should be Carriage return + Line feed which should be read by the PLC as 0D 0A that is in Hexadecimal form. But i m not able to do this. The rest entire string is properly read by the PLC but How do I make it read the CR+LF.

View 2 Replies View Related

How To Change Which Serial Comport Is Being Used In Code

Nov 20, 2010

im currently working on a program which prints serial text to an aplication like note pad. the problem im having is that i cant figure out how to change which serial comport is being used in code. i want the user to chose the comport with a check box.keep in mind that COM1 in my code is what i called my check box. here is my curent code:

Public Class Form1
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
Shell(OpenFileDialog1.FileName, 1)


View 1 Replies View Related

Send An Image File Through COMPORT?

Sep 28, 2009

I would like to ask about sending an image file through serial port to a external embedded processor....

the way i think i want to do it is that i would like to open the image file in VB.NET as a binary file and then

1)either converting this binary file to a text file and then read the content of that text file to sent it through UART to that external processor or

2)Converting the binary file into an array and send that array through uart.[code]...

View 3 Replies View Related

USB Device Identification & Comport Mapping?

May 6, 2007

I have a USB gadget that appears to Windows as a USB serial port, there is no special driver.I know the USB Vendor ID, and the USB Product ID, I need 1 or 2 functions: 

First:    IsThisUsbDevicePresent( Vendor_ID, Product_ID )

Second: Some means of transforming the above into "COM1" or "COM9" or what ever it is so I can call it. And that- should be doable from VB...

View 1 Replies View Related

VS 2008 - Sending Data To A Comport

Nov 2, 2010

I am having trouble sending data to a comport..... I am a noob at this and have been doing my head in... I have done a fair bit to a few programs that I have on the go, but am stuck at sending some data to the comport...

I have in form1 put the serial port contol and added SerialPort1.Open() to that. I have then added 3 buttons that I was to use to send data to the port... Since this is for a radio scanner the buttons turn the backlight on / dim and off.....

LTN is used to turn the light on and works fine in hyperterminal.. I have got the port settings right in vs2008 but the code is wrong.

I have:


Then I get warning of Name 'LTN' is not declared...

View 8 Replies View Related

VS 2008 Send Data From USB To ComPort?

Dec 25, 2009

I have a barcode scanner which sends data to USB Port. I want to redirect it into ComPort. So that I can manipulate it. How can I do It in Visual Basic 2008 Or how to convert usb port to ComPort in Visual basic 2008

View 1 Replies View Related

Coding For Comport Signal To Trigger Event?

Oct 23, 2009

Im connecting a infrared transmitter by serial port, Rs232 to my pc. Anyone know the coding for the comport to detect the signal and auto trigger a sms event(by gsm modem) ??????

View 4 Replies View Related

COMPort Reference In Subroutines VB Express 2008

Sep 21, 2010

I'm trying to communicate through a serial port with separate subroutines for establishing the connection to the device and handling routine messages. I'm able to establish the connection, but reference to the COMPort in another subroutine fails with a message that the port is closed. I can successfully communicate using COMPort.Write commands within the connection subroutine, so I know that works. How do I pass a reference for the comport to other subroutines?


View 6 Replies View Related

Read Data From Comport And Display It In Text Box?

Dec 25, 2009

I am trying to read data from comport and display data in a rich text box.

View 2 Replies View Related

C# - Communicating To Applications On LAN

Jan 3, 2011

I want to code an app with recreational purposes. This should be a Desktop app that detects itself running on other computers on the same LAN and communicates with them. By communication I mean that I should be able to pass anything from on to another. note that although I'm not asking for code (that would beat my purpose, of course) I think some small snippets wouldn't hurt. In any case what I really want is the "recommended procedure", I mean what Microsoft recommends for this environment, and documentation :)

View 3 Replies View Related

Communicating With Printers?

Feb 3, 2009

is there a way through vb visual express 08 to ask a printer if it has toner or paper? im not to sure on how to communicate with printers in this way if it is at all possible.i am writing a program to display the status of the printer and this is key.

View 1 Replies View Related - Communicating With Android C2DM Using .NET?

Mar 8, 2012

I've set up this function in my web app to send push notifications to Android devices:

Private Function SendNotification(ByVal authstring As String) As String
Dim request As WebRequest = WebRequest.Create("")
request.Method = "POST"


However, whenever I call this function, I get the following error message: The remote certificate is invalid according to the validation procedure."

View 1 Replies View Related

Communicating Form.vb And UserControl.vb

Jul 25, 2009

I have Simple application with form1.vb , UserControl1.vb and a simple Dataset with few records included. In my UserControl1.vb I'll added a Bound DataGridView1 with Products Datasource. My question is.. How can i filter the Products table from UserControl1.vb? The Filter Value ("ProdID") is from Form1.vb with textbox1(receive the value.). here is my Form1 code


View 4 Replies View Related

Communicating With Access Database?

Feb 15, 2011

Im new to using databases in my programming and to be honeest i am struggling.i need to get the program to communicate with my database to allow the user to login this is the code i have so far as i say i dont know much about it so its a bit bodged.


View 4 Replies View Related

Communicating With C++ Win32 Application?

Aug 20, 2009

Alright today im going to make a chat program in C++ and will be the server and C++ will be the chat room. Im doing this becuase some people dont have .net and the program fails so im trying this so then everyone can use it. How would i do this? Like C++ sending information to and printing it out on a textbox

View 2 Replies View Related

VS 2008 Communicating Between .NET Applications In The LAN?

Aug 8, 2011

I need to communicate between multiple applications (one server and multiple clients) in the LAN. While googling I came across 3 concepts (TCP/IP, Named Pipes and WCF). I also understand WCF needs lot of study for a starter like me. I need to have one (server) application running on one machine, the values generated by it should be displayed immediately on the other (client) application which will be running on multiple machines in a LAN. Also when the user pauses the process from the client application, it should pause the process on the server application.

View 2 Replies View Related

Continously Reading Data From A Modbus TCP Device And Store Data In A Textfile?

Mar 2, 2012

I have a modbus TCP device that I have managed to connected to through my VB source code.

I want to poll (continueously read) data from certain registers of the device, and store the polled data in a file (text,csv, excel).

View 1 Replies View Related

Communicating Between Multiple Instances Of Application?

Mar 9, 2009

I have an application which the user can open multiple instances on the same machine. However, a section of the app would have sync problems if more than 1 instance has control over it. This is where I thought of transferring control, or sharing, between them. What should I be looking into?

They would have to be able to identify which one of them has control and to send text information over. I thought IPC or Named Pipes could do the trick, but I'm unfamiliar with them and examples seem to indicate only a single server will work. Here, I have multiple instances of the same app and every one of them needs to be able to listen for that request for control.

View 25 Replies View Related

Communicating To A Device Using A USB To Serial Port (VCP)?

Feb 19, 2010

I am communicating to a device using a USB to serial port (VCP). I am having a problem with the usb failing. When the usb fails my app will lock up and the com port is lost. I have seen a post about this but cannot find it.

View 3 Replies View Related

Communicating Via RS232 - Dll / Delphi Win32 Exe?

Sep 23, 2011

I have a Delphi program that communicates with a dll that I created. The dll communicates with a Fluke scope meter via an RS232 connection. I have created a program that communicates correctly via RS232, giving me the anticipated value. Though, when I package this up as a dll and access the dll from my Delphi program I always receive a value of "1", rather than the value I was expecting (most cases a value in and around 240).I know that my delphi program is definitely communicating correctly with the dll and that my dll is definitely communicating with the scope meter

Here is my code:
Public Interface IFlukeComm
Function GetReading(ByVal Command As String, ByVal PortNum As Integer) As String


View 1 Replies View Related

Communicating With Remote Host & Port?

Oct 1, 2009

I've been trying for a long time to do what seems to be the most simplest of things..I have a remote host and I need to know if certain posts on that host are open or closed.Many examples on the net that I have found arent complete, and because I havent worked with for long I dont knowhow to complete them.Here is my code:: The issue is with this it tell me the target port is always closed, when I know that it is open.Code:Dim host As String = "" Dim port As Integer = 80 Dim addr As IPAddress =CType(Dns.GetHostAddresses(host)(0), IPAddress) Try Dim tcpList As New TcpListener(addr, port)tcpList.Start() Catch sx As SocketException MessageBox.Show("port is closed") End TryA friend of mine suggested using WinSock.. I've not dealt with it before so I don't know what he's on about.

View 2 Replies View Related

Communicating With Sharepoint Site On Server?

Jan 10, 2011

I have a project in VB .net 2008 and would like to communicate with a Sharepoint site on our companies SP server. Is it possible to interact with the SP site such as:
Create sub-folder
Upload and download files
Change authority levels on folders

View 5 Replies View Related

VS 2008 Communicating Between Mobile Device And Pc?

Sep 25, 2011

I am basically after some information on what you would believe to be the best way to send strings from a mobile device (possibly a windows mobile phone) to a PC and vise versa. Just so you know the distance could be upto 4 miles and no direct line of sight.

View 6 Replies View Related

What Protocol Should Use For TCP Or UDP

Jan 14, 2011

I'm developing a filetransfer app in VB.Net..The sizes of the files vary, but can get up to 10+ GB.I already create a chat app as a test.On the clientside I run this code to connect to the server.[code]Can I also use this to transfer files?I want the app to work through a firewall and stuff.So I think I need the outgoing data on the client to go through port 80. On the server I want to be able to receive the data on another port (E.g. 8888). Is this possible?And final question is. What protocol should I use for this purpose TCP or UDP.

View 3 Replies View Related

VS 2005 Communicating With A Windows Service Remotely?

Jul 27, 2009

I have created a windows service that monitors power events on the host machine. The next step that i wanted to do was to send custom messages to the service. To do this i have created a windows application and added a service controller control to it (drugged it from the toolbox). Initially i tried to send messages to my machine which worked fine (both the service controller and the service were running on the same machine)

Dim scSL As New System.ServiceProcess.ServiceController("MyFirstService", ".")

but when i tried to send a message to a remote machine on the network

Dim scSL As New System.ServiceProcess.ServiceController("MyFirstService", "machine001")
scSL.ExecuteCommand(128) i got the following error:

"System.InvalidOperationException: Cannot open Service Control Manager on computer 'machine001'. This operation might require other priviledges. ---> System.ComponentModel.Win32Exception: Access is denied.

Anyone knows what priviledges i need to set on the machine that has the service controller? Alternatively can anyone recommend a solution to this issue?

View 6 Replies View Related

VS 2008 Client Server - Communicating Over Sockets

Aug 10, 2011

I am building a client-server type applications and they are communicating over sockets. This is the first time I am doing such a program and I have been learning off a web example and thought I understood it all but it would appear I am missing something as it starts to work then errors. Here is what I have:

Dim serverSocket As New TcpListener(ListeningPort)
Dim clientSocket As TcpClient
Dim netStream As NetworkStream
Dim BytesFrom(1024) As Byte
Dim DataFromClient As String
[Code] .....

All of the above works and if I open up a telnet command window I can connect to my machine running this code on my specified port and in the command prompt window 'IDENTIFY' appears as it should from the above code. But it then gets to this block an errors on the second line:

netStream = clientSocket.GetStream()
netStream.Read(BytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))
DataFromClient = System.Text.Encoding.ASCII.GetString(BytesFrom)

Now as far as I can tell it shouldn't be processing the first line
[ netStream = clientSocket.GetStream() ]
Until I send something back from the client because then going on to the second line its trying to process something that isn't there yet.

The actual error I get is:
Specified argument was out of the range of valid values. Parameter name: size
On the line:
netStream.Read(BytesFrom, 0, CInt(clientSocket.ReceiveBufferSize))

View 8 Replies View Related

VS 2008 Communicating With A VB6 App And A App - Display Predefined Forms

Dec 2, 2009

I have a need to be able to communicate with a VB6 application (I have the source code) whilst it is running. I just need to get it to display some predefined forms. Any tips on how I could achieve it. I was thinking along the lines of using Sockets.

View 1 Replies View Related

Using PTP Or NTP Protocol With Sockets?

May 21, 2012

Can i implement PTP (precision time protocol) or NTP (simple network timing) with sockets?

If so, how can i use them to send small packages (4 to 33 bytes) with the smallest delay possible?

P.S. I would prefer to know more about PTP, I've heard that it has smaller delay.

View 1 Replies View Related

Communicating With A Serial Device Kelba Electronic Balance?

Dec 3, 2011

I am attempting to communicate with set of scales with a vb application that i have written using the comm control. The scales are  a Kelba KHX-30 I can read the data from the scales but i have to manually press a button on the scale.

View 4 Replies View Related

WinForm Communicating - Win Form App Could Call Javascript In The Web Browser?

Jul 13, 2009

We have a web app in a web browser running on an intranet so security is less of an issue. We have a separate win form app. Is there any way the Win Form app could call javascript in the web browser. The browser can't be embedded in the WinForm.

View 12 Replies View Related

Broadcast Video Using Tcp/ip Protocol?

Apr 23, 2011

i have made media player for my own i need code that broadcast video over Lan network "clintes/server "as fast as can.

View 1 Replies View Related

COMM-DRV Handshing Protocol?

Jul 15, 2009

What are the possible handshaking protocol available using COMM-DRV for communication through MODEM

View 5 Replies View Related

Create An Application Protocol?

Jun 21, 2010

Does anyone know how to create a Application Protocol? For example on a web browser you click a link that goes to "steam://appid/5654" it opens the steam application and the same happens with a bitorrent magnet link. How would you do this in VB.NET?

View 1 Replies View Related

Copyrights 2005-15, All rights reserved