Shop OBEX P1 Docs P2 Docs Learn Events
Question about Constanta that is using in PC2stamp.vpp and StampToPC.BS2 — Parallax Forums

Question about Constanta that is using in PC2stamp.vpp and StampToPC.BS2

ArchiverArchiver Posts: 46,084
edited 2004-06-28 07:04 in General Discussion
Hai everybody,

I want to ask about the use of Const CmdTxN, CmdRxN, CmdTxS, CmdRxS in PC2Stamp.vpp file. Why the values of each const using &HC0, &HC1, &HC2, &HC3 not the others value?

like the case in the above, Why the Con of RxNum, TxNum, RxStr, TxStr in the StampToPC.BS2 file using $C0, $C1, $C2, $C3 values?

For the answer, thank you very much.
Sincerely yours


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-06-25 04:57
    Simple: When I originally wrote those programs the "C" designated
    command, the number that followed indicated function.

    In VB, hex values look like this: &HC0, while the same number in PBASIC
    looks like this: $C0. That said, they both represent the same value.

    Note that CmdTxN (pc side) corresponds with RxNum on the BASIC Stamp
    side. The reason is that $C0 indicates that the PC is transmitting a
    number and the BASIC Stamp is going to receive it.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: mali ok [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wDv_A5BX0Z4BQ8pgMn58_M-t7AxhKj7caJIAKma_BaHBVj5FVAbwdbLcgJ9wup_hJ2Npvg2fOjY]maliok80@y...[/url
    Sent: Thursday, June 24, 2004 10:43 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Question about Constanta that is using in
    PC2stamp.vpp and StampToPC.BS2


    Hai everybody,

    I want to ask about the use of Const CmdTxN, CmdRxN, CmdTxS, CmdRxS in
    PC2Stamp.vpp file. Why the values of each const using &HC0, &HC1, &HC2,
    &HC3 not the others value?

    like the case in the above, Why the Con of RxNum, TxNum, RxStr, TxStr in
    the StampToPC.BS2 file using $C0, $C1, $C2, $C3 values?

    For the answer, thank you very much.
    Sincerely yours
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-28 07:04
    Thanks

    Jon Williams <jwilliams@p...> wrote:Simple: When I originally wrote those programs the "C" designated
    command, the number that followed indicated function.

    In VB, hex values look like this: &HC0, while the same number in PBASIC
    looks like this: $C0. That said, they both represent the same value.

    Note that CmdTxN (pc side) corresponds with RxNum on the BASIC Stamp
    side. The reason is that $C0 indicates that the PC is transmitting a
    number and the BASIC Stamp is going to receive it.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: mali ok [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=DCPpfB2LXQPHVoOV_1miPMULAi7CDyYr0DnzT7WHiJuz0ycDgiS6x87NXNek9iRxlN8BYV4_NXU]maliok80@y...[/url
    Sent: Thursday, June 24, 2004 10:43 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Question about Constanta that is using in
    PC2stamp.vpp and StampToPC.BS2


    Hai everybody,

    I want to ask about the use of Const CmdTxN, CmdRxN, CmdTxS, CmdRxS in
    PC2Stamp.vpp file. Why the values of each const using &HC0, &HC1, &HC2,
    &HC3 not the others value?

    like the case in the above, Why the Con of RxNum, TxNum, RxStr, TxStr in
    the StampToPC.BS2 file using $C0, $C1, $C2, $C3 values?

    For the answer, thank you very much.
    Sincerely yours


    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.

    Yahoo! Groups Links








    Do you Yahoo!?
    New and Improved Yahoo! Mail - 100MB free storage!

    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.