Building a Programmable Logic Controller with a PIC16F648A by Murat Uzam

By Murat Uzam

Programmable good judgment controllers (PLCs) are largely utilized in to accomplish automation projects, with brands delivering numerous PLCs that fluctuate in capabilities, software thoughts, and the variety of inputs/outputs (I/O). no longer strangely, the layout and implementation of those PLCs have lengthy been a mystery of brands. Unveiling the mysteries of PLC expertise, Building a Programmable common sense Controller with PIC16F648A Microcontroller explains tips on how 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 World journal among 2008 and 2010. This publication is predicated on a far better 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 a number of macros
  • Flowcharts that will help you comprehend the macros (functions)

In this publication, the writer offers exact motives of and software program buildings. He additionally describes PIC meeting macros for all uncomplicated PLC capabilities, that are illustrated with quite a few examples and flowcharts. An accompanying CD comprises resource records (.ASM) and item records (.HEX) for all the examples within the publication. It additionally provides published circuit board (PCB) (Gerber and .pdf) documents that you can have the CPU board and I/O extension forums produced through a PCB producer or produce your personal boards.

Making PLCs extra simply obtainable, this precise ebook is written for complicated scholars, practising engineers, and hobbyists who are looking to the best way to construct their very own microcontroller-based PLC. It assumes a few past wisdom of electronic common sense layout, microcontrollers, and PLCs, in addition to familiarity with the PIC16F sequence of microcontrollers and writing courses utilizing PIC meeting language inside an MPLAB built-in improvement environment.

Show description

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

Similar microelectronics books

Classical Circuit Theory

This publication starts off with the fundamental ideas of circuits, derives their analytic homes in either the time and frequency domain names, and states and proves the 2 vital theorems. It then develops an algorithmic solution to layout universal and unusual forms of circuits, resembling prototype filters, lumped hold up strains, consistent section distinction circuits, and hold up equalizers.

Single and Multi-Chip Microcontroller Interfacing : For the Motorola 6812 (Academic Press Series in Engineering)

Unmarried and Multi-Chip Microcontroller Interfacing teaches the foundations of designing and programming microcontrollers that might be utilized in a wide selection of digital and mechanical units, machines and platforms. functions are huge, starting from controlling an vehicle to measuring, controlling and showing your home's temperature.

CMOS Time-Mode Circuits and Systems: Fundamentals and Applications

Time-mode circuits, the place details is represented by way of time distinction among electronic occasions, supply a manageable and technology-friendly skill to achieve mixed-mode circuits and platforms in nanometer complementary metal-oxide semiconductor (CMOS) applied sciences. quite a few architectures of time-based sign processing and layout concepts of CMOS time-mode circuits have emerged; despite the fact that, an in-depth exam of the foundations of time-based sign processing and layout options of time-mode circuits has no longer been available―until now.

Defects in semiconductors

This quantity, quantity ninety one within the Semiconductor and Semimetals sequence, makes a speciality of defects in semiconductors. Defects in semiconductors support to provide an explanation for a number of phenomena, from diffusion to getter, and to attract theories on fabrics' habit in line with electric or mechanical fields. the amount comprises chapters focusing particularly on electron and proton irradiation of silicon, aspect defects in zinc oxide and gallium nitride, ion implantation defects and shallow junctions in silicon and germanium, and masses extra.

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

Sample text

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. In this case, when the count value of DBNCR0+num is equal to the number tcnst_10, this means that the input signal is debounced properly and then state change from 1 to 0 is issued for the output signal (rego,bito). For this macro it is necessary to define the following 8-bit variables in SRAM: Temp_1 and DBNCRRED0.

There are some explanations within the macro to describe how it works. As can be seen, this macro makes use of previously defined data_in, clock_in, and sfht_ld bits to obtain the input signals from 74HC/LS165 registers. 7. The output signals are stored in the 8-bit SRAM registers Q0 and Q1 and serially sent out to and stored in the related TPIC6B595 registers by means of this macro. The num defines the number of TPIC6B595 registers to be used. This means that with this macro we can send output data serially to as many TPIC6B595 registers as we wish.

Hardware of the PIC16F648A-Based PLC 9 data are serially clocked in (when RB7 = 1; through RB0 data in and RB6 clock in pins). If there is only one I/O extension board used, then eight clock_in signals are enough to get the eight input signals. For each additional I/O extension board, eight more clock_in signals are necessary. The serial data coming from the I/O extension board(s) are taken from the SI input of the 74HC/LS165. 7 for the first I/O extension board). Each relay operates with 12 V DC and is driven by an 8-bit serial-to-parallel converter register/driver TPIC6B595.

Download PDF sample

Rated 4.61 of 5 – based on 39 votes