You can use the "And" function with integer inputs.  One of the inputs
comes from InPort, and the other is a constant hex 0x10.  The result
of the "And" will also be a numeric.  You can test this result with
the "=0?" function.  If the result is zero, you do nothing.  If the
result is non-zero, you know the 0x10 bit must have been set.  So,
you'll then increment your "value" as in the code above.

Does this make sense?

Brian

Reply via email to