Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I do a hex AND operation in Lookout?

Hi All,

I am trying to AND two hex numbers together in Lookout and remember there used to be a /x format or something like it that used a hex notation. Any clues???
Regards,
John
Bytronic Automation Ltd
U.K.
0 Kudos
Message 1 of 2
(3,107 Views)
If you have Lookout version >=4 then it is not too hard since Lookout supports data polymorphism. Attached is a Lookout 5.0 file that can help you. If you do not have Lookout 5 then compile the script file (.lks) in Lookout 4 (you may need to make some minor modifications). If you have < Lookout 4 then this may not work at all.

Basically, I parsed the hex value into its binary components and performed individual bit ands. I then recombined the bits to output a decimal and hexadecimal value. Its a little tedious but not too hard.

This will at least give you some ideas.

Regards,
Tommy Scharmann
Download All
Message 2 of 2
(3,107 Views)