Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Response format error when using the ASCII object to communicate with a Dart ASPII motor controller.

I can't seem to get Lookout to work using a COMM RS232 connection to our Dart controller. When using a term program, i'll send the command RV1,0,6 and get the response 1000,0005. I set up the ASCII object in Lookout with the following:
SEND=Pb5
RequestFormat="%s"
ResponseFormat="%s" (and many other combinations)
RQV1.TXT=TextEntry1
for TextEntry1 I enter RV1,0,6 and I always get that dang response format error!
Any suggestions? Obvious goofs?
0 Kudos
Message 1 of 5
(3,434 Views)
.


What's the Expression you're inserting to read back the response? If you're using just RSV1, you'll get the error. Try RSV1.txt.

For troubleshooting purposes, delete all RSV expressions and the ResponseFormat connection and insert just an Expresssion on ASCII1.Response (where ASCII1 is your Object). This will give you the raw ASCII frame coming in. Then you can start formatting this raw response with appropriate ResponseFormat and RSVs.

Hope this helps,

Khalid 🙂



.
0 Kudos
Message 2 of 5
(3,434 Views)
I cleared out the ResponseFormat entry and set the expression to ASCII1.response. I don't get an error, but I also don't get a response.
0 Kudos
Message 3 of 5
(3,434 Views)
maybe your terminal program attaches a eol or a \n per default to your string and your controller request a \n in the RV1,0,6 command. Try to add \n or similar ones to your command.
0 Kudos
Message 4 of 5
(3,434 Views)
It is possible that there is a timing problem associated with setting up the Response and Request frames for ASCII. After you have set up both frames and the RQV1.TXT data, build in a 5 second wait before you set ASCII.SEND (ie push the button).

I tried to observe this process on screen by setting up expressions to display RQV1, RQV1.TXT, RSV1 and RSV1.TXT, but the answer was not at all clear, as you might expect. The errors stopped almost completely after the 5s wait had been introduced.

You may also wish to add "\x0d" (ie hex code for line feed) to the %s in RQV1.TXT, depending on the needs of your dart controller.
0 Kudos
Message 5 of 5
(3,434 Views)