Banner

Sponsors

A+ R A-

CHAPTER 5 GETTING THE LANGUAGE LADDER (LADDER) ON PLC's

E-mail Print

To start we need to know to program a PLC programming environment under which we will. Normally this is graphical programming environment, and is known by the name of "Language Ladder," but his official title is the Ladder Diagram.

It should be noted that various programming languages ​​for PLC, but the language called Ladder is the most common and nearly all PLC manufacturers incorporate it as basic programming language.

The Language Ladder is the same for all models of PLC, which changes from manufacturer to manufacturer and from model to model is the microcontroller used, and for this reason that differs between the PLC is the way the software interprets the symbols of contacts in Ladder language. The programming software is responsible for generating the microcontroller assembly code that has the PLC, so if a manufacturer of PLC uses Motorola ® HC11 microcontrollers or the Z80 ® or the microchip PIC or AVR ® atmel ® and so on. Code for each PLC that is created is different in that by its very nature microcontrollers codes are different, although the Language Ladder is the same for all PLCs.

Figura 5. 1 Lenguaje en Escalera de un PLC

Figure 5. 1 Language in a PLC ladder


This time widely described using the software of our PLC programming, and although it was mentioned in earlier lines generated code is different between various brands of PLC ladder language is the same for all, and at the end of accounts that is what we want to program a PLC, so do learn to program a Siemens ® brand, implicitly we get the same knowledge to program one of the GE-Fanuc ® brand, and so on.

You can use any model of PLC, including manufactured by any manufacturer, this means that depending on the selected PLC can be even from 6 inputs and 6 outputs. But for the moment this aspect is not important, as the ladder language is functional for any PLC, and therefore one must take into account the number of inputs and outputs that owns the PLC.

For all readers can put into practice everything I learned on the subject of PLC, Cinda Software offers them a software PLC (simulator) which is important characteristics to possess the same ability to work any name brand (in this same category of course) Allen Bradley or Siemens call it for example. and also the software can be found in our language, namely Spanish.

To program the PLC (in our case we can simulate) with an industrial application or with a test program as we will be developing in these examples, the first action we have to do is open the software program called "MiPlc" that previously had to be installed (or unzipped), this program can be downloaded from the internet page Figura 5. 3 Icono de acceso rápido en el escritorio de la pc

Figure 5. 3 shortcut icon on the desktop of the PC

Once you double click on the icon of the programming software MiPlc Welcome window appears in which observed data from the PLC manufacturer, emails and phone numbers in case you wish to contact them directly, to enter the program you must press on the box labeled OK.

Figura 5. 4 Ventana de Bienvenida.

Once inside the PLC program we need to go to the Tools menu and select the Serial Port is called as a next step is to select the Configure Port option, as illustrated in Figure 5.5. The above action would cause it to open the window labeled setup, in which you configure the serial communication features to be established between the PLC and the computer so that data are normally left as illustrated in Figure 5.6, and when we entered this data oppressed with the mouse pointer on the OK button, causing it to open the serial communication channel. We can say with certainty that our PLC software has been configured properly for this to operate, so what follows is to enter the symbols for the program.

Figura 5. 5 Configuración del puerto serie.

Figure 5. 5 Configuring the serial port.

In Figure 5.7 is an image of the PLC programming software identifies where component parts are the following: Tools menu, shortcut buttons, menus and the specific work activity status between PLC and computer.

Figura 5. 6 Datos para configurar el puerto serie.

Figure 5. 6 Data to configure the serial port.

As a first step in starting a program has to create a new project, so we headed to the Project menu, and then the New command, as shown in Figure 5.8.

Figura 5. 7 Partes del programa del PLC.

Figure 5. 7 Parts of the PLC program.

Once opened a new step we are able to begin entering data symbols for the ladder language to build our program. So now select the specific menu of work called "Elements", since in this section are the symbols representing the operations that the program has to be interpreted, then we will describe symbol symbol:

Figura 5. 8 Creando un nuevo proyecto.

Figure 5. 8 Creating a new project.

Figura 5. 9 Primer escalón.

Figure 5. 9 First step.

The first set of symbols corresponds to variable input signals, these are referred to as normally open (NO) and normally closed (NC), and its main function is to inform the PLC logic state in which the variables are physical which are captured by sensors, and as the contacts of a relay, when it is de-energized the NO contact is open, while the NC contact is closed, and when activated the NO contact closes and NC contact opens, or, in other words there is a change of state when the contacts are handled.

figura 5. 10 variables de entrada

Figura 5. 11 Configuración de las entradas.
Figura 5. 12 Variables de salida.
The momentary output represents a logical state we will do anything on or off actuator, this output is characterized by the mode of operation that tells us to have a logical "1" output is the indispensable requirement that the conditions that prevail entry is maintained as long as is necessary for the logical "1" exists, otherwise it will take is a logical "0" to the exit. The stored output contains an implicit memory, which is very useful to maintain state of logical "1" for the duration of time the process requires it, and all you have to do is activate the output memory when stored output is activated no matter what conditions change, the state of logical "1" remains unchanged. Now, whenever necessary to have to cancel the memory or you can say that will go out, or will the state of logical "0", which has to do is activate the corresponding deactivation.
Figura 5. 13 Configuración de las salidas.
Figura 5. 14 Elección del Temporizador.
Figura 5. 15 Símbolos del contador.
Figura 5. 16 Llamadas de funciones.
Figura 5. 17 Herramientas para abrir y cerrar una rama.
Once we entered all the symbols of our ladder-language program, is recommended before the PLC program to simulate the logic functions and be confident that our method works so we use the hot key question, as response of the above action would cause a window opens displaying the status there that are all inputs, outputs, timers, counters, etc..
Figura 5. 18 Ventana de simulación.
Figure 5. 18 simulation window.
For the simulation of our program we have to go in the box provided by manipulating the conditions, namely inputs and only enough to place the mouse pointer and press the left mouse button to change the logic state that it contained.
Figura 5. 19 Herramienta para descargar el código al PLC.
Figure 5. 19 Tools to download the code to the PLC.
When we have simulated the program and it runs all the logical conditions programmed it, and we are able to load the program to the PLC, so now we connect the programming cable to both the computer's serial port and to the corresponding terminal PLC, and for this we use the shortcut button.
Well, here described what I know is the environment of our program graph PLC, but the important thing to learn programming is to do an exercise that we have proposed throughout this book, and although it possesses any PLC, simply with the software to practice because it contains a simulator. On the other hand, it is also noteworthy that if in the future seek to program a PLC brand and pray with other features, there is no major problem since the ladder to learn the language, are learning to program virtually any PLC, this because Ladder language is universal for all.

Articulos Relacionados

Banner

Enlaces Externos

EMPIEZA EL CURSO AHORA GRATIS!!!

Curso Automatizacíon en Videos GRATIS: Más de 14 horas de VIDEO!!

Curso Casi GRATIS!!

Login

Registro

*
*
*
*
*

* Campo Requerido