Building a Programmable Logic Controller with a PIC16F648A by Murat Uzam

By Murat Uzam

Programmable good judgment controllers (PLCs) are commonly utilized in to accomplish automation projects, with brands providing numerous PLCs that fluctuate in capabilities, software stories, and the variety of inputs/outputs (I/O). no longer unusually, the layout and implementation of those PLCs have lengthy been a mystery of brands. Unveiling the mysteries of PLC expertise, Building a Programmable good judgment Controller with PIC16F648A Microcontroller explains how you can 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 booklet is predicated on a much better model of the venture, including:

  • Updates to the configuration, with a smaller CPU board and I/O extension forums that now aid 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 e-book, the writer offers specified causes of and software program buildings. He additionally describes PIC meeting macros for all simple PLC services, that are illustrated with quite a few examples and flowcharts. An accompanying CD includes resource documents (.ASM) and item documents (.HEX) for the entire examples within the ebook. It additionally offers revealed circuit board (PCB) (Gerber and .pdf) records so you might have the CPU board and I/O extension forums produced by means of a PCB producer or produce your personal boards.

Making PLCs extra simply obtainable, this precise booklet is written for complicated scholars, working towards engineers, and hobbyists who are looking to how one can 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 of an MPLAB built-in improvement environment.

Show description

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

Best microelectronics books

Area Array Packaging Handbook: Manufacturing and Assembly

It presents an effective and precious to be had fast connection with the undefined. intensity of the content material can also be correct for advertising and administration those that desire a few wisdom of the sphere. The booklet is in spite of the fact that, too basic for digital Engineer. however, the photographs within will not be in reliable answer.

Handbook of Contamination Control in Microelectronics - Principles, Applications and Technology

Covers the fundamentals of infection keep watch over for the newbie, whereas additionally focusing intensive on serious problems with technique engineering and circuit production for the extra complex reader. Stresses to readers that what makes the world of illness keep watch over targeted is its ubiquitous nature, throughout all features of semiconductor production.

Programming the Propeller with Spin : a beginner's guide to parallel processing

Parallel Processing With the Propeller--Made effortless! "This ebook may still discover a position on any Propellerhead's bookshelf, among Parallax's Propeller handbook and its Programming and Customizing the Multicore Propeller volumes. " Make: 24 Programming the Propeller with Spin: A Beginner's consultant to Parallel Processing walks you thru the fundamental abilities you must construct and regulate units utilizing the Propeller chip and its parallel processing setting.

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

Sample text

Tcnst_01: An integer constant value from 1 to 255. Debouncing time 1 (dt1) is obtained by this formula: dt1 = the period of (t_reg,t_bit) × tcnst_01. tcnst _10: An integer constant value from 1 to 255. Debouncing time 2 (dt2) is obtained by this formula: dt2 = the period of (t_reg,t_bit) × tcnst_10. OUT(rego,bito): A Boolean variable passed out of the macro through rego,bito. It represents the output signal, which is the debounced version of the input signal. is also necessary to define eight 8-bit variables in successive SRAM locations, the first of which is to be defined as DBNCR1.

As is well known, a PLC scan cycle includes the following: obtain the inputs, run the user program, and update the outputs. This cycle is repeated as long as the PLC runs. Before getting into these endless PLC scan cycles, the initial conditions of the PLC are set up in the initialization stage. 1, where initialize is a macro for setting up the initial conditions, get_inputs is a macro for getting and handling the inputs, and send_outputs is a macro for updating the outputs. The user PLC program must be placed between get_inputs and send_outputs.

Timer_2 is defined for storing the high byte of the free-running timing signals. The low byte of the free-running timing signals is stored in TMR0 (recalled as Timer_1). 3. 2 (a) The definition of 8-bit variables to be used in the basic software. 2 (Continued) (b) Their allocation in BANK 0 of SRAM data memory. 4. The following definitions are self-explanatory: 74HC165, TPIC6B595, 16 INPUTS, 16 OUTPUTS, and 32 memory bits. 3 BANK macros. 4 Definitions of 1-bit (Boolean) variables: (a) 16 inputs, (b) 16 outputs.

Download PDF sample

Rated 4.15 of 5 – based on 5 votes