Design and Implementation of Programmable Logic Controller (PLC) Using System on Programmable Chip (SOPC)

Similar documents
International Journal of Modern Trends in Engineering and Research. Synthesis and Implementation of PLC on FPGA

PLC AUTOMATION USING VHDL PROGRAMMING

Design and Synthesis of PLC on FPGA

Novel Design of Dual Core RISC Architecture Implementation

FSM-based Digital Design using Veriiog HDL

Realization of BCD and Binary Inter Conversions and Coil Control Operations for Ladder Diagram based Programmable Controller

Efficient VLSI Huffman encoder implementation and its application in high rate serial data encoding

Design and Implementation of Hamming Code on FPGA using Verilog

Keywords: Soft Core Processor, Arithmetic and Logical Unit, Back End Implementation and Front End Implementation.

EITF35 - Introduction to the Structured VLSI Design (Fall 2016) Interfacing Keyboard with FPGA Board. (FPGA Interfacing) Teacher: Dr.

DESIGN AND IMPLEMENTATION OF FPGA BASED MULTIPURPOSE REAL-TIME CONTROLLER FOR HYBRID STEPPER MOTOR

Ch 9 Discrete Control Using PLCs and PCs

Multi Cycle Implementation Scheme for 8 bit Microprocessor by VHDL

An FPGA Project for use in a Digital Logic Course

Implementing Synchronous Counter using Data Mining Techniques

Lab 3 Sequential Logic for Synthesis. FPGA Design Flow.

Design of a Multiplier Architecture Based on LUT and VHBCSE Algorithm For FIR Filter

Converting PLC instruction sequence into logic circuit: A preliminary study

Design and Implementation of High Security Optical Shaft Encoder for an Artificial Limb using Xilinx on FPGA

Instruction. Chapter 1 PLC Ladder Diagram and the Coding Rules of Mnemonic

Field Programmable Gate Array

Evolution of CAD Tools & Verilog HDL Definition

CO SIMULATION OF GENERIC POWER CONVERTER USING MATLAB/SIMULINK AND MODELSIM

VHDL CODE FOR SINGLE BIT ERROR DETECTION AND CORRECTION WITH EVEN PARITY CHECK METHOD USING XILINX 9.2i

VHDL-MODELING OF A GAS LASER S GAS DISCHARGE CIRCUIT Nataliya Golian, Vera Golian, Olga Kalynychenko

High Speed Fault Injection Tool (FITO) Implemented With VHDL on FPGA For Testing Fault Tolerant Designs

plc operation Topics: The computer structure of a PLC The sanity check, input, output and logic scans Status and memory types 686 CPU

FPGA Based Graphics Controller

Development of Virtual Machine for Programmable Logic Controller (PLC) by Using STEPS Programming Method

Chapter 2 Getting Hands on Altera Quartus II Software

Verification of Multiprocessor system using Hardware/Software Co-simulation

V1 - VHDL Language. FPGA Programming with VHDL and Simulation (through the training Xilinx, Lattice or Actel FPGA are targeted) Objectives

Pretest Programmable Logic Controllers. Unit 1, Task 1

A VLSI Implementation of High Speed FSM-based programmable Memory BIST Controller

Matrix Manipulation Using High Computing Field Programmable Gate Arrays

Implementation of Galois Field Arithmetic Unit on FPGA

128 Bit ECB-AES Crypto Core Design using Rijndeal Algorithm for Secure Communication

Simulation & Synthesis of FPGA Based & Resource Efficient Matrix Coprocessor Architecture

RIZALAFANDE CHE ISMAIL TKT. 3, BLOK A, PPK MIKRO-e KOMPLEKS PENGAJIAN KUKUM. SYNTHESIS OF COMBINATIONAL LOGIC (Chapter 8)

THE INTERNATIONAL JOURNAL OF SCIENCE & TECHNOLEDGE

ISSN Vol.05, Issue.12, December-2017, Pages:

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

MICRO-SEQUENCER BASED CONTROL UNIT DESIGN FOR A CENTRAL PROCESSING UNIT TAN CHANG HAI

DESIGN AND IMPLEMENTATION OF SDR SDRAM CONTROLLER IN VHDL. Shruti Hathwalia* 1, Meenakshi Yadav 2

ISSN Vol.02, Issue.11, December-2014, Pages:

Low Power and Memory Efficient FFT Architecture Using Modified CORDIC Algorithm

Chapter 2 Programmable Logic Controller (PLC) and Relay Ladder Logic (RLL).

SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE

Implementation of FFT Processor using Urdhva Tiryakbhyam Sutra of Vedic Mathematics

When addressing VLSI design most books start from a welldefined

DESIGN AND IMPLEMENTATION OF 8 BIT AND 16 BIT ALU USING VERILOG LANGUAGE

Lecture #1: Introduction

VHDL MODEL OF SMART SENSOR

International Journal of Advancements in Research & Technology, Volume 2, Issue 10, October ISSN

1 of 8. I. (13pts) TRUE OR FALSE

Developing Measurement and Control Applications with the LabVIEW FPGA Pioneer System

Implementation of Elevator control system based on PLC

: : (91-44) (Office) (91-44) (Residence)

Module 4. Programmable Logic Control Systems. Version 2 EE IIT, Kharagpur 1

ORIGINAL ARTICLE. Abstract. ISSN: (print) ISSN: (online)

ISSN: [Bilani* et al.,7(2): February, 2018] Impact Factor: 5.164

FPGA Interfacing of HD44780 Based LCD Using Delayed Finite State Machine (FSM)

16 BIT IMPLEMENTATION OF ASYNCHRONOUS TWOS COMPLEMENT ARRAY MULTIPLIER USING MODIFIED BAUGH-WOOLEY ALGORITHM AND ARCHITECTURE.

Lecture 1: Introduction Course arrangements Recap of basic digital design concepts EDA tool demonstration

Design of Convolution Encoder and Reconfigurable Viterbi Decoder

FPGA Based Digital Design Using Verilog HDL

Overview of Microcontroller and Embedded Systems

FPGA Design Challenge :Techkriti 14 Digital Design using Verilog Part 1

CALCULATION OF POWER CONSUMPTION IN 7 TRANSISTOR SRAM CELL USING CADENCE TOOL

Making the decision to switch from PLC to PC-based Control has gotten even easier with the introduction of MachineLogic Control Software.

Journal of Engineering Technology Volume 6, Special Issue on Technology Innovations and Applications Oct. 2017, PP

DESIGN AND IMPLEMENTATION OF 32-BIT CONTROLLER FOR INTERACTIVE INTERFACING WITH RECONFIGURABLE COMPUTING SYSTEMS

VHDL for Synthesis. Course Description. Course Duration. Goals

International Journal of Informative & Futuristic Research ISSN (Online):

Hardware Modeling using Verilog Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

MET 487 Instrumentation and Automatic Control. Topics of Discussion

FPGA-Based derivative module for bioimpedance signal

Digital Design Methodology

CHAPTER 6 FPGA IMPLEMENTATION OF ARBITERS ALGORITHM FOR NETWORK-ON-CHIP

Implementation of Low Power High Speed 32 bit ALU using FPGA

Deduction and Logic Implementation of the Fractal Scan Algorithm

Workshop on Digital Circuit Design in FPGA

HIGH-PERFORMANCE RECONFIGURABLE FIR FILTER USING PIPELINE TECHNIQUE

FPGA for Software Engineers

ISSN Vol.03, Issue.02, March-2015, Pages:

FPGA based Simulation of Clock Gated ALU Architecture with Multiplexed Logic Enable for Low Power Applications

TEACHING COMPUTER ARCHITECTURE THROUGH DESIGN PRACTICE. Guoping Wang 1. INTRODUCTION

Design and Implementation of 5 Stages Pipelined Architecture in 32 Bit RISC Processor

EECS150 - Digital Design Lecture 23 - High-Level Design (Part 1)

FPGA based Design of Low Power Reconfigurable Router for Network on Chip (NoC)

In this lecture, we will focus on two very important digital building blocks: counters which can either count events or keep time information, and

PLC Programming. Ladder Diagrams

DESIGN AND IMPLEMENTATION OF VLSI SYSTOLIC ARRAY MULTIPLIER FOR DSP APPLICATIONS

Virtual Plant for Control Program Verification

System Verification of Hardware Optimization Based on Edge Detection

Design and Implementation of High-Performance Master/Slave Memory Controller with Microcontroller Bus Architecture

Debouncing a Switch. A Design Example. Page 1

Implementation of low power wireless sensor node with fault tolerance mechanism

Implementation of High Speed Distributed Data Acquisition System

RTL LEVEL POWER OPTIMIZATION OF ETHERNET MEDIA ACCESS CONTROLLER

Transcription:

