Monday, April 15, 2013

MicroLogix 1100 - Setup

Since I'll be using the MicroLogix 1100 in class (Mechanical Engineering), I think many would find this information helpful. I'll be using the Allen-Bradley MicroLogix 1100 because it is the one available. 

Interestingly enough, software for programming it can be downloaded for free from the vendor (Rockwell Software).

PLCs are not inexpensive, they are industrial equipment for a reason, so prices can range from relatively economical to insanely expensive (from a student's viewpoint anyway). The complexity of the process is what guides this decision


The MicroLogix 1100 is moderately priced (from about US $200 on ebay). The MicroLogix 1200 seems to be more bang for the buck (24 inputs, 16 outputs) against the 1100 (10 inputs, 6 outputs) among other perks. The 1000 model is another option, while the 1400 seems to be popular for industrial applications.

Anyway, from an educative standpoint, if you can afford it, go for it. However, when budget is a limitation, even free software can mold a decision.


Given that Rockwell Automation (company parent of Allen-Bradley) gives for free software for the MicroLogix 1000 and 1100. It makes it easier to decide.

What is needed?

Go to this link and download the RSLogix Micro Starter Lite and the RSLinx Lite. There is even an Emulator if you don't have the hardware (for MicroLogix 1000, 1100, 1200, 1400 and 1500).

Once you install them, there are 3 steps.
  • Configure an IP address on the PLC (so it can start communicating with the PC): You need the  BOOTP-DHPC (included with RSLinx)
  • Configure the drivers (so the PC can talk with the PLC): Using the RSLinx Classic (Lite)
  • Start programming: Using the RSLogix Micro Starter Lite

For Windows XP, Rockwell provides a nice straightforward tutorial for the configuration of BOOT-DHPC. You need a PC with a network, LAN or Ethernet port and a network cable as well for this step. The PC talks to the PLC using a network cable.

Configuring BOOTP-DHPC is not complicated for a desktop computer, but laptops...especially with Windows 7... requires a couple of extra steps.

Dr. Jeff Jackson from the Department of the Electrical and Computer Engineering of the University of Alabama already has a nice tutorial that you could use.

Anyway, I'll be posting my step-by-step instructions too.

First time you open the BOOTP-DHPC it will ask to configure the network settings. Choosing 255.255.255.0 for the Subnet Mask is enough. You can modify this value later.

From Wikipedia: BOOTP stands for Bootstrap protocol 

Debido a que estaré usando el MicroLogix 1100 en clase (Ingeniería Mecánica), pienso que otros encontrarán útil esta información. Estaré usando el Allen-Bradley Micrologix 1100 porque es el que tenemos disponible.

De forma curiosa, el software para programarlo se puede descargar gratis desde la página del vendedor (Rockwell Software).

Los PLCs no son económicos, por algo son equipos de uso industrial, los precios varian de moderadamente económicos a muy costosos (desde el punto de vista de un estudiante). La complejidad del proceso es quien dicta esta decisión.

El MicroLogix 1100 es medianamente costoso (desde US $200 en ebay). El MicroLogix 1200 ofrece más por el precio (24 entradas, 16 salidas contra el 1100 (10 entradas, 6 salidas) entre otras cosas. El modelo 1000 es otra opción, mientras que el 1400 parece ser popular en aplicaciones industriales.

Desde el punto de vista educativo, si lo puedes pagar, consíguelo. Sin embargo, cuando el presupuesto es una limitante, hasta el software gratis puede moldear una decisión.

Ya que Rockell Automation (la companía matriz de Allen-Bradley) provee el software libre de costo para el Micrologix 1000 y 1100, hace la decisión fácil.


¿Que se necesita?

Ir a este enlace y descargar el RSLogix Micro Starter Lite y el RSLinx Lite. Inlcuso, hay un emulador si no tienes el equipo físico (para el MicroLogix 1000, 1100, 1200, 1400 y 1500).

Una vez instalado, son 3 pasoa a seguir:
  • Configurar una dirección IP en el PLC (para iniciar la comunicación con el PC): Se necesita el BOOTP-DHCP (incluído con el RSLinx)
  • Configurar los drivers (para que el PC pueda hablar con el PLC): Se usa el RSLinx Classic (Lite).
  • Programar: Usar el RSLogix Micro Starter Lite

Para Windows XP, Rockwell provee un tutorial para la configuración del BOOTP-DHCP. Se necesita para ello un PC con un puerto de red, LAN o Eternet y un cable de red. El PC se comunica con el PLC a través de un cable de red.


Configurar el BOOTP-DHCP no es complicado para un PC de escritorio, pero los portátiles... especialmente con Windows 7...  requieren de pasos extra.

Dr. Jeff Jackson del Departamento de Ingeniería Eléctrica y Computadoras de la Universidad de Alabama tiene un buen tutorial que se puede usar.

De todas maneras estaré colocando las instrucciones detalladas.

La primera vez que se abre el BOOTP-DHCP se pide configurar la red. Escogiendo 255.255.255.0 para el Subnet Mask es suficiente. Estos valores también se pueden modificar luego.

De Wikipedia: BOOTP (Bootstrap Protocol) es un protocolo usado por clientes de red para obtener una dirección IP. El DHCP (protocolo de configuración dinánica de host), es un protocolo basado en BOOTP avanzado. Muchos servidores de DHCP también ofrecen soporte para BOOTP)

Network Settings recommended for BOOTP-DHCP Server
Configuración recomendada para el servidor de BOOTP-DHCP


BOOTP-DHCP Server window
Ventana del servidor de BOOTP-DHCP 


IP Address Configuration

You need to configure an IP Address for the PLC based on the IP Address of the PC. Open a Command Prompt (cmd), write ipconfig and hit enter.


If you are using a desktop PC without a wireless network card, you should see an image similar to the one below, showing only the Ethernet configuration. You need to look for the IP Address (IPv4 Address).

If you have an IP address, you can skip this part and go to BOOTP-DHCP configuration section.




Configuración de la Dirección IP

Se necesita un adirección de IP para el PLC basado en la dirección de IP del PC. Abrir una ventana  de comandos o "Command Prompt"  (cmd) escribir ipconfig y dar enter.

En una PC de escritorio sin tarjeta de red wireless, se puede ver una imagen similar a la de primera de abajo, que muestra la configuración de Ethernet. Hay que buscar la dirección IP (IPv4 Address).

Si tienes la dirección de IP, puedes saltar esta parte e ir a la configuración del Servidor de BOOTP-DHCP.


PC with only one network configuration
PC con una sóla configuración de red

PC with only one network connection
PC con usa sola configuración de red



Laptop with several network connections disabled
Portátil con varias conexiones de red deshabilitadas




If you are using a laptop, it is probable that you'll see several adapter configurations (Windows 7 may list several, my laptop shows 2 LAN connections when there is 1 port). You need to look for one that says Ethernet adapter Local Area Connection. If there are several connections, you might need to disconnect or disable the others (at least temprarily). If you don't see the IP Address, you will need to configure one.

So, go to Control Panel and open Network Connections. You may need to disable temporarily connections other than the LAN (the physical port)


Likely configuration for a laptop connected to a wireless network
Configuración probable de un portátil conectado a una red  wireless


Windows 7:

Once you have disabled the other connections, you need to check and or set a fixed IP Address for your PC. Right click, and select Properties for your Local Area Connection (LAN), and look for Internet protocol version 4 (TCP/IPv4). Choose Properties again.

Once you are there, check if your PC has a fixed or dynamic (IP address set automatically). PCs in institutions might have a fixed IP, just record the number some place else. Most home PCs or laptops have this set dynamically.


If you could not locate an IP Address with  the ipconfig  option from above, it is likely you will have to setup one here. For this example, I set my IP Address to 192.168.2.2 and the Subnet Mask as 255.255.255.0.

Remember to undo any changes later on if you need connect to a LAN.







Si estas usando un portátil, es probable que existan varias configuraciones (Windows 7 puede mostrar varias, mi portátil muestra 2 puertos de LAN cuando sólo hay 1). Hay que buscar por el que dice Ethernet adapter Local Area Connection. Si hay varias conexiones, puede que sea necesario desconectar o deshabilitar las otras (al menos de forma temporal). Si no ves una dirección de IP, es necesario configurar una.

Ir a Panel de Control y abrir Conexiones de Red. Puede que necesites desconectar de forma temporal las conexiones que no sean las del LAN (el puerto físico).

Laptop with wireless off and disabled connections except for the LAN port
Portátil con el wireless apagado y todas las conexiones deshabilitadas excepto por el LAN


Windows 7:

Una vez estén deshabilitadas las otras conexiones, es necesario verificar o configurar una dirección fija de IP del PC. Clic con el botón derecho y seleccionar Propiedades para el LAN, y verificar para el para el protocolo de la versión 4 (TCP/IPv4). Escoger Propiedades de nuevo.

Una vez allí, revisa si el PC tiene una dirección fija de IP o dinámica (Dirección de IP seleccionada de forma automática). PCs en instituciones pueden tener un IP fijo, apuntar ese número. PCs caseras o portátiles tienen esta opción de forma automática.

Si no se puede localizar una dirección de IP con la opción ipconfig  de arriba, es probable que sea necesario configurar una. Para este ejemplo, seleccioné la dirección IP como 192.168.2.2 y el Subnet Mask como 255.255.255.0.

Recuerda deshacer cualquier cambio si necesitas conectarte al LAN.





BOOTP-DHCP Server Configuration

Once you have the IP address of your PC, you need to configure one for the PLC. The IP address will be the same except for the last number, pick your number (it is 2 for my PC and will be 3 for the PLC). 

On the BOOTP window, double click on the Ethernet Adress (MAC) of the PLC in the upper part of the window (Request History). You can also select it and hit the Add to Relation List button.

Once you have the New Entry window, it should register the Ethernet Address (MAC) of your PLC. Then, you need to type the IP Address for the PLC (192.168.2.3 in this example), and hit OK. This will assign the IP address to the PLC (remember, it should not be equal to the PLC, otherwise the PC will try to talk with the PC!, and that's not the plan).

After a while, the BOOTP-DHCP Server will read the assigned IP Address on the upper part (Request History). After a minute or two, the IP address must appear on the PLC display under Ethernet Configuration (Advance Set > ENET Cfg). You need to check to be sure, otherwise the communication channel is not established yet.
Configuración del Servidor de BOOTP-DHCP

Una vez se tiene la dirección de IP del PC, es necesario configurar una par el PLC. La dirección de IP será idéntica excepto por la última cifra, escoge un número (es 2 para el PC y será 3 para el PLC).

En la ventana del BOOTP, doble clic sobre la Ethernet Adress (MAC) del PLC en la parte de arriba (Request History). También se puede seleccionar y hacer clic en el botón de Add to Relation List.

Una vez que tengas la ventana New Entry, debe mostrar el Ethernet Address (MAC) del PLC. Hay que escribir la dirección IP para el PLC (192.168.2.3 en el ejemplo) y click en OK. Esto asigna la dirección IP al PLC (recordar que la dirección no debe ser idéntica a la del PC, de lo contrario el PC intentará hablar con el PC, y ese no es el plan).

Después de un rato, el servidor de BOOTP-DHCP mostrará la dirección asignada en la parte superior (Request History). Después de un minuto o dos, la dirección IP debe de aparecer en la pantalla PLC bajo la Configuración de Ethernet (Advance Set > ENET Cfg). Hay que revisar, de lo contrario la comunicación aún no está establecida.



Configuriation the IP Address for the PLC
Configuración de la dirección IP del PLC



The assigned IP Address appears registered on top
La dirección  IP asignada aparece registrada arriba

PLC without assigned IP Address
PLC sin dirección IP asignada


PLC with assigned IP Address by BOOTP-DHCP
PLC con dirección IP asignada con el BOOTP-DHCP


If you see an IP address on the PLC display, you are ready to configure the drivers and start programming.

You can save this configuration for next time (only double click on the saved file when closing this program). If you follow the instructions from Rockwell, you can set a fixed IP Address when you hit the Disable  BOOTP/DHCP button. However, you will need to use RSLinx Classic to deselect that feature in case you need to setup another IP Address. 


If you choose Disable  BOOTP/DHCP, you will not be able to use BOOTP-DHCP if you want to change the IP Address until after you configure this using RSLinx Classic.

So, if the IP Address of the PC doesn't change or if it is for a fixed application (like industry), you want the IP Address fixed. Otherwise, when you power down the PLC this will be reset and you will need to configure again the IP Address. Which is a good experience for classes or if you own a laptop.


If you don't see it, you'll need to check if the computer IP Address is set statically and there are no other network connections enabled. Try power cycle (disconnect and connect the PLC power supply) and assign again the IP Address.

Once you are done, it is preferable to close the window, don't save a file, and don't choose the  Disable  BOOTP/DHCP button. Anyway, you need to read above first. 



Si ves la dirección IP en la pantall del PLC, estás listo para configurar los drivers y comenzar a programar.

Esta configuración puede ser salvada para la próxima vez (haciendo doble clic en el archivo salvado cuando se cierra el programa). Si se siguen las instrucciones de Rockwell, se puede asignar una dirección fija de IP  cuando se activa el botón de Disable  BOOTP/DHCP. Sin embargo, hace falta usar RSLinx Classic para deshabilitar esa opción en caso de necesitar configurar otra dirección de IP. 

Es decir, el activar  Disable  BOOTP/DHCP no permite  volver a usar el BOOTP-DHCP para cambiar la dirección de IP hasta después de configurarlo en el RSLinx Classic.

Entonces, si la dirección de IP del PC no cambia o es para una aplicación fija (como en industria), es conveniente dejar la dirección IP fija. De lo contrario, cuando se desconecta el PLC de la corriente, esto borra esa asignación y es necesario configurar de nuevo la dirección de IP. Lo cual es una buena experiencia para clases o si tienes un portátil.

Si no aparece, hay que revisar si la dirección IP del computador está configurada estática y que no hallan más conexiones de red habilitadas. Intenta conectar y desconectar la corriente del PLC y asignar nuevamente la dirección IP.

Una vez termines, es preferible cerrar la ventana, no salvar archivos y no escoger el botón de Disable  BOOTP/DHCP. De todas maneras, es necesario leer lo que está arriba.
Driver Configuration

Open RSLinx Classic Lite, it will appear only as RSLinx Classic. Go to the Communications menu and select Configure Drivers.

Configuración de los Drivers

Abrir RSLinx Classic Lite, aparece como RSLinx Classic. Ir al menú de Communications y selecciona Configure Drivers.





From the drop-down menu on Available Driver Types, choose EtherNet/IP Driver (it is an ethernet connection with an IP address for a reason). You can leave the default name or choose one on the Add New RSLinx Classic Driver window.

En el menú desplegable en Available Driver Types, escoger EtherNet/IP Driver (por algo la configuración de eternet y una dirección de IP). Puedes dejar el nombre por defecto o escoger uno en la ventana de Add New RSLinx Classic Driver.





Make sure you select the controller with the PC IP Address (192.168.2.2 for this example). You might see others depending on your network connections or if you enabled the network connections that were disabled.

Once you hit OK, you need to make sure that the Configured Drivers list has an status of Running. Otherwise, you need to hit Start. See example below.

Drivers are already configured for the IP Address selected. If you change the PC IP Address, you'll need to repeat this step.


Asegurarse que se seleccione el controlador con la dirección IP del PC (192.168.2.2 para este ejemplo). Puede que aparezcan otras conexiones de red o si se habilitaron conexiones que estaban deshabilitadas.

Una vez que se da OK, hay que verificar que en la lista de Configured Drivers aparece con un estado de Running. De lo contrario, es necesario dar Start. Ver las imágenes de abajo.

Los drivers ya están configurados para la dirección de IP seleccionada. Si la dirección de IP del PC cambia, es necesario repetir este paso.





You need to verify everything is running smoothly.  Go to Communications, select RSWho, and under the Ethernet Driver tree, you must see the IP adress assigned to the PLC as connected. You can close this program.

Finally you are ready to start programming.


Hace falta verificar que todo corre como debería. Ir a Communications, seleccionar RSWho, y bajo el menú de del driver de Ethernet, debe de aparecer la dirección IP asignada al PLC como conectado. Puedes cerrar este programa.

Finalmente ya está todo listo para empezar a programar.





How To Start Programming

Open RSLogix Micro Starter Lite. You can open a New File and choose from the menu the right configuration, or go to the Comms Menu, and select  the option Who Active Go Online. You should be able to see the device with the IP Address you configured earlier. 

Choose the PLC IP Address and hit Create New File. It will pick up the right processor information for the PLC connected, or you can do it manually from the New File menu.



Como empezar a programar

Abrir  RSLogix Micro Starter Lite. Puedes abrir un archivo nuevo en el menú de New File y escoger la configuración correcta, o puedes ir al menú de Comms y seleccionar la opción de Who Active Go Online. Debería ver el equipo configurado con la dirección IP.

Escoger la dirección IP del PLC y seleccionar  Create New File. Esto configura la informacion correcta del procesador  para el PLC que est;a conectado. También se puede hacer de forma manual desde el menú de New File.









The first time it runs it will load whatever is saved on the PLC memory. See below.

If you want to start programming, you need to select OFFLINE from the first drop down menu on the left. Follow the instructions, until you see a window similar to one on the bottom right.

So, you are ready to start programming.

La primera vez que el programa corre va a cargar lo que estaba en la memoria del PLC. Imagen de abajo a la izquierda.

Si quieres programar, es necesario seleccionar OFFLINE en el menú desplegable de la izquierda. Seguir las instrucciones hasta tener una ventana similar a la de abajo.

Finalmente, ya estas listo para empezar a programar.







1 comment: