This function compares two binary Values source and compare by a given mask.
Both given values are masked (input AND mask), and the results is than compared and returned.
Can be used for Word and Byte as well, by convert the passed parameter using for e.g. Byte_to_DWord(...).
Block Interface
LGF_BinaryMaskCompare (FC)
DWord
source
Ret_Val
Bool
DWord
compare
DWord
mask
Input parameter
Identifier
Data type
Description
source
DWord
Source value to compare
compare
DWord
Value to compare against
mask
DWord
Mask the data - bits will pass if TRUE or block if FALSE