Design and Implementation of Programmable Logic Controller (PLC) Using System on Programmable Chip (SOPC) Vilas V Deotare 1, Arjun J. Khetia 2, Dinesh V Padole 3 Professor, Dept. of Electronics and Telecommunication, GHRCE, Nagpur, Maharashtra, India 1 Research Scholar, Dept. of Electronics and Telecommunication, GHRCE, Nagpur, Maharashtra, India 2,3 ABSTRACT: Programmable logic controller (PLC) is one of the most important components in today s manufacturing. Its performance-based microprocessor and software have been a bottleneck for improving its efficiency. To enhance the PLC performance and flexibility, a new PLC design based on field programmable gate array (FPGA) has been a hot topic because of its parallel execution mechanism and reconfigurable hardware structure. From practical viewpoint, in this paper, the authors propose an approach to implement the existing ladder diagram (LD) inside FPGA making full use of the advantage of FPGA device. The design also provides the GUI (Graphical User Interface) connectivity based controlling of designed PLC for the ease of monitoring and controlling the PLC and its applications from the control center. We can easily monitor and control different devices from Personal Computer (PCs). This discusses the implementation of FPGA based PLC that can be embedded into devices, machines & systems using suitable interface for industrial applications as well as for home applications. It provides Real-Time Speedy Operations and FPGA based Real-Time Control Systems with a capability to run multiple control tasks for reliable developing, monitoring and controlling of systems. The design results into highly cost-effective, compact and simple solution. KEYWORDS: Programmable Logic Controller (PLC), Automation, Very Large Scale Integration System (VLSI), System on Programmable Chip (SOPC). I. INTRODUCTION Programmable logic controllers (PLCs) have been widely used for the logic control in the manufacturing system [1]. In industrial application, ladder diagram is the most popular programming language for PLC development. Traditionally, PLC includes a microprocessor, and the ladder diagram is sequentially executed inside this PLC microprocessor in a cyclic scan period. Based on this solution, PLC performance is limited by the cyclic scan period, which depends on the program length and the microprocessor s processing speed. In order to overcome these drawbacks with the programmable hardware solution, field programmable gate array (FPGA)-based PLC has been focused on by many researchers with its reconfigurable hardware structure and parallel execution advantage. Miyazawa [2] and Ikeshita et al. [3] developed a very rough manner in 1999 to convert the graphic ladder diagram into program description of very highspeed integrated circuit hardware description language (VHDL). Chen and Patyra [4] designed a VHDL model of the whole system directly from the original system requirements to build a controller. Abdel-Hamid et al. [5] and Kuusilinna et al. [6] developed an algorithm to convert finite state machine (FSM) into VHDL. In FPGA design, parallel execution exists not only in one combinational logic operation but also in the multiple combinational logic operations. To the first case, in one combinational logic operation, there is only one output. But, all of the combinational logics which influence this output have been designed in a flat way as the existing circuit. The operation can be executed at the electrical speed. To the second case, in the multiple combinational logic operations, all of these combinational logic operations that influence every output have been designed in a flat way as the existing circuits. So they can occur in a parallel way. For the first case, it is very easy to be realized in VHDL. In this paper, the parallel execution to be discussed here specially means the second case. It is in a different way to implement PLC ladder diagram between inside microprocessor and inside FPGA. In microprocessor, the PLC instruction is sequentially executed line by line. Otherwise, in FPGA, all of probabilities of the Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7546

PLC instructions have been considered and designed with circuit, which can be activated by sensitive signals. In order to implement PLC ladder diagram inside FPGA, the sequential operations in the original ladder diagram should be kept. At the same time, the capability of parallel execution can be used to get more efficient performance. This paper will discuss how to implement the PLC ladder diagram in the sequential execution way and the parallel execution way inside FPGA. Programming language for FPGA is VHDL. In FPGA design, parallel execution exists not only in one combinational logic operation but also in the multiple combinational logic operations. The design also provides the GUI (Graphical User Interface) based controlling of designed PLC for the ease of controlling the PLC and its applications from the control room also. We can easily monitor and control different devices from Personal Computer (PCs). II. FPGA-BASED PLC DESIGN A. Hardware framework The hardware framework of FPGA-based PLC is shown in Figure 1. This framework includes FPGA chip, I/O unit, A/D module, reset circuit, power supply circuit, program memory chip EPCS4, JTAC download port etc. ISA interface is used for communication with host computer, I/O unit and A/D module are used for acquisition of digital and analog signals. Fig.1.FPGA-based PLC Hardware Framework B. Software Framework The This VHDL consists of two modules: One is ISA communication decoding module, which packages address decoding and latches data into the interface package. The other is generation module of VHDL program that has equivalent function with the ladder diagram. The difficult and key technology is how to convert the ladder diagram into VHDL. The Hardware/Software co-design Technology results in better solution providing following advantages: 1) Flexibility: Design engineers (PLC manufacturers) can easily upgrade the FPGA-PLC designs. For example some features or instructions could be added in the existing design, by changing Hardware Description Language (HDL) and configuring the same FPGA chip for the modified design of PLC. Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7547

