How can I Connect a PLC Allen Bradly Micrologix 1400 with NI OPC Servers?

Updated Mar 30, 2023

Environment

Software

  • OPC Servers

I have an Allen Bradley Micrologix 1400 PLC and I want to connect it with NI OPC Servers. What steps should I follow to achieve it?

Follow these steps to configure the National Instruments OPC Server and connect to your Allen Bradley Micrologix 1400 PLC:
  1. Go to Start >>Search>>National Instruments >> NI OPC Sever 
  2. When you have NI OPC Server open, click on File >> New
  3. If a dialog box appears mentioning that a certain number of clients are going to be disconnected, click on the Yes button and select that the changes are NOT saved.
  4. Then click on  Click to add a channel.
 
 
  1. ​​​​Set a name to the channel, for example: Motor Control.
  1. Click on Next.
  2. From the list of Device Driver: select on ControlLogix Ethernet. 
  
  1. Click on Next. 
  2. Select the network adapter, preferably use the default adapter.
 
  1. Click on Next.
  2. In the window of Summary click on Finish.
  1. Click on Click to add a device. 
  1. Select a name for your device. 
  1. Select on Next. 
  2. From the drop-down menu of Device-Model select Micrologix 1400.
  1. Click on Next. 
  2. In the Device ID field, set the IP address of your PLC (example 192.168.0.100). NOTE:  The IP address depends on your PLC, it is recommended to ping the device address to make sure there is communication with it before configuring the OPC Server.
 
  1. Click on Next. 
  2. In the Summary window click on the Finish button.
  1. Now it only remains to add the tags for which you can click on the area where it says: Click to add a static tag. Tags are not required, but are browsable by OPC clients.
 
        Or directly in the taskbar icon
  1. Example of a label to write a single Boolean line: Output of port zero, line 0 (O: 0/0) Micrologix
  1. Example of a label to read a word: Input of word 71 (I: 71)
NOTE: For more information on the appropriate syntax, refer to the Help »Driver Help and select the ControlLogix Ethernet driver for this case. Within the help navigate to ControlLogix Ethernet »Address Descriptions» Micrologix 1400 Addressing. From the menu you can select Output Files, Input File, Timer Files, Counter Files, etc.