It is coming from an array of 2 HEX bytes, which are then converted to binary. In the case I am using, the
the value '44308' is what TRACID_ID is in this example..
SSD4= (ssmax[1]>>4)
SSD3= (ssmax[1] & $f)
SSD2= (ssmax[0]>>4)
SSD1= (ssmax[0] & $f)
TracID_D=(ssd4*4096)+(ssd3*256)+(ssd2*16)+ssd1' convert to dec
TC1=(TracID_D/1600)
I have attached a spreadsheet that does this also. It uses an "INT" function to keep the result of the TracID_D/1600 rounded to 27. In PBP I need an equivalent function. Otherwise the answer is 27.7 and that messes up the CASE statement.
IN the excel example, if you remove the INT function, it gives 27.7 also.
TG
Bookmarks