KB-33037: Isolating bits in simple links.

Question:

Can I set up a simple link so that it isolates just some of the bits when the value is transferred, and not the whole value?

Solution:

Yes. To do so, you can use the logical operator AND in the link’s Source field to isolate certain bits.

Example 1: TagSource.Value AND 9
With this link, bits 0 and 3 will be isolated, because 9 in Decimal is equal to 1001 in Binary (bit 0 is one, bits 1 and 2 are zero, bit 3 is one).

Example 2: TagSource.Value AND 17
With this link, bits 0 and 4 will be isolated, because 17 in Decimal is equal to 10001 in Binary (bit 0 is one, bits 1, 2 and 3 are zero, bit 4 is one).

NOTE: In this type of operation, the bits will only be isolated, not shifted in either direction (left or right).

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *