Rockwell ACD File Tools
Project description
Rockwell ACD Project File Tools
The Rockwell ACD file is an archive file that contains all the files that are used by RSLogix/Studio 5000.
It consists of a number of text files containing version information, compressed XML files containing project and tag information as well as a number of database files.
This library allows you to unzip all the files and extract information from these files.
Installing
To install acd tools from pypi run
pip install acd-tools
Parsing the ACD file
To get the Controller object and get the program/routines/rungs/tags/datatypes, use something like this
from acd.api import ImportProjectFromFile
controller = ImportProjectFromFile("../resources/CuteLogix.ACD").import_project().controller
rung = controller.programs[0].routines[0].rungs[0]
data_type = controller.data_types[-1]
tag_name = controller.tags[75].text
tag_data_type = controller.tags[75].data_type
Unzip
To extract the file use the acd.api.ExtractAcdDatabase class. This extracts the database files to a directory.
from acd.api import ExtractAcdDatabase
ExtractAcdDatabase('CuteLogix.ACD', 'output_directory').extract()
Extract Raw Records From ACD Files
A select number of database files contain interesting information. This will save each database record to a file to make it easier to see whats in them.
from acd.api import ExtractAcdDatabaseRecordsToFiles
ExtractAcdDatabaseRecordsToFiles('CuteLogix.ACD', 'output_directory').extract()
Dump Comps Database Records
The Comps database contains a lot of information and can be export as a directory structure to make it easier to look at.
from acd.api import DumpCompsRecordsToFile
DumpCompsRecordsToFile('CuteLogix.ACD', 'output_directory').extract()
Converting from ACD to L5X
This hasn't been started but could be feasible eventually.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file acd_tools-0.1a6.tar.gz
.
File metadata
- Download URL: acd_tools-0.1a6.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4919e1f713b5906b6c0c923c7d0d326ae269d67f5308ff4162a651946204a2b7 |
|
MD5 | f4e6cd0eb1c39e498b98df594bd2388c |
|
BLAKE2b-256 | 95af8721504bbe107ad2f888922ff3d2c5f41d36bdeb0a3264c53eae7a881a40 |
File details
Details for the file acd_tools-0.1a6-py3-none-any.whl
.
File metadata
- Download URL: acd_tools-0.1a6-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65bd97caa65e7b58c4228ecb3c5be08bafa94ae87b877aeb404ec04cfd16a517 |
|
MD5 | 113d5b324d2d5426dca8927b85838c33 |
|
BLAKE2b-256 | ddbfedd5cddf7265ab63a9b4071d12582f45c6fc08c6fb7fb6dcf3f301019b46 |