Chapter 5 Basic Instructions 5.2 Basic Instructions Symbol LD S : Specified device AND OR 5_ Explanation 1. LD applies to contact A that starts from the main line or contact A which is the start of a contact circuit. Use it to save the current contents, and store the contact state in the accumulative register. 2. AND connects contact A in series. It reads the state of the contact that is specified as connected in series, and performs the AND operation with the previous logical operation result. It stores the final result in the accumulative register. 3. OR connects contact A in parallel.
It reads the state of the contact that is specified as connected in parallel, and performs the OR operation with the previous logical operation result. It stores the final result in the accumulative register. Example 1. Contact A of X0.0 is loaded, contact A of X0.1 is connected in series, contact A 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. 5-3 Instruction code Operand Function LD/AND/OR S Loading contact A/Connecting contact A in series/Connecting contact A in parallel Device DX DY X Y M SM S T C HC D S BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S