Mitsubishi — 4.2 Descriptions of the Basic Instructions

Chapter 4 Basic Instructions Explanation  The instruction ANB is used to perform the AND operation on the logical operation result reserved previously and the contents of the present accumulation register. Ladder diagram Instruction code: Description: Example Loading the Form A contact X0.0 LD X0.0 ORI X0.2 Connecting the Form B contact X0.2 in parallel Block A Block B LDI X0.1 Loading the Form B contact X0.1 Connecting the Form A contact X0.3 in parallel OR X0.3 OUT Y0.1 Driving the coil Y0.1  The instruction ORB is used to perform the OR operation on the logical operation result reserved previously and the contents of the present accumulation register.

Explanation Ladder diagram Instruction code: Description: LD X0.0 Loading the Form A contact X0.0 Example X0.0 X0.1 Block A ANI X0.1 Connecting the Form B contact X0.1 in series Block B LDI X0.2 Loading the Form B contact X0.2 AND X0.3 Connecting the Form A contact X0.3 in series OUT Y0.1 Driving the coil Y0.1 4-7 Instruction code Operand Function ANB – Connecting circuit blocks in series ANB Y0.1 X0.2 X0.3 Connecting the ANB circuit blocks in series Instruction code Operand Function ORB – Connecting circuit blocks in parallel Y0.1 ORB X0.2 X0.3 Connecting the ORB circuit blocks in parallel