Figure 2 - uploaded by Murat Uzam
Content may be subject to copyright.
The user program UZAM_plc_8i8o_ex13.asm

The user program UZAM_plc_8i8o_ex13.asm

Source publication
Article
Full-text available
The comparison macros in a PLC with PIC16F648A microcontroller is described for comparing the content of an 8-bit register with an 8-bit constant. The need for 8-bit variables is satisfied by a macro, which is described to load an 8-bit number into an 8-bit variable. These macros depend on a Boolean input variable taken into the macro and Boolean o...

Contexts in source publication

Context 1
... first example program, "UZAM_plc_8i8o_ex13.asm" is shown in Figure 2. It shows the usage of all six comparison macros for comparing the contents of two registers as described in Table 2. ...
Context 2
... first example program, "UZAM_plc_8i8o_ex13.asm" is shown in Figure 2. It shows the usage of all six comparison macros for comparing the contents of two registers as described in Table 2. The schematic and ladder diagrams of the user program of "UZAM_plc_8i8o_ex13.asm" shown in Figure 2 are depicted in Figure 3a and 3b. ...

Citations

Book
Programmable logic controllers (PLCs) have been used extensively in industry for the past five decades. PLC manufacturers offer different PLCs in terms of functions, program memories, and the number of inputs/outputs (I/Os), ranging from a few to thousands of I/Os. The design and implementation of PLCs have long been a secret of the PLC manufacturers. Recently, a serious work was reported by the author of this book to describe a microcontrollerbased implementation of a PLC. With a series of 22 articles published in Electronics World magazine (http//www.electronicsworld.co.uk/) between the years 2008 and 2010, the design and implementation of a PIC16F648Abased PLC were described. This book is based on an improved version of the project reported in Electronics World magazine. This book is written for advanced students, practicing engineers, and hobbyists who want to learn how to design and use a microcontroller-based PLC. The book assumes the reader has taken courses in digital logic design, microcontrollers, and PLCs. In addition, the reader is expected to be familiar with the PIC16F series of microcontrollers and to have been exposed to writing programs using PIC assembly language within an MPLAB integrated development environment. The CD-ROM that accompanies this book contains all the program source files and hex files for the examples described in the book. In addition, PCB files of the CPU and I/O extension boards of the PIC16F648A-based PLC are also included on the CD-ROM.