Multi-digit word variable to string


Results 1 to 40 of 44

Threaded View

  1. #16
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Multi-digit word variable to string

    in my case i do not use the trackbar, but the LED digits as shown below.

    Name:  command5.png
Views: 761
Size:  90.0 KB

    In the software 4D SYstems they have, you can set manually a number for example 167, and will show you the command as shown in the SET DIGIT VALUE:

    Name:  command6.png
Views: 757
Size:  36.4 KB

    I have tried to give manually a constant number and it worked!

    what i did is:

    i set a new var mTEMP ' for manually hex number and
    a new var mTEMPIR ' for manually hex number as well.

    In our case the number 167 for:

    Code:
    mTEMP = $00
    mTEMPIR = $a7
    then i did the CS calculation and return to the HSEROUT command.

    Code:
    IRCS=0
    IRCS= $01^$0F^$00^mTEMP
    IRCS = IRCS ^ mTEMPIR
    I placed it with:

    Code:
    HSEROUT [$01,$0F,$00,mTEMP,mTEMPIR,IRCS)
    then i got the right result on the display.

    The problem is that when i use the variables i cannot get the right values.
    Last edited by astanapane; - 18th December 2021 at 22:14.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts