ABSTRACT

Each 8-bit variable enables us to declare and use eight different functions defined by the related macro. The macro latchl defines a D latch function with active high enable. The macros latch0 and latch1 are an exception to this, which means that the readers can use as many latches of latch0 or latch1 as the readers wish. The file definitions.inc, included within the CD-ROM, contains all flip-flop macros defined for the PIC16F648A-based PLC. In ladder logic, this macro is represented by a normally open contact with the identifier, meaning positive transition-sensing contact. After that, by using the PIC programmer software, take the compiled file UZAM_plc_16il6o_ex5.hex or UZAM_plc_16il6o_ex6.hex, and by our PIC programmer hardware send it to the program memory of PIC16F648A microcontroller within the PIC16F648A-based PLC.