AH Motion Controller – Standard Instructions Manual Graphic Expression: LDI S : Specified device _3 ANI ORI Explanation: 1. The instruction LDI applies to contact B which starts from the mother line or contact B which is the start of a contact circuit. It functions to reserve the current contents, and store the contact state which is acquired in the 2. The instruction ANI is used to connect contact B in series. It functions to read the state of the contact which is accumulative register. specified to be connected in series, and perform the AND operation with the previous logical operation result. The final result is stored in the accumulative register. 3.
The instruction ORI is used to connect contact B in parallel. It functions to read the state of the contact which is specified to be connected in parallel, and perform the OR operation with the previous logical operation result. The final result is stored in the accumulative register. Example: 1. Contact B of X0.0 is loaded, contact B of X0.1 is connected in series, contact B of X0.2 is connected in parallel, and the coil Y0.0 is driven. 2. When both X0.0 and X0.1 are ON, or when X0.2 is ON, Y0.0 is ON.
3-12 FB/FC Instruction Operand Description FC LDI/ANI/ORI S Loading contact B/Connecting contact B in series/Connecting contact B in parallel BOOL WORD DWORD LWORD UINT UDINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S ● Device DX DY X Y M SM S T C HC/AC D L PR S ● ● ● ● ● ● ● ● ● ● ● ●