Saturday, July 16, 2011

Bit Logic Instructions

Bit logic instructions work with two digits, 1 and 0. These two digits form the base of a number system called the binary system. The two digits 1 and 0 are called binary digits or bits. In the world of contacts and coils, a 1 indicates activated or energized, and a 0 indicates not activated or not energized.

---|   |---      Normally Open Contact (Address)
   ---|  |--- (Normally Open Contact) is closed when the bit value stored at the specified <address> is equal to "1". When the contact is closed, ladder rail power flows across the contact and the result of logic operation = "1".

When used in series, ---|  |---  is linked to the logic operation bit by AND logic. When used in parallel, it is linked to the logic operation by OR logic.

---| / |---      Normally Closed Contact (Address)
   --| / |--- (Normally Closed Contact) is closed when the bit value stored at the specified <address> is equal to "0". When the contact is closed, ladder rail power flows across the contact and the result of logic operation = "1".

When used in series, --| / |---  is linked to the logic operation bit by AND logic. When used in parallel, it is linked to the logic operation by OR logic.