User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
66
Ladder Logic - Logical Mask
Logical masking allows individual register bits to be selected and used for a Boolean operation. Each Logical
Mask block is configured using two parameters as follows:
Test Register: Any 16-bit register.
Bit Mask: (Constant or #R) The Bit Mask parameter is normally entered as a hexadecimal number in the
format 16#xxxx - where xxxx is the hexadecimal number. For a description of hexadecimal numbers please
see the appendix - Hexadecimal Numbers. Specifying a local register allows the bit mask to be changed
using ladder logic.
Logical OR Mask
Block is true when any of the masked bits in the test register are ON. Eg. if channel 1 or channel 9 are on in
#R1.
Logical AND Mask
Block is true when all of the masked bits in the test register are ON. Eg. if channels 1 and 9 are on in #R1.
Logical NOR Mask
Block is true when all of the masked bits in the test register are OFF. Eg. channels 1 and 9 are off in #R1.
Logical NAND Mask
Block is true when any of the masked bits in the test register are OFF. Eg. channels 1 or 9 are off in #R1.