2) Accuracy: Design being fast enables engineers to incorporate extremely time-critical functions to hardware such as limit and proximity sensor detection and sensor health monitoring resulting in more accurate solutions. 3) Short product development cycle: Due to the use of standard HDLs and automated design tools design time is much reduced. Also the control code runs directly in silicon, engineers can try out various implementations. 4) Cost effective and compactness: Due to above advantages designer can meet the market requirements by satisfying customer needs, increase the performance or functionality of the product. Hence result in high performance, low cost and compact designs as compared to the other available solutions. C. Relay Ladder Logic Relay ladder logic emulates a synchronous electromechanical relay panel. It pictures control logic as a one-way flow from a left rail of the ladder across its rungs toward coil elements along the right rail. Flow along a rung is passed or cut off by a series of relays (contacts), effectively defining logical products. Vertical paths between rungs allow flows to merge, effectively summing the rung products. All ladder logic dialects describe this same basic form. Figure 2 illustrates the graphical symbols used in programming relay ladder logic. Contacts are of two kinds. A normally open contact passes the flow when activated (i.e., closed), effectively inserting its variable into a product term. A normally closed contact passes the flow unless activated (i.e., opened), effectively inserting the complemented variable into the product. Coils are state variables.a set of adjacent rungs connected by vertical paths is called a network. On each cycle of operation, known as a scan, the flow for all networks is computed. Flow on an individual network implements a Boolean function for one state or output variable. Fig.2.Relay Ladder Logic Diagram III. IMPLEMENTATION OF FPGA-BASED PLC FPGA technology has great advantages to conduct new PLC design by comparison with the traditional software based PLC solution. FPGA-based PLC scheme can improve PLC performance, reduce manufacturing cost, and enforce flexibility of the logic control of the manufacturing system. In order to approach these goals, the essential point is to convert the PLC program into gate-level digital circuit expressions so that the same control logic of PLC represented in its program can be exactly reflected in the FPGA-based solution. Since the internal structure of FPGA is reconfigurable with input/output block and configurable logic block, the required circuit can be built as long as a ladder diagram is converted into RTL architecture and downloaded to the FPGA chip. Such an implementation will perform the same Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7548

functions as the original PLC ladder diagram, but not in the traditional sequential cyclic scan manner. The new solution can respond to the input signals with parallel execution at hardware processing speed, which dramatically improve the PLC speed. Moreover, it can be reconfigured any times as a new PLC program is converted and downloaded. IV. LADDER DIAGRAM PROGRAM The PLC performs its execution cyclically. It reads input status, executes logic and updates output status. It is called as a PLC scan. Scanning of ladder program occurs from left to right and top to bottom repeatedly. Scanning of complete ladder program is ladder scan cycle. There are two modes of operating a PLC 1) Program Mode: In this mode, the ladder program is loaded into the program memory of PLC. 2) Run/Execution: In this mode, the PLC executes the ladder logic cyclically. Figure 3 shows the translated circuit of PLC which can program on any FPGA with the help of Xilinx and controlled with user controlled software from personal computer. Fig.3.Design Architecture of PLC translated circuit V. DESIGN CONSIDERATIONS 1) Size:Size of the design increases with increase in number of instructions/functions, which a PLC can handle, number of rungs that can be connected in parallel (p). Hence designer can use an instruction set containing optimum instructions. 2) Scan Time: An important characteristic of PLC is the time required for one complete I/O scan and execution [11]. This depends on how many input and output channels are involved and length of ladder program. The speed of PLC execution depends on clock frequency of the processor. Higher the frequency less is the scan time. With the proposed design one can achieve very less scan times as every rung execution requires 2m clock cycles. Thus, if ladder program comprises of n rungs it will require 2mn clock cycles for PLC scan. Scan time can be further reduced by targeting faster, efficient architectures of FPGA thus achieving faster PLC. The demonstrated design could achieve 2.24-microsecond scan time at 100MHz clock for largest possible ladder logic in the design. Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7549

