Masked equal MASKED EQU

Passes power while the masked bits of Source and Compare match.

TagAfter two scans
Inputs13
Mask15
Pattern13

How it works

Passes power while the bits picked by Mask are the same in Source and Compare. Bits outside Mask are ignored.

How it's used

Use it to check several bits of a word at once, such as a set of door switches.

TagValue
Doors15
Mask7
AllShut7
DoorsOK1

The three bits in Mask are all on, so DoorsOK is on. Other bits are ignored.

Operands

OperandData typeRead or write
SourceDINT or a numberReads
MaskDINT or a numberReads
CompareDINT or a numberReads

Common mistakes

  • Using a Mask of 0A Mask of 0 checks no bits, so it always passes.