Query movement question

Hi,

I’m just wondering, is it possible to do "Q " from basicatom?
do I have to connect the tx from the ssc to one of the pin on bot board?

Actually, I did try it but no luck
here is the code:

QueryMovement
SEROUT 15, I38400, “Q”,13]
SERIN 14, I38400, [WAIT (".")] <-- is this how you wait?
RETURN

it is for synchronization, so I don’t have to use pause
I found that T2000 is not exactly 2 sec

If you’re trying to do queries with an atom or stamp you need to make sure you have version 1-06XE.abl of the firmware. It has the proper delays to slow it down for these processors.

With exception of the 20 to 40ms delay before the SSC-32 begins to respond to a command, the T command should be dead on accurate. Do you have any testing to disprove this?

Off the top of my head, I believe that 13 is the number that corresponds with the ASCII carriage return.
If so, then you’ll need a line feed as well.
I can’t remember what that number was, but there’s a ton of places to look that up.

Thanks Jim and Nick for the reply,

I figured out how to do the query.
Stupid me, “Q” only return a single character so I need to do a loop (not waiting for “.”)
As what Jim said before, It is accurate. Sorry my mistake. :blush:

Nick, for the SSC32 ASCII 13 will do, not necessary to add a line feed (ASCII 10)
I did actually make my own sequencer using a line feed.
I forgot that the SSC32 only need “” :laughing:

Huh!

I’m afraid that my information was from a secondary source.
I had read that a line feed was required in an old post (if memory serves, which it probably won’t, SN96 wrote it).

I don’t have any microcontroller experience yet (I’m working on that, though :wink:), but when I use VBE (Visual Basic Express; a .NET language) to talk to the SSC-32, I stick in a “VbCrLf” (stands for Visual Basic Carriage Return and Line Feed).
So, I guess that whether or not a linefeed is used doesn’t matter.

I worte something that was wrong? I don’t recall this. If I did then “My bad!” :laughing:

I think of a line feed the same thing as a carrige return. Sorry if I caused any confusion. :blush: