Loading... Please wait...

Allen Bradley Micrologix Data Logging

As many of you know the Micrologix 1100, 1400, and 1500 have a new data logging feature that allows is acquire data from these units using only theMicrologix DataLog Extract Utility and RsLinx Lite , both which are downloadable free of charge from Allen Bradley’s website.

 

To be free, this is one of the most straight forward methods I have seen for acquiring data from a Programmable Logic Controller. Below is a step by step rundown on how to do it.

 

1. First we will create a new project with the processor type of a “Micrologix 1100 Series A”

Select PLC processor type to data log 

 

2. The on the left pane scroll down to Data Logging and double click Configuration

Micrologix data log configuration 

 

Right click “Data Log Configuration” and click “New”

Create a new data log for the Micrologix 

 

3. For this example we will record 10 records. This is a first in, last out system so if we continue to write data the oldest records will be overwritten.

Set the number of records for the Allen Bradley Micrologix to record 

 

4. For the Separator Character that will delimit our data we will use “Comma”

Set the file deliminator to comma 

 

5. For most applications, time stamping is desired so let’s check the “Date Stamp” and “Time Stamp” fields

Select time stamp and date stamp 

 

6. Now we will enter the addresses we wish to log. Note: The data must be in form of a word or double word. If you wish to log B3:0/5 then you must log the entire word, B3:0. We’ll get into how to extract the bit later. Also floating point data is not supported.

So let’s enter B3:0 and press the select key. You will now see it added to the “Current Address List”

dlimage013.png 

 

7. Let’s also add “T4:0.ACC”, “C5:0.ACC”, “R6:0.POS”, and “N7:0”

dlimage015.png 

 

8. Now go ahead and click “OK”. We have successfully completed our Data Logging Configuration. We can trigger our logging based off of practically anything. So let’s throw some code in there to vary our data and trigger the logging. Below is mine. There I no logic to it and you don’t have to copy it. The main thing is that you vary your data and trigger the DLG instruction for this example. Download your program a let it run long enough to trigger the Data Logging several times

dlimage017.png 

 

9. Open up the Micrologix DataLog Extract Utility

dlimage019.png 

 

10. Go to the Configuration menu and click “Select Devices…”

dlimage021.png 

 

11. Select your Micrologix. The path will vary depending on your network configuration

dlimage023.png 

 

12. Press the right arrow button to send it over to the “Selected Devices” and press OK

dlimage025.png 

 

13. Now we are ready to read our data. Go to the File menu and select “Read DataLog”

dlimage027.png 

 

14. You will now see your data in the right pane

dlimage029.png 

 

15. Now we may save this data to Excel and manipulate it as we need or import it into our data system as we need too.

dlimage031.png 

 

While this is a manual method of data logging it doesn’t take much to modify the GetDataLog.exe file to make it fairly automated. You can already schedule automatic polls of the data under the Configuration menu. With a few modifications to the exe file you can customize the column descriptions and add your paths of your PLCs permanently into the file.