Building a Programmable Logic Controller with a PIC16F648A by Murat Uzam

By Murat Uzam

Programmable good judgment controllers (PLCs) are widely utilized in to accomplish automation projects, with brands providing numerous PLCs that fluctuate in features, software thoughts, and the variety of inputs/outputs (I/O). now not strangely, the layout and implementation of those PLCs have lengthy been a mystery of brands. Unveiling the mysteries of PLC expertise, development a Programmable good judgment Controller with PIC16F648A Microcontroller explains the best way to layout and use a PIC16F648A-microcontroller-based PLC.
The writer first defined a microcontroller-based implementation of a PLC in a sequence of articles released in Electronics global journal among 2008 and 2010. This publication relies on a stronger model of the undertaking, including:
Updates to the configuration, with a smaller CPU board and I/O extension forums that now help sixteen inputs and sixteen outputs rather than 8
An elevated clock frequency of 20 MHz
Improvements to numerous macros
Flowcharts that can assist you comprehend the macros (functions)
In this booklet, the writer offers designated causes of and software program buildings. He additionally describes PIC meeting macros for all simple PLC services, that are illustrated with a number of examples and flowcharts. An accompanying CD includes resource documents (.ASM) and item records (.HEX) for all the examples within the publication. It additionally provides revealed circuit board (PCB) (Gerber and .pdf) records that you should have the CPU board and I/O extension forums produced by way of a PCB producer or produce your personal boards.
Making PLCs extra simply available, this specific booklet is written for complicated scholars, practising engineers, and hobbyists who are looking to construct their very own microcontroller-based PLC. It assumes a few past wisdom of electronic good judgment layout, microcontrollers, and PLCs, in addition to familiarity with the PIC16F sequence of microcontrollers and writing courses utilizing PIC meeting language inside of an MPLAB built-in improvement surroundings.

Show description

Read Online or Download Building a Programmable Logic Controller with a PIC16F648A Microcontroller PDF

Similar microelectronics books

Neamen - Electronic Circuit Analysis and Design

Microelectronics: Circuit research and layout is meant as a center textual content in electronics for undergraduate electric and machine engineering scholars. The fourth variation keeps to supply a starting place for examining and designing either analog and electronic digital circuits. The target has constantly been to make this e-book very readable and scholar pleasant.

Electronic Materials and Processes Handbook

Digital fabrics are the particular semiconductors, plastics, metals and ceramics that make up the chips and programs from which we build this present day? s cellphones, palmtops, and PDAs. The change in functions from computers to smaller communications units has pushed the micro-miniaturization pattern in electronics, which in flip has created a brand new set of demanding situations in developing fabrics to satisfy their necessities.

Inside Solid State Drives (SSDs)

Stable kingdom Drives (SSDs) are gaining momentum in company and purchaser functions, changing hard disk drive Drives (HDDs) via supplying larger functionality and decrease strength. within the company, builders of knowledge heart server and garage structures have noticeable CPU functionality growing to be exponentially for the earlier 20 years, whereas HDD functionality has enhanced linearly for a similar interval.

Programmable Controllers, Third Edition: An Engineer's Guide

Andrew Parr's Programmable Controllers presents a completely sensible advent to using PLCs in undefined, protecting programming ideas along systems-level layout matters. within the 3rd version a masterclass sequence of real-world case reviews were further to demonstrate commonplace engineering demanding situations - and version suggestions.

Additional resources for Building a Programmable Logic Controller with a PIC16F648A Microcontroller

Sample text

This is simply 27 Basic Software begin Y L2 N SET DBNCRRED0,num Y ? regi,biti = 1 N ? rego,bito = 0 N N L4 ? regi,biti = 0 ? t_reg,t_bit = 1 DBNCR0+num 00h Y N N N N Y SET DBNCRRED0,num ? t_reg,t_bit = 1 DBNCRRED0, ? num = 1 Y RESET DBNCRRED0,num (DBNCR0+num) = (DBNCR0+num) + 1 DBNCR0+ ? num=tcnst_01 N Y Y DBNCRRED0, ? num = 1 L3 ? t_reg,t_bit = 1 Y ? t_reg,t_bit = 1 Y RESET DBNCRRED0,num (DBNCR0+num) = (DBNCR0+num) + 1 N N Y DBNCR0+ ? 13 The flowchart of the macro dbncr0. done by changing the related time constant tcnst_01 or tcnst_10 defining the debouncing time delay for each channel and for both edges within the assembly program.

The macros described in this chapter could be summarized as follows: HC165 (for handling the inputs), HC595 (for sending the outputs), dbncr0 and dbncr1 (for debouncing the inputs), initialize, get_inputs, and send_outputs. In addition, the concept of contact bouncing and how it is solved in the PIC16F648A-based PLC is explained in detail. 1 Basic Software Structure The basic software of the PIC16F648A-based PLC makes use of general purpose 8-bit registers of static random-access memory (SRAM) data memory of the PIC16F648A microcontroller.

If the output signal (rego,bito) = 0 and the input signal (regi,biti) = 1, then with each rising edge of the reference timing signal t_reg,t_bit the related counter DBNCR0+num is incremented by one. In this case, when the count value of DBNCR0+num is equal to the number tcnst_01, this means that the input signal is debounced properly and then state change from 0 to 1 is issued for the output signal (rego,bito). Similarly, if the output signal (rego,bito) = 1 and the input signal (regi,biti) = 0, then with each rising edge of the reference timing signal t_reg,t_bit the related counter DBNCR0+num is incremented by one.

Download PDF sample

Rated 4.13 of 5 – based on 39 votes