3) Memory: PLC requires memory to store program and temporary data. In conventional PLCs separate memory chips are used for this purpose. With the proposed design one can use the memory available inside same FPGA chip reducing extra circuitry and delays involved in read/write operations in conventional designs. This results in a faster and compact solution. The demonstrated design used block memory as user memory and distributed memory as data memory. Furthermore extra huge memory is available with hardware software co-design by using the system s memory to store and read data from ROM of computer. VI. SOFTWARE (GUI) Field Programmable Gate Array (FPGA) based Programmable Logic Controller (PLC) GUI is developed by using Visual Studio 2010 software in VB.Net language with serial (RS232) as USB connectivity. As shown in figure 4 the GUI (Graphical User Interface) screen, with monitoring as well as controlling and timer configuration module is also shown. Fig.4.Software GUI Screen VII. DESIGN TESTING AND RESULTS Thedesign results into highly cost-effective, compact and simple solution. As discussed in previous chapters, many applications can be developed and can be parallel executed with the help of the designed PLC. With the ModelSIM, the VHDL program can be simulated and the result is shown in Figure 5. Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7550

Fig.5.Simulation Waveforms of the Ladder Logic Functionality Theresults of simulation verify that the converted VHDL program can perform the same function as the ladder diagram does. Synthesize this VHDL program and download it to the FPGA, the control system will be implemented inside FPGA. VIII. CONCLUSION In order to overcome the performance limitation of the traditional microprocessor-based PLC and dramatically improve the PLC performance, in this paper, FPGA-based PLC is proposed. The idea has been implemented and demonstrated at smaller scale for typical application. Also the design is limited to digital I/O channels, it can be further extended for Analog I/O channels. Furthermore, as a programmable hardware solution, FPGA device is reconfigurable, which make it easier for the application system to be modified and maintained. The design method is more flexible. From a practical viewpoint, this research is still in a nascent stage of development. There are several mathematical issues that must be examined. With the rapidly increasing extension of instruction of the LD program and increasing requirements of PLC, much more research needs to be done to improve this work. ACKNOWLEDGMENT The authors would like to acknowledge their gratitude and vote of thanks to all the faculty members of Sinhgad Institute of Technology, especially to the Head of Department of Electronics and Telecommunication for providing the needed help and motivation. Also to their parents and friends for providing co-operation, necessary resources and support forever. REFERENCES 1. Neil W. Bergmann, Peter Waldeck& Sunil K. Shukla, FPGA Implementations of Ladder Diagrams, 2013 Canadian Center of Science and Education. Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7551

2. Zhu Huabing*, Liang Benlei, Dong Bolin, Feng Xiao, Research on FPGA-based Programmable Logic Controllers Technology, December 2013 Telkomnika. 3. C. Economakos and G. Economakos, FPGA Implementation of PLC Programs Using Automated High-Level Synthesis Tools, IEEE International Symposium on Industrial Electronics (ISIE 08), 2011, pp. 1908-1913. 4. C. Economakos and G. Economakos, Optimized FPGA Implementations of Demanding PLC Programs Based on Hardware High-Level Synthesis, 13th IEEE International Conference on Emarging Technologies and Factory Automation (ETFA 08), 2011, pp. 1002-1009. 5. Daoshan Du &XiaodongXu& Kazuo Yamazaki, A study on the generation of silicon-based hardware Plc by means of the direct conversion of the ladder diagram to circuit design language, May 2010 Springer. 6. DhanashriGawali&V.K.Sharma, FPGA BASED MICRO-PLC DESIGN APPROACH, 2009 IEEE. 7. Daoshan Du &Yadong Liu &XinguiGuo& Kazuo Yamazaki & Makoto Fujishima, Study on LD-VHDL conversion for FPGA-based PLC implementation, 2009 Springer. 8. S. Ichikawa, M. Akinaka, R. Ikeda, H. Yamamoto, Converting PLC Instruction Sequence into Logic Circuit: a Preliminary Study, IEEE International Symposium on Industrial Electronics (ISIE 2006), 2009, pp. 2930-2935 9. John T. Welch and Joan Carletta, A Direct Mapping FPGA Architecture for Industrial Process Control Applications, June 2000 IEEE. Copyright to IJIRCCE DOI: 10.15680/IJIRCCE.2015. 0308096 7552