Bitwise Operations in PLC Ladder Logics

This instruction performs a bit-by-bit logical AND. The operation is performed using the value at source A and the value at source B. The result is stored in the destination.

Source A and B can either be a word address or a constant; however, both sources cannot be a constant. The destination must be a word address.

Application Note: When entering constants, you can use the ampersand (&) operator to change the radix of your entry.

Bitwise Operations

Bitwise%20Operations%20in%20PLC%20Ladder%20Logics

Instead of entering –1 as a constant, you could enter &B1111111111111111 or &HFFFF (Actual PLC only).

Use 1111111111111111B or FFFFH for the simulator

OR, XOR, and NOT operands are exactly as described for the AND operation

3 Likes