Solved

Telesis TMC420 Extended Protocol

Posted on 2009-05-06
4
1,905 Views
Last Modified: 2013-11-18
I'm currently working on sending data from our database to a TMC420 controller using VB.NET and Telesis Extended Protocol ActiveX. I'm able to poll the controller for info, send data to its pattern and change its pattern. The problem is when I send the data in a for loop -
For i As Integer = 0 To DataRow.Cells.Count - 1
         Me.AxExtendedProtocol1.Send("V", "0" & (i + 1) & DataRow.Cells(i).Value)
Next
It gives an error -
An unexpected response has been recieved from the controller.
Although the data was succesfully sent to the controller (it displays on the screen). Once I put a message box in the for loop the error goes away. I tried using Thread.Sleep() but using this produces the error aswell. I suspect Send() is able to respond without being interupted by the next Send() operation when a message box displays (doe's the message box halt the program allowing previous executions to continue?). While Sleep() suspends it and is unable to recieve a proper response from the controller, does anybody agree with my theory?
Could somebody please help me to get rid of this anoying error message and avoid using a message box for each loop?

Thanks,
Andrew
0
Comment
Question by:drn
4 Comments
 
LVL 1

Accepted Solution

by:
drn earned 0 total points
Comment Utility
I sent a question to telesis and they responded saying use SendWithResponse() and it works. SendWithResponse waits till a response is revieved before returning to the program. I originally over looked using this because in the extended protocol docs the "V" has no mention of it returning any response.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now