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 " !!!
*****************************************
Bookmarks