IECuino - Ladder Programming

Por dónde empezar con el Lenguaje Ladder

Difunde el amor

Empieza con el Diagrama en Escalera en IECuino

En este post, vamos a explicarte cómo empezar con el Diagrama Ladder una vez que tu proyecto ya esté creado. After that, you have to access to the working area. Within the project environment, the system displays a Ladder Diagram by default.

En primer lugar, para empezar con Ladder Logic tienes que crear uno de los siguientes elementos con los que vas a trabajar:

  • Configuración del Ladder
  • Configuración de Arduino
  • Diagrama Ladder
  • Código Arduino
  • Lista de Variables Globales
  • Mapeo IO
  • Librería
  • Configuración

Solamente haz clic en el símbolo más (+) a la izquierda y elige el elemento que quieres crear.

Create File - IECuino - Online Ladder Logic Editor
Crear archivo - IECuino

Diagrama en Escalera para Arduino para empezar

Cómo crear un Diagrama Ladder

Tu Diagrama Ladder estará debajo de Task List (Lista de tareas). Sólo tienes que hacer clic en el Diagrama de Escalera en el que quieras trabajar para saltar de uno a otro. Cuando estés trabajando en el Ladder Logic, puedes añadir secciones desde el + en la esquina inferior derecha.

Secciones

Cuando una sección es creada, el símbolo (+) para crear una nueva, se mueve justo debajo de la sección creada por defecto.
Además, también puedes ver tres iconos en la esquina superior derecha de la sección creada. La primera se utiliza para clonar la sección. A continuación, como puedes ver, está el símbolo de eliminar para que puedas eliminar la sección de tu diagrama. Luego, con el símbolo de configuración , puedes cambiar el nombre y poner una descripción.

Contactos

En primer lugar, tiene que saber que debes instalar la IECuino Driver para empezar a programar.

Justo debajo del encabezado, hay tres pestañas que te van a permitir trabajar con contactos Básicos, Matemáticos y Lógicos.

Mientras trabajas con un Diagrama de Escalera, tienes los iconos de bloque disponibles y listos para añadir a tu sección.

Create IECuino Platform - Online Ladder Logic Editor
Plataforma Create IECuino

Puede añadir bloques arrastrando y soltando con el ratón o usando un teclado. Fíjate que puedes ver el atajo de teclado para añadir el elemento al Diagrama de Escalera. Es importante recordar estos atajos de teclado porque te permite programar mucho más rápido que con el ratón.

Además de eso, debes saber que muchos bloques pueden ser colocados en cualquier lugar del diagrama. Sin embargo, los contactos Normalmente Abiertos, Normalmente Cerrados y similares únicamente pueden ser colocados como entradas y más a la posición de la izquierda en el diagrama, no como salidas.

Properties

When you drop an element into the diagram or select a current element, the properties of the selected element appear on the right of the interface.

You will see that there are some fields that require to be completed. That fields have this symbol: *.

You can establish a relation between the element and a global variable present in your Global Variable List file.

Furthermore, you can add comments in case you need them.

Contact properties
Contact properties
Properties TON contact - IECuino Platfrom - Online Ladder Diagram Editor

On the other hand, you must know that the fields have to be completed with a value of the required type. In the following example, we use a TON contact. As you can notice, there is a required field, but it is also essential that the value you enter is a number.

Arduino’s code for Ladder Logic in IECuino

When programming with Arduino code in the IECuino environment, take into account that you do not need to use the usual loop.

Global Variable List (GVL)

By clicking on the plus icon close to Application, you can create new elements. If you create a GVL (Global Variable List), this element will be placed below the Application slot.

Create File - IECuino
Crear archivo - IECuino

By clicking on the plus icon on the right you can create the variables.
IECuino - Add global variable
You need to write the name of the variables WITHOUT spaces.

Choose the variable type (you have 18 different variables types) and add some comments, in case you need it.

It is always good to use adequate variable names.


The variables created here will be available to use on the Ladder Diagram and the IO Mapping.

IECuino - Global Variable - Start with Ladder Logic
Add a new file

With the icons placed on the right side, you can delete or edit the variables, changing the name, type or description.

Add a new global variable

If you want to delete a variable, remember that you must always confirm it by writing DELETE.

Delte a variable - Global Variable List - Online Ladder Diagram Editor
Delete a variable from the GVL

IO Mapping of the Arduino device

By clicking on the plus icon near to Application you can create new elements, a new File.

If you create an IO Mapping, this element will be placed below the Device slot.

Once created, you can start working with them.

IECuino - New Arduino IO Mapping

New IO Mapping

By clicking on the plus icon en el right, you can create the Mapeo IO of your project.
First, you need to choose la type of Input or Output, and then the corresponding number along with the variable assigned.

IO Mapping-Add new IO - Create IECuino
IO Mapping-Add new IO – Create IECuino

Edit or Delete

With the icons placed on the right-hand side, you can delete or edit the IO Mappings, change the name, type or description.

If you want to eliminar an element, remember that you need always to write DELETE.

IO Mapping - Edit IO - Create IECuino

Visit the platform. Start Programming!

IECuino logo - Online Ladder Logic Editor for Arduino Devices
es_ESSpanish