https://github.com/dylanparsons/plc-tag-extractor
A C# console application that connects to Allen-Bradley PLCs and extracts tag structures, exporting them to XML format for documentation and integration purposes.
https://github.com/dylanparsons/plc-tag-extractor
allen-bradley c-sharp industrial-automation plc xml
Last synced: 9 months ago
JSON representation
A C# console application that connects to Allen-Bradley PLCs and extracts tag structures, exporting them to XML format for documentation and integration purposes.
- Host: GitHub
- URL: https://github.com/dylanparsons/plc-tag-extractor
- Owner: dylanparsons
- License: mit
- Created: 2025-03-13T22:06:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T22:39:25.000Z (over 1 year ago)
- Last Synced: 2025-03-22T10:30:28.432Z (over 1 year ago)
- Topics: allen-bradley, c-sharp, industrial-automation, plc, xml
- Language: C#
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PLC Tag Extractor
## Overview
This repository contains sample code demonstrating how to extract tag structures from Allen-Bradley ControlLogix/CompactLogix PLCs using the InGear Logix Driver. The code traverses program structures and handles User-Defined Types (UDTs) with nested members, exporting them to XML.
## ⚠️ Important Disclaimer
This code requires the InGear Logix Driver, which is a commercial product not included in this repository. Users will need to purchase their own license to use this code.
## Code Sample
This repository contains a C# program that demonstrates:
- Connecting to an Allen-Bradley PLC using the InGear Logix Driver
- Extracting tag names and data types from all programs
- Processing User-Defined Types (UDTs) and their members
- Exporting the tag structure to an XML file
## Using This Code
To use this code in your own project:
1. Create a new C# Console Application in Visual Studio
2. Add a reference to the InGear Logix Driver (commercial product)
3. Replace your Program.cs with the one provided here
4. Modify the IP address to point to your PLC
5. Build and run the application
## Example Output
The application generates an XML file with a structure similar to this:
```xml