ABSTRACT

A logical function performs AND, NAND, OR, NOR, exclusive OR (XOR), exclusive NOR (XNOR), logical operations on two registers (or one register plus one constant value), and NOT (invert) logical operations on one register. However, the unary invert (INV) logical function has one source register and one destination register. It inverts all of the bits in the source register and puts the result in the destination register. After that, by using the PIC programmer software, take the compiled file UZAM_ plc_16i16o_ex16 hex, and by our PIC programmer hardware send it to the program memory of the PIC16F648A microcontroller within the PIC16F648A-based PLC.