Chapter 4 Basic Instructions The instruction AND is used to connect a Form A contact in series. It reads the state of a contact which is connected in series, and performs the AND operation on the previous logical operation result. The final result is stored in an accumulation register. Explanation Ladder diagram Instruction code: Description: Example X0.0 X0.1 Y0.1 LDI X0.1 Loading the Form B contact X0.1 OUT Y0.1 Driving the coil Y0.1 Explanation The instruction ANI is used to connect a Form B contact in series. It reads the state of a contact which is connected in series, and performs the AND operation on the previous logical operation result.
The final result is stored in an accumulation register. Ladder diagram Instruction code: Description: Example X0.0 X0.1 Y0.1 LD X0.1 Loading the Form A contact X0.1 OUT Y0.1 Driving the coil Y0.1 4-5 Instruction code Operand Function AND S Connecting a Form A contact in series Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S Connecting the AND X0.0 Form A contact X0.0 Instruction code Operand Function ANI S Connecting a Form B contact in series Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S Connecting the ANI X0.0 Form B contact X0.0 in series