ABSTRACT

Numerical data imply the ability to do arithmetical operations, and almost all programmable logic controllers (PLCs) provide some arithmetical operations, such as add, subtract, multiply, and divide. Arithmetical functions will retrieve one or more values, perform an operation, and store the result in memory. The file definitions contain all arithmetical macros defined for the PIC16F648A-based PLC. After that, by using the PIC programmer software, take the compiled file UZAM_plc_16i16o_ex14. hex or UZAM_plc_16i16o_ ex15 hex, and by our PIC programmer hardware, send it to the program memory of PIC16F648A microcontroller within the PIC16F648A-based PLC. By check the program's accuracy by cross-referencing it with the related macros.