Let’s start learning the PLC programming

Let’s start learning the PLC programming

Prologue to PLC


For overseeing and control of the electrical frameworks there used to be utilized electromechanical transfers. In time as tehnology progressed came and PLC gadgets (Programable Rationales Controlers). 

Favorable position of a PLC gadgets over transfers is that they can be utilized for an alternate issues with a similar equipment, while transfers must be again overhauled to do some other capacity. 


We should begin learning the PLC programming 

How about we start learning the PLC programming 

Additionally there is the fund perspective since now PLC are less expensive at that point transfers. 

PLC Segments 

Each PLC is comprises from a few parts. Every producer gives his blend however we can dismantle a PLC on his key components: 

Power source 

CPU 

Information modul 

Yield modul 

There are tree sizes of a PLCs: Smaller than usual, medium or rack. 

Each of previously mentioned pieces of PLC must be provided with control (the regular tenderfoots misstep is that they interface only one modul of a PLC to control source and afterward just that modul works). 

We can supply moduls with air conditioning or DC current differently of our needs. In the greater part of cases on module we have a COM conector which is wired to a "- " end if DC or a "0" end if air conditioning and every connector of that modul must be provided with a "+" end of intensity source (on the off chance that we are utilizing air conditioning the right term is "hot" wire). 

A case of wiring power supply and module is appeared in Figure 1: 

Figure 1 - PLC control supply and module wiring 

Figure 1 – PLC control supply and module wiring 

Info modules are significant on the grounds that they convert checked an incentive into an electrical sign (in particular into bits). Yield moduls transform electrical bits into signals that follows up on actuator. 

Programming of a PLC 

Programing is done in a stepping stool programming condition ,thusly is received from anology with transfers on the grounds that with this there were less time expected to retrain experts and specialists who has just worked with transfers. 

In the wake of understanding the issue and before starting programming we have to "gather" all Information/Output(I/O) signals. Beetwen I/O moduls is CPU. 

Before we start programming we have to characterize some fundamental terms: 

Bitbox – as the name says it is a container containing a piece (it can hold just two bits:0 or 1) from whose worth depends conduct of guidance (it is essential to recall that this case is virtual) 

Guidance – activity inside program that necessities to check hers bitbox so as to execute . 

Enviroment in which is customizing being done fluctuates from maker of a PLC gadget however images are the equivalent so we can work in various projects without huge contrasts. On next pictures we can see RSLogix program. 

Figure 2 - Stepping stool programming 

Figure 2 – Stepping stool programming 

From Figure 2 we can perceive any reason why it is called stepping stool programming (we have two vertical lines between which is level lines with directions rangs) 

We will clarify some of images that can be seen while programming : 

Adresa 1 

This is XIC guidance. The most significant thing is to comprehend what this guidance does and how she does it. There are various translation of this guidance however as mine would like to think the most effortless for apprentice is : "Go search for 1". 

Fundamentally program tells guidance "go search for 1",someone would request that where look? Above guidance there is address of bitbox that should be checked. On the off chance that in bitbox, with address in this model "ADRESA_1",contains 0 then guidance is FALSE,while it gets 1 and afterward guidance is Valid. 

XIC INSTR. VIDEO 

Adresa 2 

This is XIO guidance. This guidance can be translated as "Go search for 0",which it looks for inside bitbox with a location "ADRESA_2" . 

XIO INSTR. VIDEO 

Adresa 3 

OTE guidance speak to excecutive direction. It very well may be translated as "Go compose 1" in bitbox with "ADRESA_3". All together that this guidance gets Genuine esteem and in this way "compose 1"in bitbox it have to have proceeds with line of Valid from left to the correct side in a rang. Respectivelly on the off chance that we have Bogus coming the guidance deciphers this as "Go compose 0". 

OTE INSTR. VIDEO 

Give us a chance to investigate a model in Figure 2. So as to excecutive direction "composes 1" we have to have next qualities inside bitboxes: 

ADRESA_1

ADRESA_2

Clarification: 

Program begins with XIC guidance and "searches for 1" on the off chance that there is inside bitbox with adress "ADRESA_1" esteem 1 then this guidance is TRUE,next we have XIO guidance that "searches for 0" on address "ADRESA_2" and on the off chance that bitbox has esteem 0, at that point this guidance is likewise Valid. Since we have continuos Valid from left to right executable guidance "proceeds to compose 1" inside bitbox "ADRESA_3". 

After that we can see that program closures and procedure start once more. 

Guidance Hook 

Guidance "Hook" that is excecutable, has trademark that if Genuine comes to it "Compose 1" same as OTE guidance however on the off chance that we have Bogus coming, at that point this guidance has direction "sit idle". 

Guidance UNLATCH 

Inverse of guidance lock we have guidance "UNLATCH" that if has Genuine coming to it deciphers as "Go compose 0" yet on the off chance that it has Bogus going to her she inreprets as "sit idle".

Post a Comment

0 Comments