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.
Parsing the ACD file
The exporting of the L5X file isn't complete, we are able to parse the data types, tags and programs into a Controller python object though.
To get the Controller object and get the program/routines/rungs/tags/datatypes, use something like this
from acd.export_l5x import ExportL5x
controller = ExportL5x("../resources/CuteLogix.ACD", "build/output.l5x").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.unzip.Unzip class. This extracts the database files to a directory.
from acd.unzip import Unzip
unzip = Unzip('CuteLogix.ACD')
unzip.write_files('output_directory')
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.1a1.tar.gz
.
File metadata
- Download URL: acd-tools-0.1a1.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a34d8f49b6702e51141be4a5bdcb8214a0eb6d2c974546ba3d22a5ff072bdc |
|
MD5 | 3de4f2ad51d0e890fdc3c86acdae3332 |
|
BLAKE2b-256 | 1702779231507234eacef78755000d049461831dea9e97a25d0f340cbe736a5e |
File details
Details for the file acd_tools-0.1a1-py3-none-any.whl
.
File metadata
- Download URL: acd_tools-0.1a1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e159cd803f73dc26f66291545984733ec61f3a9f13dc75e8dc0fed2de65d157 |
|
MD5 | dc30781f5621cd8da4b4f57409a39cbc |
|
BLAKE2b-256 | 05c5d0d1dcb389ddb830278305f9927575a02bcfadaeadd1231f048cf882bdd2 |