code
Archiver
Posts: 46,084
I am trying to write to a little stepu stepper motor controller.
The problem I have is as follows
this code works serout 10,baud,[noparse][[/noparse]"{E-200}"]
THE STEPPER MOVES IN A - DIRECTION 200 STEPS
What I want to do is put the -200 in a varable
serout 10,baud,[noparse][[/noparse]"{EA}"]
that = -200
examp a = -200
debug sdec a = -200
debug a = 8
wont let me do a = sdec -200
DOES PBASIC HAVE SOME CODE FOR STORING A SIGNED DEC# IN A VAR.
I APPRECIATE ANY HELP
THANKS MAX
[noparse][[/noparse]Non-text portions of this message have been removed]
The problem I have is as follows
this code works serout 10,baud,[noparse][[/noparse]"{E-200}"]
THE STEPPER MOVES IN A - DIRECTION 200 STEPS
What I want to do is put the -200 in a varable
serout 10,baud,[noparse][[/noparse]"{EA}"]
that = -200
examp a = -200
debug sdec a = -200
debug a = 8
wont let me do a = sdec -200
DOES PBASIC HAVE SOME CODE FOR STORING A SIGNED DEC# IN A VAR.
I APPRECIATE ANY HELP
THANKS MAX
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
Original Message
From: "max powell" <mpowell@t...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, August 02, 2002 12:48 PM
Subject: [noparse][[/noparse]basicstamps] code
> I am trying to write to a little stepu stepper motor controller.
> The problem I have is as follows
> this code works serout 10,baud,[noparse][[/noparse]"{E-200}"]
> THE STEPPER MOVES IN A - DIRECTION 200 STEPS
> What I want to do is put the -200 in a varable
> serout 10,baud,[noparse][[/noparse]"{EA}"]
> that = -200
> examp a = -200
> debug sdec a = -200
> debug a = 8
> wont let me do a = sdec -200
> DOES PBASIC HAVE SOME CODE FOR STORING A SIGNED DEC# IN A VAR.
> I APPRECIATE ANY HELP
> THANKS MAX
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>