1、Xx 交通大学毕业设计(论文) 1 Bit Logic Instructions 1.1 Overview of Bit Logic Instructions 1.1.1 Description 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
2、 contacts and coils, a 1 indicates activated or energized, and a 0 indicates not activated or not energized. The bit logic instructions interpret signal states of 1 and 0 and combine them according to Boolean logic. These combinations produce a result of 1 or 0 that is called the “result of logic op
3、eration” (RLO). The logic operations that are triggered by the bit logic instructions perform a variety of functions. There are bit logic instructions to perform the following functions: -| |- Normally Open Contact (Address) -| / |- Normally Closed Contact (Address) -(SAVE) Save RLO into BR Memory X
4、OR Bit Exclusive OR -( ) Output Coil -( # )- Midline Output -|NOT|- Invert Power Flow The following instructions react to an RLO of 1: -( S ) Set Coil -( R ) Reset Coil SR Set-Reset Flip Flop RS Reset-Set Flip Flop Other instructions react to a positive or negative edge transition to perform the fol
5、lowing functions: -(N)- Negative RLO Edge Detection -(P)- Positive RLO Edge Detection NEG Address Negative Edge Detection POS Address Positive Edge Detection Immediate Read Immediate Write Xx 交通大学毕业设计(论文) 1.2 -| |- Normally Open Contact (Address) 1.2.1 Symbol -| |- Parameter Data Type Memory Area De
6、scription BOOL I, Q, M, L, D, T, C Checked bit 1.2.2 Description -| |- (Normally Open Contact) is closed when the bit value stored at the specified is equal to 1. When the contact is closed, ladder rail power flows across the contact and the result of logic operation (RLO) = 1. Otherwise, if the sig
7、nal state at the specified is 0, the contact is open. When the contact is open, power does not flow across the contact and the result of logic operation (RLO) = 0. When used in series, -| |- is linked to the RLO bit by AND logic. When used in parallel, it is linked to the RLO by OR logic. 1.2.3 Stat
8、us word BR CC1 CC0 OV OS OR STA RLO /FC writes: - - - - - x x x 1 1.2.4 Example Power flows if one of the following conditions exists: The signal state is 1 at inputs I0.0 and I0.1 Or the signal state is 1 at input I0.2. Xx 交通大学毕业设计(论文) 1.3 -| / |- Normally Closed Contact (Address) 1.3.1 Symbol -| /
9、 |- Parameter Data Type Memory Area Description BOOL I, Q, M, L, D, T, C Checked bit 1.3.2 Description -| / |- (Normally Closed Contact) is closed when the bit value stored at the specified is equal to 0. When the contact is closed, ladder rail power flows across the contact and the result of logic
10、operation (RLO) = 1. Otherwise, if the signal state at the specified is 1, the contact is opened. When the contact is opened, power does not flow across the contact and the result of logic operation (RLO) = 0. When used in series, -| / |- is linked to the RLO bit by AND logic. When used in parallel, it is linked to the RLO by OR logic. 1.3.3 Status word BR CC1 CC0 OV OS OR STA RLO /FC writes: - - - - - x x x 1 1.3.4 Example Power flows if one of the following conditions exists: The signal state is 1 at inputs I0.0 and I0.1 Or the signal state is 1 at input I0.2 1.4 XOR Bit Exclusive OR