![ACD Tools](https://github.com/hutcheb/acd/actions/workflows/acd-tools.yml/badge.svg)
## 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
```python
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.
```python
from acd.unzip import Unzip
unzip = Unzip('CuteLogix.ACD')
unzip.write_files('output_directory')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hutcheb/acd",
"name": "acd-tools",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "rockwell acd logix",
"author": "Ben Hutcheson",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/60/30/c2c0536a4c14b8748a5cad97cbc196bbcd77b0c458f68e19c9dd7a0bab6a/acd-tools-0.1a3.tar.gz",
"platform": null,
"description": "\n![ACD Tools](https://github.com/hutcheb/acd/actions/workflows/acd-tools.yml/badge.svg)\n\n## Rockwell ACD Project File Tools\n\nThe Rockwell ACD file is an archive file that contains all the files \nthat are used by RSLogix/Studio 5000.\n\nIt consists of a number of text files containing version information, compressed XML\nfiles containing project and tag information as well as a number of database files.\n\n### Parsing the ACD file\n\nThe exporting of the L5X file isn't complete, we are able to parse the data types, tags and programs into a Controller\npython object though.\n\nTo get the Controller object and get the program/routines/rungs/tags/datatypes, use something like this\n```python\nfrom acd.export_l5x import ExportL5x\n\ncontroller = ExportL5x(\"../resources/CuteLogix.ACD\", \"build/output.l5x\").controller\nrung = controller.programs[0].routines[0].rungs[0]\ndata_type = controller.data_types[-1]\ntag_name = controller.tags[75].text\ntag_data_type = controller.tags[75].data_type\n```\n\n### Unzip\n\nTo extract the file use the acd.unzip.Unzip class. This extracts the database files to a directory.\n\n```python\nfrom acd.unzip import Unzip\n\nunzip = Unzip('CuteLogix.ACD')\nunzip.write_files('output_directory')\n```\n\n\n\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Rockwell ACD File Tools",
"version": "0.1a3",
"project_urls": {
"Homepage": "https://github.com/hutcheb/acd"
},
"split_keywords": [
"rockwell",
"acd",
"logix"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "960f8f2dcf9d7150126561b8c7b51d8f24fc433d48900fcedc6481a26cb86f16",
"md5": "d90ded59564dcc7fb7f365bc5c899cfb",
"sha256": "3114f0709d5bdd2b02f2e64ecce6cc42731904c8044b189d5dbec4aef5e4c02b"
},
"downloads": -1,
"filename": "acd_tools-0.1a3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d90ded59564dcc7fb7f365bc5c899cfb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 14711,
"upload_time": "2023-12-31T19:05:14",
"upload_time_iso_8601": "2023-12-31T19:05:14.280052Z",
"url": "https://files.pythonhosted.org/packages/96/0f/8f2dcf9d7150126561b8c7b51d8f24fc433d48900fcedc6481a26cb86f16/acd_tools-0.1a3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6030c2c0536a4c14b8748a5cad97cbc196bbcd77b0c458f68e19c9dd7a0bab6a",
"md5": "adad82c7981de318d54acec185115c8f",
"sha256": "168e11295965b883bcfdb1bd13b5d5c837a16a737addc09da3c13758134e9efb"
},
"downloads": -1,
"filename": "acd-tools-0.1a3.tar.gz",
"has_sig": false,
"md5_digest": "adad82c7981de318d54acec185115c8f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13639,
"upload_time": "2023-12-31T19:05:15",
"upload_time_iso_8601": "2023-12-31T19:05:15.790133Z",
"url": "https://files.pythonhosted.org/packages/60/30/c2c0536a4c14b8748a5cad97cbc196bbcd77b0c458f68e19c9dd7a0bab6a/acd-tools-0.1a3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-31 19:05:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hutcheb",
"github_project": "acd",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "acd-tools"
}