ABSTRACT

The contact and relay-based macros are defined to operate on Boolean (1-bit) variables. The working register is utilized to transfer the information to or from the contact and relay-based macros, except for macros in_out and inv_out. This chapter briefly considers these macros. In ladder logic, the macro is represented by a normally open contact. When the input variable is 0 (respectively 1), the output (W) is forced to 0 (respectively to 1). After that, by using the PIC programmer software, take the compiled file UZAM_plc_16i16o_ex3.hex or UZAM_ plc_16i16o_ex4 hex, and by our PIC programmer hardware send it to the program memory of the PIC16F648A microcontroller within the PIC16F648A-based programmable logic controller.