PBPro Maths Help


Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: PBPro Maths Help

    Hi, Retep ...

    first you have to declare a dummy var ... and a Div flag

    then ...

    Code:
     
     
    IF Local > 32767 then    ' see PBP manual ... for the Why ???
       Local = Local/2
       Div = 1
    Else
       Div = 0
    ENDIF
     
    Dummy = 11
    Dummy = Dummy*7908 ; operation needed by PBP ...
    ActualSpeed = DIV32  Local
     
    IF Div THEN ActualSpeed = Actualspeed / 2    ' Ooops ! not *2 ...
     
    ActualSpeed = ActualSpeed + 1
    Last edited by Acetronics2; - 6th May 2011 at 07:19.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Members who have read this thread : 0

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