PDA

View Full Version : Error code



bbdelhomme
11-27-2006, 04:56 PM
I am currently developping application requiring communication between BS2e and SSC-32 (from Lynxmotion).
Working with Windows BS2e terminal when I try to "run "·an updated·release·I got a message:"Error:102-Expected termination"

What does it mean ?
I understand that previous release is still working. What can I do to force it to terminate?

Many thanks for your help

Bernard

Chris Savage
11-28-2006, 01:53 AM
Hello,
·
·· Please provide more details and/or the code you’re having problems with.· Also, what version of the editor are you using?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support

bbdelhomme
11-28-2006, 04:02 AM
Hi Chris,

1- The codes are as follow:

' {$STAMP BS2e}
' {$PBASIC 2.5}
' {$PORT COM1}
servo0pw VAR Word
movetime VAR Word

servo0pw=1000
movetime = 1000

start:
servo0pw=800
SEROUT 0\1,16780,["#",DEC 0,"P",DEC servo0pw, "T",DEC movetime,CR]
PAUSE 2500
servo0pw=2500
SEROUT 0\1,16780,["#",DEC 0,"P",DEC servo0pw,"T", DEC movetime,CR]
PAUSE 2500

END

2- Regarding software, I assume you refer to BS2e software. I download it from your Web site. The version is 2.2.6.

Don't hesitate to ask me more detail if rerquire.

Many thanks in advance for your advise.

Bernard

Bruce Bates
11-28-2006, 04:39 AM
Bernard -

The program is syntacticly correct, and passes through the PBASIC IDE with no errors, so the problem must be elsewhere.

Are you sure com port 1 is available?

Regards,

Bruce Bates

bbdelhomme
11-28-2006, 05:00 AM
Bruce,

I used this port for direct communication to SSC-32 and it was running well.
With BS2e, I assume it is running well, ,because when I click on "run" button, the codes are tokenized and download according to red progress indicator at the bottom of terminal window. As I don't get servo moving I modified some codes. It is when I try to download the new release that I got the message "Error code 102 Expected termination"

What do think about ?

Bernard

Chris Savage
11-28-2006, 05:14 AM
Bernard,
·
·· That error would indicate a missing quote, yet the code you posted isn’t missing any and compiles fine.· I wonder if perhaps you were missing a quote in the editor?· Did you copy and paste this code or type it in?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support

bbdelhomme
11-28-2006, 05:30 AM
Chris,

Sorry, I don't understand the word "quote". What is its meaning?
I typed this code.
As I didn't get moving the servo, the main issue is how can terminate it in order to type a new one and download it.

Bernard

Chris Savage
11-28-2006, 05:38 AM
Because you typed in the code you may have forgotten a quote.· You put the quote symbol on either side of the word quote in your reply.· That is a quote.· You may be missing one in your editor version of the code you posted.· You could always copy and paste the code from the forum window into your editor and compile that.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support

bbdelhomme
11-28-2006, 06:02 AM
Chris,

Ma

bbdelhomme
11-28-2006, 06:11 AM
Chris,

Maybe I misunderstood your previous question.
I typed the code into the window of Basic Stamp Editor.
In order to send it to you, I copied it and pasted it into the Forum window.
Checking them again, I don't find where I missed a quote.
Have you locate it? If yes, where?

Thanks

Bernard

bbdelhomme
11-28-2006, 07:24 AM
Chris,

Just finishing my roboting activity for this night, I try again to download the code and I got it succefully.
I don't understand what is happen previously. Maybe I failed one quote making corrections then I didn't save properly this last release.
Sorry to disturb you.
However the servo does not move but I feel that it is another issue: maybe communication one between BS2e and SSC-32 that I will try to solve tomorrow.

Many thanks for your advices.

Bernard

Bruce Bates
11-28-2006, 04:22 PM
Gents -

For those for whom English is not their first language the wording in this thread may be a bit confusing, so let me just add some correctness to this discourse. We who use English as a first language often tend to shorten what we say, and do so in an incorrect and confusing manner.

That which was proposed to be missing from the program was a quotation mark. A quotation mark, is a symbol of punctuation. The single quotation mark is this character: ' . The double quotation mark is thus: " .

A quote, on the other hand, is a written or oral repetition of exact words as authored by another person, usually offered as a matter of reference.

Quote can also refer to the price of a commodity, stock or bond in financial circles.

Regards,

Bruce Bates

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->

Chris Savage
11-28-2006, 10:21 PM
I apologize if I was not clearer.· The reason I didn’t get more specific is that the error box generated lists the character missing.· Please see the attached picture for the following code.· This s what would cause this error…



' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 16, 396, ["Hello]

Note the missing end quote character?· This generates the attached error messages which show the exact character missing.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support

bbdelhomme
11-29-2006, 10:06 PM
Chris,

That is right, English is not my first language and electronic is not my first training.
Apologize, I didn't pay attention of exact writting of error window. I didn't see and understand the " at the end of message: Expected terminating ".
Now it is very clear.
It is an experience more to continue my new roboting developments.

Many thanks for your support.

Bernard