ABSTRACT

This chapter describes two groups of comparison macros for the PIC16F648A-based PLC. Numerical values often need to be compared in PLC programs; typical examples are a batch counter saying the required number of items has been delivered, or alarm circuits indicating, for example, a temperature has gone above some safety level. In the latter, similar comparison macros are also described for comparing the content of an 8-bit register with an 8-bit constant. After that, by using the PIC programmer software, take the compiled file UZAM_plc_16i16o_ex12. hex or UZAM_plc_16i16o_ex13. hex, and by our PIC programmer hardware, send it to the program memory of PIC16F648A microcontroller within the PIC16F648A-based PLC. To do this, switch the 4PDT in PROG position and the power switch in OFF position.